Author: veithen
Date: Thu Jun 4 22:13:02 2015
New Revision: 1683649
URL: http://svn.apache.org/r1683649
Log:
Unify the get/set code in SOAPFault implementations.
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11Fault.java
(with props)
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultCode.java
(with props)
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultDetail.java
(with props)
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultReason.java
(with props)
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultRole.java
(with props)
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultSupport.aj
(with props)
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12Fault.java
(with props)
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultCode.java
(with props)
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultDetail.java
(with props)
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultNode.java
(with props)
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultReason.java
(with props)
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultRole.java
(with props)
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultSupport.aj
(with props)
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFault.java
(with props)
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultCode.java
(with props)
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultReason.java
(with props)
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultRole.java
(with props)
Modified:
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultDetailImpl.java
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultImpl.java
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultReasonImpl.java
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultRoleImpl.java
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultDetailImpl.java
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultImpl.java
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultNodeImpl.java
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultReasonImpl.java
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultRoleImpl.java
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultImpl.java
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultImpl.java
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11Fault.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11Fault.java?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11Fault.java
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11Fault.java
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+public interface AxiomSOAP11Fault extends AxiomSOAPFault {
+
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11Fault.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultCode.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultCode.java?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultCode.java
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultCode.java
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+public interface AxiomSOAP11FaultCode extends AxiomSOAPFaultCode {
+
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultCode.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultDetail.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultDetail.java?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultDetail.java
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultDetail.java
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+public interface AxiomSOAP11FaultDetail extends AxiomSOAPFaultDetail {
+
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultDetail.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultReason.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultReason.java?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultReason.java
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultReason.java
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+public interface AxiomSOAP11FaultReason extends AxiomSOAPFaultReason {
+
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultReason.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultRole.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultRole.java?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultRole.java
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultRole.java
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+public interface AxiomSOAP11FaultRole extends AxiomSOAPFaultRole {
+
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultRole.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultSupport.aj
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultSupport.aj?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultSupport.aj
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultSupport.aj
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,93 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+import org.apache.axiom.soap.SOAP11Constants;
+import org.apache.axiom.soap.SOAPFaultCode;
+import org.apache.axiom.soap.SOAPFaultDetail;
+import org.apache.axiom.soap.SOAPFaultNode;
+import org.apache.axiom.soap.SOAPFaultReason;
+import org.apache.axiom.soap.SOAPFaultRole;
+import org.apache.axiom.soap.SOAPProcessingException;
+
+public aspect AxiomSOAP11FaultSupport {
+ private static final Class<?>[] sequence = { SOAPFaultCode.class,
SOAPFaultReason.class,
+ SOAPFaultRole.class, SOAPFaultDetail.class };
+
+ public final void AxiomSOAP11Fault.setCode(SOAPFaultCode soapFaultCode)
+ throws SOAPProcessingException {
+ if (!(soapFaultCode instanceof AxiomSOAP11FaultCode)) {
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault Code. " +
+ "But received some other implementation");
+ }
+ insertChild(sequence, 0, soapFaultCode);
+ }
+
+ public final void AxiomSOAP11Fault.setReason(SOAPFaultReason reason)
throws SOAPProcessingException {
+ if (!(reason instanceof AxiomSOAP11FaultReason)) {
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault Reason. "
+
+ "But received some other implementation");
+ }
+ insertChild(sequence, 1, reason);
+ }
+
+ public final void AxiomSOAP11Fault.setNode(SOAPFaultNode node) throws
SOAPProcessingException {
+ throw new UnsupportedOperationException("SOAP 1.1 has no SOAP Fault
Node");
+ }
+
+ public final void AxiomSOAP11Fault.setRole(SOAPFaultRole role) throws
SOAPProcessingException {
+ if (!(role instanceof AxiomSOAP11FaultRole)) {
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault Role. " +
+ "But received some other implementation");
+ }
+ insertChild(sequence, 2, role);
+ }
+
+ public final void AxiomSOAP11Fault.setDetail(SOAPFaultDetail detail)
throws SOAPProcessingException {
+ if (!(detail instanceof AxiomSOAP11FaultDetail)) {
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.1 implementation of SOAP Fault Detail. "
+
+ "But received some other implementation");
+ }
+ insertChild(sequence, 3, detail);
+ }
+
+ public final SOAPFaultCode AxiomSOAP11Fault.getCode() {
+ return
(SOAPFaultCode)getFirstChildWithName(SOAP11Constants.QNAME_FAULT_CODE);
+ }
+
+ public final SOAPFaultReason AxiomSOAP11Fault.getReason() {
+ return
(SOAPFaultReason)getFirstChildWithName(SOAP11Constants.QNAME_FAULT_REASON);
+ }
+
+ public final SOAPFaultNode AxiomSOAP11Fault.getNode() {
+ return null;
+ }
+
+ public final SOAPFaultRole AxiomSOAP11Fault.getRole() {
+ return
(SOAPFaultRole)getFirstChildWithName(SOAP11Constants.QNAME_FAULT_ROLE);
+ }
+
+ public final SOAPFaultDetail AxiomSOAP11Fault.getDetail() {
+ return
(SOAPFaultDetail)getFirstChildWithName(SOAP11Constants.QNAME_FAULT_DETAIL);
+ }
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP11FaultSupport.aj
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12Fault.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12Fault.java?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12Fault.java
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12Fault.java
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+public interface AxiomSOAP12Fault extends AxiomSOAPFault {
+
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12Fault.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultCode.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultCode.java?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultCode.java
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultCode.java
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+public interface AxiomSOAP12FaultCode extends AxiomSOAPFaultCode {
+
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultCode.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultDetail.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultDetail.java?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultDetail.java
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultDetail.java
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+public interface AxiomSOAP12FaultDetail extends AxiomSOAPFaultDetail {
+
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultDetail.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultNode.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultNode.java?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultNode.java
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultNode.java
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+import org.apache.axiom.om.impl.common.AxiomElement;
+import org.apache.axiom.soap.SOAPFaultNode;
+
+public interface AxiomSOAP12FaultNode extends AxiomElement, SOAPFaultNode {
+
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultNode.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultReason.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultReason.java?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultReason.java
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultReason.java
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+public interface AxiomSOAP12FaultReason extends AxiomSOAPFaultReason {
+
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultReason.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultRole.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultRole.java?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultRole.java
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultRole.java
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+public interface AxiomSOAP12FaultRole extends AxiomSOAPFaultRole {
+
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultRole.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultSupport.aj
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultSupport.aj?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultSupport.aj
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultSupport.aj
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,94 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+import org.apache.axiom.soap.SOAP12Constants;
+import org.apache.axiom.soap.SOAPFaultCode;
+import org.apache.axiom.soap.SOAPFaultDetail;
+import org.apache.axiom.soap.SOAPFaultNode;
+import org.apache.axiom.soap.SOAPFaultReason;
+import org.apache.axiom.soap.SOAPFaultRole;
+import org.apache.axiom.soap.SOAPProcessingException;
+
+public aspect AxiomSOAP12FaultSupport {
+ private static final Class<?>[] sequence = { SOAPFaultCode.class,
SOAPFaultReason.class,
+ SOAPFaultNode.class, SOAPFaultRole.class, SOAPFaultDetail.class };
+
+ public final void AxiomSOAP12Fault.setCode(SOAPFaultCode soapFaultCode)
throws SOAPProcessingException {
+ if (!(soapFaultCode instanceof AxiomSOAP12FaultCode)) {
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.2 implementation of SOAP Fault Code. " +
+ "But received some other implementation");
+ }
+ insertChild(sequence, 0, soapFaultCode);
+ }
+
+
+ public final void AxiomSOAP12Fault.setReason(SOAPFaultReason reason)
throws SOAPProcessingException {
+ if (!(reason instanceof AxiomSOAP12FaultReason)) {
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.2 implementation of SOAP Fault Reason.
But received some other implementation");
+ }
+ insertChild(sequence, 1, reason);
+ }
+
+ public final void AxiomSOAP12Fault.setNode(SOAPFaultNode node) throws
SOAPProcessingException {
+ if (!(node instanceof AxiomSOAP12FaultNode)) {
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.2 implementation of SOAP Fault Node. But
received some other implementation");
+ }
+ insertChild(sequence, 2, node);
+ }
+
+ public final void AxiomSOAP12Fault.setRole(SOAPFaultRole role) throws
SOAPProcessingException {
+ if (!(role instanceof AxiomSOAP12FaultRole)) {
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.2 implementation of SOAP Fault Role. But
received some other implementation");
+ }
+ insertChild(sequence, 3, role);
+ }
+
+ public final void AxiomSOAP12Fault.setDetail(SOAPFaultDetail detail)
throws SOAPProcessingException {
+ if (!(detail instanceof AxiomSOAP12FaultDetail)) {
+ throw new SOAPProcessingException(
+ "Expecting SOAP 1.2 implementation of SOAP Fault Detail.
But received some other implementation");
+ }
+ insertChild(sequence, 4, detail);
+ }
+
+ public final SOAPFaultCode AxiomSOAP12Fault.getCode() {
+ return
(SOAPFaultCode)getFirstChildWithName(SOAP12Constants.QNAME_FAULT_CODE);
+ }
+
+ public final SOAPFaultReason AxiomSOAP12Fault.getReason() {
+ return
(SOAPFaultReason)getFirstChildWithName(SOAP12Constants.QNAME_FAULT_REASON);
+ }
+
+ public final SOAPFaultNode AxiomSOAP12Fault.getNode() {
+ return
(SOAPFaultNode)getFirstChildWithName(SOAP12Constants.QNAME_FAULT_NODE);
+ }
+
+ public final SOAPFaultRole AxiomSOAP12Fault.getRole() {
+ return
(SOAPFaultRole)getFirstChildWithName(SOAP12Constants.QNAME_FAULT_ROLE);
+ }
+
+ public final SOAPFaultDetail AxiomSOAP12Fault.getDetail() {
+ return
(SOAPFaultDetail)getFirstChildWithName(SOAP12Constants.QNAME_FAULT_DETAIL);
+ }
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAP12FaultSupport.aj
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFault.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFault.java?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFault.java
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFault.java
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+import org.apache.axiom.om.impl.common.AxiomElement;
+import org.apache.axiom.soap.SOAPFault;
+
+public interface AxiomSOAPFault extends AxiomElement, SOAPFault {
+
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFault.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultCode.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultCode.java?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultCode.java
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultCode.java
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+import org.apache.axiom.om.impl.common.AxiomElement;
+import org.apache.axiom.soap.SOAPFaultCode;
+
+public interface AxiomSOAPFaultCode extends AxiomElement, SOAPFaultCode {
+
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultCode.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultReason.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultReason.java?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultReason.java
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultReason.java
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+import org.apache.axiom.soap.SOAPFaultReason;
+
+import org.apache.axiom.om.impl.common.AxiomElement;
+
+public interface AxiomSOAPFaultReason extends AxiomElement, SOAPFaultReason {
+
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultReason.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultRole.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultRole.java?rev=1683649&view=auto
==============================================================================
---
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultRole.java
(added)
+++
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultRole.java
Thu Jun 4 22:13:02 2015
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.common;
+
+import org.apache.axiom.om.impl.common.AxiomElement;
+import org.apache.axiom.soap.SOAPFaultRole;
+
+public interface AxiomSOAPFaultRole extends AxiomElement, SOAPFaultRole {
+
+}
Propchange:
webservices/axiom/trunk/aspects/om-aspects/src/main/java/org/apache/axiom/soap/impl/common/AxiomSOAPFaultRole.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified:
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java
Thu Jun 4 22:13:02 2015
@@ -31,11 +31,12 @@ import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPFaultSubCode;
import org.apache.axiom.soap.SOAPFaultValue;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP11FaultCode;
import org.apache.axiom.soap.impl.dom.SOAPFaultCodeImpl;
import javax.xml.namespace.QName;
-public class SOAP11FaultCodeImpl extends SOAPFaultCodeImpl {
+public class SOAP11FaultCodeImpl extends SOAPFaultCodeImpl implements
AxiomSOAP11FaultCode {
public SOAP11FaultCodeImpl(ParentNode parentNode, OMNamespace ns,
OMXMLParserWrapper builder,
OMFactory factory, boolean generateNSDecl) {
super(parentNode, ns, builder, factory, generateNSDecl);
Modified:
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultDetailImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultDetailImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultDetailImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultDetailImpl.java
Thu Jun 4 22:13:02 2015
@@ -28,9 +28,10 @@ import org.apache.axiom.om.impl.dom.Pare
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP11FaultDetail;
import org.apache.axiom.soap.impl.dom.SOAPFaultDetailImpl;
-public class SOAP11FaultDetailImpl extends SOAPFaultDetailImpl {
+public class SOAP11FaultDetailImpl extends SOAPFaultDetailImpl implements
AxiomSOAP11FaultDetail {
public SOAP11FaultDetailImpl(ParentNode parentNode, OMNamespace ns,
OMXMLParserWrapper builder,
OMFactory factory, boolean generateNSDecl) {
super(parentNode, ns, builder, factory, generateNSDecl);
Modified:
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultImpl.java
Thu Jun 4 22:13:02 2015
@@ -25,22 +25,15 @@ import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMNamespace;
import org.apache.axiom.om.OMXMLParserWrapper;
import org.apache.axiom.om.impl.dom.ParentNode;
-import org.apache.axiom.soap.SOAP11Constants;
import org.apache.axiom.soap.SOAPBody;
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
-import org.apache.axiom.soap.SOAPFaultCode;
import org.apache.axiom.soap.SOAPFaultDetail;
-import org.apache.axiom.soap.SOAPFaultNode;
-import org.apache.axiom.soap.SOAPFaultReason;
-import org.apache.axiom.soap.SOAPFaultRole;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP11Fault;
import org.apache.axiom.soap.impl.dom.SOAPFaultImpl;
-public class SOAP11FaultImpl extends SOAPFaultImpl {
- private static final Class[] sequence = { SOAPFaultCode.class,
SOAPFaultReason.class,
- SOAPFaultRole.class, SOAPFaultDetail.class };
-
+public class SOAP11FaultImpl extends SOAPFaultImpl implements AxiomSOAP11Fault
{
public SOAP11FaultImpl(SOAPBody parent, Exception e, SOAPFactory factory)
throws SOAPProcessingException {
super(parent, e, factory);
@@ -66,38 +59,6 @@ public class SOAP11FaultImpl extends SOA
return new SOAP11FaultDetailImpl(fault, (SOAPFactory)getOMFactory());
}
- public void setCode(SOAPFaultCode soapFaultCode)
- throws SOAPProcessingException {
- if (!(soapFaultCode instanceof SOAP11FaultCodeImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Code. " +
- "But received some other implementation");
- }
- insertChild(sequence, 0, soapFaultCode);
- }
-
- public void setReason(SOAPFaultReason reason) throws
SOAPProcessingException {
- if (!(reason instanceof SOAP11FaultReasonImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Reason. "
+
- "But received some other implementation");
- }
- insertChild(sequence, 1, reason);
- }
-
- public void setNode(SOAPFaultNode node) throws SOAPProcessingException {
- throw new UnsupportedOperationException("SOAP 1.1 has no SOAP Fault
Node");
- }
-
- public void setRole(SOAPFaultRole role) throws SOAPProcessingException {
- if (!(role instanceof SOAP11FaultRoleImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Role. " +
- "But received some other implementation");
- }
- insertChild(sequence, 2, role);
- }
-
protected void checkParent(OMElement parent) throws
SOAPProcessingException {
if (!(parent instanceof SOAP11BodyImpl)) {
throw new SOAPProcessingException(
@@ -106,35 +67,6 @@ public class SOAP11FaultImpl extends SOA
}
}
- public void setDetail(SOAPFaultDetail detail) throws
SOAPProcessingException {
- if (!(detail instanceof SOAP11FaultDetailImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Detail. "
+
- "But received some other implementation");
- }
- insertChild(sequence, 3, detail);
- }
-
- public SOAPFaultCode getCode() {
- return
(SOAPFaultCode)getFirstChildWithName(SOAP11Constants.QNAME_FAULT_CODE);
- }
-
- public SOAPFaultReason getReason() {
- return
(SOAPFaultReason)getFirstChildWithName(SOAP11Constants.QNAME_FAULT_REASON);
- }
-
- public SOAPFaultNode getNode() {
- return null;
- }
-
- public SOAPFaultRole getRole() {
- return
(SOAPFaultRole)getFirstChildWithName(SOAP11Constants.QNAME_FAULT_ROLE);
- }
-
- public SOAPFaultDetail getDetail() {
- return
(SOAPFaultDetail)getFirstChildWithName(SOAP11Constants.QNAME_FAULT_DETAIL);
- }
-
protected OMElement createClone(OMCloneOptions options, ParentNode
targetParent,
boolean generateNSDecl) {
SOAPFault clone = new SOAP11FaultImpl(targetParent, getNamespace(),
null, getOMFactory(), generateNSDecl);
Modified:
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultReasonImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultReasonImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultReasonImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultReasonImpl.java
Thu Jun 4 22:13:02 2015
@@ -30,9 +30,10 @@ import org.apache.axiom.soap.SOAPFactory
import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPFaultText;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP11FaultReason;
import org.apache.axiom.soap.impl.dom.SOAPFaultReasonImpl;
-public class SOAP11FaultReasonImpl extends SOAPFaultReasonImpl {
+public class SOAP11FaultReasonImpl extends SOAPFaultReasonImpl implements
AxiomSOAP11FaultReason {
public SOAP11FaultReasonImpl(ParentNode parentNode, OMNamespace ns,
OMXMLParserWrapper builder,
OMFactory factory, boolean generateNSDecl) {
super(parentNode, ns, builder, factory, generateNSDecl);
Modified:
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultRoleImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultRoleImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultRoleImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultRoleImpl.java
Thu Jun 4 22:13:02 2015
@@ -29,9 +29,10 @@ import org.apache.axiom.soap.SOAP11Const
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP11FaultRole;
import org.apache.axiom.soap.impl.dom.SOAPFaultRoleImpl;
-public class SOAP11FaultRoleImpl extends SOAPFaultRoleImpl {
+public class SOAP11FaultRoleImpl extends SOAPFaultRoleImpl implements
AxiomSOAP11FaultRole {
public SOAP11FaultRoleImpl(SOAPFault parent, SOAPFactory factory)
throws SOAPProcessingException {
Modified:
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java
Thu Jun 4 22:13:02 2015
@@ -32,11 +32,12 @@ import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPFaultSubCode;
import org.apache.axiom.soap.SOAPFaultValue;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP12FaultCode;
import org.apache.axiom.soap.impl.dom.SOAPFaultCodeImpl;
import javax.xml.namespace.QName;
-public class SOAP12FaultCodeImpl extends SOAPFaultCodeImpl {
+public class SOAP12FaultCodeImpl extends SOAPFaultCodeImpl implements
AxiomSOAP12FaultCode {
public SOAP12FaultCodeImpl(ParentNode parentNode, OMNamespace ns,
OMXMLParserWrapper builder,
OMFactory factory, boolean generateNSDecl) {
super(parentNode, ns, builder, factory, generateNSDecl);
Modified:
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultDetailImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultDetailImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultDetailImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultDetailImpl.java
Thu Jun 4 22:13:02 2015
@@ -28,9 +28,10 @@ import org.apache.axiom.om.impl.dom.Pare
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP12FaultDetail;
import org.apache.axiom.soap.impl.dom.SOAPFaultDetailImpl;
-public class SOAP12FaultDetailImpl extends SOAPFaultDetailImpl {
+public class SOAP12FaultDetailImpl extends SOAPFaultDetailImpl implements
AxiomSOAP12FaultDetail {
public SOAP12FaultDetailImpl(ParentNode parentNode, OMNamespace ns,
OMXMLParserWrapper builder,
OMFactory factory, boolean generateNSDecl) {
super(parentNode, ns, builder, factory, generateNSDecl);
Modified:
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultImpl.java
Thu Jun 4 22:13:02 2015
@@ -28,19 +28,12 @@ import org.apache.axiom.om.impl.dom.Pare
import org.apache.axiom.soap.SOAPBody;
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
-import org.apache.axiom.soap.SOAPFaultCode;
import org.apache.axiom.soap.SOAPFaultDetail;
-import org.apache.axiom.soap.SOAPFaultNode;
-import org.apache.axiom.soap.SOAPFaultReason;
-import org.apache.axiom.soap.SOAPFaultRole;
import org.apache.axiom.soap.SOAPProcessingException;
-import org.apache.axiom.soap.SOAP12Constants;
+import org.apache.axiom.soap.impl.common.AxiomSOAP12Fault;
import org.apache.axiom.soap.impl.dom.SOAPFaultImpl;
-public class SOAP12FaultImpl extends SOAPFaultImpl {
- private static final Class[] sequence = { SOAPFaultCode.class,
SOAPFaultReason.class,
- SOAPFaultNode.class, SOAPFaultRole.class, SOAPFaultDetail.class };
-
+public class SOAP12FaultImpl extends SOAPFaultImpl implements AxiomSOAP12Fault
{
public SOAP12FaultImpl(SOAPBody parent, Exception e, SOAPFactory factory)
throws SOAPProcessingException {
super(parent, e, factory);
@@ -66,48 +59,6 @@ public class SOAP12FaultImpl extends SOA
}
- public void setCode(SOAPFaultCode soapFaultCode) throws
SOAPProcessingException {
- if (!(soapFaultCode instanceof SOAP12FaultCodeImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Code. " +
- "But received some other implementation");
- }
- insertChild(sequence, 0, soapFaultCode);
- }
-
-
- public void setReason(SOAPFaultReason reason) throws
SOAPProcessingException {
- if (!(reason instanceof SOAP12FaultReasonImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Reason.
But received some other implementation");
- }
- insertChild(sequence, 1, reason);
- }
-
- public void setNode(SOAPFaultNode node) throws SOAPProcessingException {
- if (!(node instanceof SOAP12FaultNodeImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Node. But
received some other implementation");
- }
- insertChild(sequence, 2, node);
- }
-
- public void setRole(SOAPFaultRole role) throws SOAPProcessingException {
- if (!(role instanceof SOAP12FaultRoleImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Role. But
received some other implementation");
- }
- insertChild(sequence, 3, role);
- }
-
- public void setDetail(SOAPFaultDetail detail) throws
SOAPProcessingException {
- if (!(detail instanceof SOAP12FaultDetailImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Detail.
But received some other implementation");
- }
- insertChild(sequence, 4, detail);
- }
-
protected void checkParent(OMElement parent) throws
SOAPProcessingException {
if (!(parent instanceof SOAP12BodyImpl)) {
throw new SOAPProcessingException(
@@ -115,26 +66,6 @@ public class SOAP12FaultImpl extends SOA
}
}
- public SOAPFaultCode getCode() {
- return
(SOAPFaultCode)getFirstChildWithName(SOAP12Constants.QNAME_FAULT_CODE);
- }
-
- public SOAPFaultReason getReason() {
- return
(SOAPFaultReason)getFirstChildWithName(SOAP12Constants.QNAME_FAULT_REASON);
- }
-
- public SOAPFaultNode getNode() {
- return
(SOAPFaultNode)getFirstChildWithName(SOAP12Constants.QNAME_FAULT_NODE);
- }
-
- public SOAPFaultRole getRole() {
- return
(SOAPFaultRole)getFirstChildWithName(SOAP12Constants.QNAME_FAULT_ROLE);
- }
-
- public SOAPFaultDetail getDetail() {
- return
(SOAPFaultDetail)getFirstChildWithName(SOAP12Constants.QNAME_FAULT_DETAIL);
- }
-
protected OMElement createClone(OMCloneOptions options, ParentNode
targetParent,
boolean generateNSDecl) {
SOAPFault clone = new SOAP12FaultImpl(targetParent, getNamespace(),
null, getOMFactory(), generateNSDecl);
Modified:
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultNodeImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultNodeImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultNodeImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultNodeImpl.java
Thu Jun 4 22:13:02 2015
@@ -28,11 +28,11 @@ import org.apache.axiom.om.impl.dom.Pare
import org.apache.axiom.soap.SOAP12Constants;
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
-import org.apache.axiom.soap.SOAPFaultNode;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP12FaultNode;
import org.apache.axiom.soap.impl.dom.SOAPElement;
-public class SOAP12FaultNodeImpl extends SOAPElement implements SOAPFaultNode {
+public class SOAP12FaultNodeImpl extends SOAPElement implements
AxiomSOAP12FaultNode {
public SOAP12FaultNodeImpl(SOAPFault parent, SOAPFactory factory)
throws SOAPProcessingException {
super(parent, SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME, true,
factory);
Modified:
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultReasonImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultReasonImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultReasonImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultReasonImpl.java
Thu Jun 4 22:13:02 2015
@@ -30,9 +30,10 @@ import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPFaultText;
import org.apache.axiom.soap.SOAPProcessingException;
import org.apache.axiom.soap.SOAP12Constants;
+import org.apache.axiom.soap.impl.common.AxiomSOAP12FaultReason;
import org.apache.axiom.soap.impl.dom.SOAPFaultReasonImpl;
-public class SOAP12FaultReasonImpl extends SOAPFaultReasonImpl {
+public class SOAP12FaultReasonImpl extends SOAPFaultReasonImpl implements
AxiomSOAP12FaultReason {
public SOAP12FaultReasonImpl(ParentNode parentNode, OMNamespace ns,
OMXMLParserWrapper builder,
OMFactory factory, boolean generateNSDecl) {
super(parentNode, ns, builder, factory, generateNSDecl);
Modified:
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultRoleImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultRoleImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultRoleImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultRoleImpl.java
Thu Jun 4 22:13:02 2015
@@ -29,9 +29,10 @@ import org.apache.axiom.soap.SOAP12Const
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP12FaultRole;
import org.apache.axiom.soap.impl.dom.SOAPFaultRoleImpl;
-public class SOAP12FaultRoleImpl extends SOAPFaultRoleImpl {
+public class SOAP12FaultRoleImpl extends SOAPFaultRoleImpl implements
AxiomSOAP12FaultRole {
public SOAP12FaultRoleImpl(SOAPFault parent, SOAPFactory factory)
throws SOAPProcessingException {
Modified:
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java
Thu Jun 4 22:13:02 2015
@@ -27,11 +27,12 @@ import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPFaultSubCode;
import org.apache.axiom.soap.SOAPFaultValue;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP11FaultCode;
import org.apache.axiom.soap.impl.llom.SOAPFaultCodeImpl;
import javax.xml.namespace.QName;
-public class SOAP11FaultCodeImpl extends SOAPFaultCodeImpl {
+public class SOAP11FaultCodeImpl extends SOAPFaultCodeImpl implements
AxiomSOAP11FaultCode {
public SOAP11FaultCodeImpl(SOAPFactory factory) {
super(SOAP11Constants.SOAP_FAULT_CODE_LOCAL_NAME, null, factory);
Modified:
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java
Thu Jun 4 22:13:02 2015
@@ -24,9 +24,10 @@ import org.apache.axiom.om.OMXMLParserWr
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP11FaultDetail;
import org.apache.axiom.soap.impl.llom.SOAPFaultDetailImpl;
-public class SOAP11FaultDetailImpl extends SOAPFaultDetailImpl {
+public class SOAP11FaultDetailImpl extends SOAPFaultDetailImpl implements
AxiomSOAP11FaultDetail {
public SOAP11FaultDetailImpl(SOAPFactory factory) {
super(null, factory);
}
Modified:
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultImpl.java
Thu Jun 4 22:13:02 2015
@@ -21,22 +21,15 @@ package org.apache.axiom.soap.impl.llom.
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMXMLParserWrapper;
-import org.apache.axiom.soap.SOAP11Constants;
import org.apache.axiom.soap.SOAPBody;
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
-import org.apache.axiom.soap.SOAPFaultCode;
import org.apache.axiom.soap.SOAPFaultDetail;
-import org.apache.axiom.soap.SOAPFaultNode;
-import org.apache.axiom.soap.SOAPFaultReason;
-import org.apache.axiom.soap.SOAPFaultRole;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP11Fault;
import org.apache.axiom.soap.impl.llom.SOAPFaultImpl;
-public class SOAP11FaultImpl extends SOAPFaultImpl {
- private static final Class[] sequence = { SOAPFaultCode.class,
SOAPFaultReason.class,
- SOAPFaultRole.class, SOAPFaultDetail.class };
-
+public class SOAP11FaultImpl extends SOAPFaultImpl implements AxiomSOAP11Fault
{
public SOAP11FaultImpl(SOAPFactory factory) {
super(factory.getNamespace(), factory);
}
@@ -66,38 +59,6 @@ public class SOAP11FaultImpl extends SOA
return new SOAP11FaultDetailImpl(fault, (SOAPFactory)getOMFactory());
}
- public void setCode(SOAPFaultCode soapFaultCode)
- throws SOAPProcessingException {
- if (!(soapFaultCode instanceof SOAP11FaultCodeImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Code. " +
- "But received some other implementation");
- }
- insertChild(sequence, 0, soapFaultCode);
- }
-
- public void setReason(SOAPFaultReason reason) throws
SOAPProcessingException {
- if (!(reason instanceof SOAP11FaultReasonImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Reason. "
+
- "But received some other implementation");
- }
- insertChild(sequence, 1, reason);
- }
-
- public void setNode(SOAPFaultNode node) throws SOAPProcessingException {
- throw new UnsupportedOperationException("SOAP 1.1 has no SOAP Fault
Node");
- }
-
- public void setRole(SOAPFaultRole role) throws SOAPProcessingException {
- if (!(role instanceof SOAP11FaultRoleImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Role. " +
- "But received some other implementation");
- }
- insertChild(sequence, 2, role);
- }
-
protected void checkParent(OMElement parent) throws
SOAPProcessingException {
if (!(parent instanceof SOAP11BodyImpl)) {
throw new SOAPProcessingException(
@@ -105,33 +66,4 @@ public class SOAP11FaultImpl extends SOA
"parent. But received some other implementation");
}
}
-
- public void setDetail(SOAPFaultDetail detail) throws
SOAPProcessingException {
- if (!(detail instanceof SOAP11FaultDetailImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Detail. "
+
- "But received some other implementation");
- }
- insertChild(sequence, 3, detail);
- }
-
- public SOAPFaultCode getCode() {
- return
(SOAPFaultCode)getFirstChildWithName(SOAP11Constants.QNAME_FAULT_CODE);
- }
-
- public SOAPFaultReason getReason() {
- return
(SOAPFaultReason)getFirstChildWithName(SOAP11Constants.QNAME_FAULT_REASON);
- }
-
- public SOAPFaultNode getNode() {
- return null;
- }
-
- public SOAPFaultRole getRole() {
- return
(SOAPFaultRole)getFirstChildWithName(SOAP11Constants.QNAME_FAULT_ROLE);
- }
-
- public SOAPFaultDetail getDetail() {
- return
(SOAPFaultDetail)getFirstChildWithName(SOAP11Constants.QNAME_FAULT_DETAIL);
- }
}
Modified:
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java
Thu Jun 4 22:13:02 2015
@@ -26,9 +26,10 @@ import org.apache.axiom.soap.SOAPFactory
import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPFaultText;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP11FaultReason;
import org.apache.axiom.soap.impl.llom.SOAPFaultReasonImpl;
-public class SOAP11FaultReasonImpl extends SOAPFaultReasonImpl {
+public class SOAP11FaultReasonImpl extends SOAPFaultReasonImpl implements
AxiomSOAP11FaultReason {
public SOAP11FaultReasonImpl(SOAPFactory factory) {
super(null, factory);
}
Modified:
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java
Thu Jun 4 22:13:02 2015
@@ -24,9 +24,10 @@ import org.apache.axiom.om.OMXMLParserWr
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP11FaultRole;
import org.apache.axiom.soap.impl.llom.SOAPFaultRoleImpl;
-public class SOAP11FaultRoleImpl extends SOAPFaultRoleImpl {
+public class SOAP11FaultRoleImpl extends SOAPFaultRoleImpl implements
AxiomSOAP11FaultRole {
public SOAP11FaultRoleImpl(SOAPFault parent, SOAPFactory factory)
throws SOAPProcessingException {
Modified:
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java
Thu Jun 4 22:13:02 2015
@@ -28,11 +28,12 @@ import org.apache.axiom.soap.SOAPFaultSu
import org.apache.axiom.soap.SOAPFaultValue;
import org.apache.axiom.soap.SOAPProcessingException;
import org.apache.axiom.soap.SOAP12Constants;
+import org.apache.axiom.soap.impl.common.AxiomSOAP12FaultCode;
import org.apache.axiom.soap.impl.llom.SOAPFaultCodeImpl;
import javax.xml.namespace.QName;
-public class SOAP12FaultCodeImpl extends SOAPFaultCodeImpl {
+public class SOAP12FaultCodeImpl extends SOAPFaultCodeImpl implements
AxiomSOAP12FaultCode {
public SOAP12FaultCodeImpl(SOAPFactory factory) {
super(factory.getNamespace(), factory);
}
Modified:
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java
Thu Jun 4 22:13:02 2015
@@ -24,9 +24,10 @@ import org.apache.axiom.om.OMXMLParserWr
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP12FaultDetail;
import org.apache.axiom.soap.impl.llom.SOAPFaultDetailImpl;
-public class SOAP12FaultDetailImpl extends SOAPFaultDetailImpl {
+public class SOAP12FaultDetailImpl extends SOAPFaultDetailImpl implements
AxiomSOAP12FaultDetail {
public SOAP12FaultDetailImpl(SOAPFactory factory) {
super(factory.getNamespace(), factory);
Modified:
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultImpl.java
Thu Jun 4 22:13:02 2015
@@ -24,19 +24,12 @@ import org.apache.axiom.om.OMXMLParserWr
import org.apache.axiom.soap.SOAPBody;
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
-import org.apache.axiom.soap.SOAPFaultCode;
import org.apache.axiom.soap.SOAPFaultDetail;
-import org.apache.axiom.soap.SOAPFaultNode;
-import org.apache.axiom.soap.SOAPFaultReason;
-import org.apache.axiom.soap.SOAPFaultRole;
import org.apache.axiom.soap.SOAPProcessingException;
-import org.apache.axiom.soap.SOAP12Constants;
+import org.apache.axiom.soap.impl.common.AxiomSOAP12Fault;
import org.apache.axiom.soap.impl.llom.SOAPFaultImpl;
-public class SOAP12FaultImpl extends SOAPFaultImpl {
- private static final Class[] sequence = { SOAPFaultCode.class,
SOAPFaultReason.class,
- SOAPFaultNode.class, SOAPFaultRole.class, SOAPFaultDetail.class };
-
+public class SOAP12FaultImpl extends SOAPFaultImpl implements AxiomSOAP12Fault
{
public SOAP12FaultImpl(SOAPFactory factory) {
super(factory.getNamespace(), factory);
}
@@ -66,72 +59,10 @@ public class SOAP12FaultImpl extends SOA
}
- public void setCode(SOAPFaultCode soapFaultCode) throws
SOAPProcessingException {
- if (!(soapFaultCode instanceof SOAP12FaultCodeImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Code. " +
- "But received some other implementation");
- }
- insertChild(sequence, 0, soapFaultCode);
- }
-
-
- public void setReason(SOAPFaultReason reason) throws
SOAPProcessingException {
- if (!(reason instanceof SOAP12FaultReasonImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Reason.
But received some other implementation");
- }
- insertChild(sequence, 1, reason);
- }
-
- public void setNode(SOAPFaultNode node) throws SOAPProcessingException {
- if (!(node instanceof SOAP12FaultNodeImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Node. But
received some other implementation");
- }
- insertChild(sequence, 2, node);
- }
-
- public void setRole(SOAPFaultRole role) throws SOAPProcessingException {
- if (!(role instanceof SOAP12FaultRoleImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Role. But
received some other implementation");
- }
- insertChild(sequence, 3, role);
- }
-
- public void setDetail(SOAPFaultDetail detail) throws
SOAPProcessingException {
- if (!(detail instanceof SOAP12FaultDetailImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Detail.
But received some other implementation");
- }
- insertChild(sequence, 4, detail);
- }
-
protected void checkParent(OMElement parent) throws
SOAPProcessingException {
if (!(parent instanceof SOAP12BodyImpl)) {
throw new SOAPProcessingException(
"Expecting SOAP 1.2 implementation of SOAP Body as the
parent. But received some other implementation");
}
}
-
- public SOAPFaultCode getCode() {
- return
(SOAPFaultCode)getFirstChildWithName(SOAP12Constants.QNAME_FAULT_CODE);
- }
-
- public SOAPFaultReason getReason() {
- return
(SOAPFaultReason)getFirstChildWithName(SOAP12Constants.QNAME_FAULT_REASON);
- }
-
- public SOAPFaultNode getNode() {
- return
(SOAPFaultNode)getFirstChildWithName(SOAP12Constants.QNAME_FAULT_NODE);
- }
-
- public SOAPFaultRole getRole() {
- return
(SOAPFaultRole)getFirstChildWithName(SOAP12Constants.QNAME_FAULT_ROLE);
- }
-
- public SOAPFaultDetail getDetail() {
- return
(SOAPFaultDetail)getFirstChildWithName(SOAP12Constants.QNAME_FAULT_DETAIL);
- }
}
Modified:
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java
Thu Jun 4 22:13:02 2015
@@ -26,11 +26,11 @@ import org.apache.axiom.om.OMXMLParserWr
import org.apache.axiom.soap.SOAP12Constants;
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
-import org.apache.axiom.soap.SOAPFaultNode;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP12FaultNode;
import org.apache.axiom.soap.impl.llom.SOAPElement;
-public class SOAP12FaultNodeImpl extends SOAPElement implements SOAPFaultNode {
+public class SOAP12FaultNodeImpl extends SOAPElement implements
AxiomSOAP12FaultNode {
public SOAP12FaultNodeImpl(SOAPFactory factory) {
super(SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME,
factory.getNamespace(), factory);
Modified:
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java
Thu Jun 4 22:13:02 2015
@@ -26,9 +26,10 @@ import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPFaultText;
import org.apache.axiom.soap.SOAPProcessingException;
import org.apache.axiom.soap.SOAP12Constants;
+import org.apache.axiom.soap.impl.common.AxiomSOAP12FaultReason;
import org.apache.axiom.soap.impl.llom.SOAPFaultReasonImpl;
-public class SOAP12FaultReasonImpl extends SOAPFaultReasonImpl {
+public class SOAP12FaultReasonImpl extends SOAPFaultReasonImpl implements
AxiomSOAP12FaultReason {
public SOAP12FaultReasonImpl(SOAPFault parent, OMXMLParserWrapper builder,
SOAPFactory factory) {
super(parent, builder, factory);
Modified:
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java
URL:
http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java?rev=1683649&r1=1683648&r2=1683649&view=diff
==============================================================================
---
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java
(original)
+++
webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java
Thu Jun 4 22:13:02 2015
@@ -24,9 +24,10 @@ import org.apache.axiom.om.OMXMLParserWr
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPProcessingException;
+import org.apache.axiom.soap.impl.common.AxiomSOAP12FaultRole;
import org.apache.axiom.soap.impl.llom.SOAPFaultRoleImpl;
-public class SOAP12FaultRoleImpl extends SOAPFaultRoleImpl {
+public class SOAP12FaultRoleImpl extends SOAPFaultRoleImpl implements
AxiomSOAP12FaultRole {
public SOAP12FaultRoleImpl(SOAPFault parent, SOAPFactory factory)
throws SOAPProcessingException {