You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by ru...@apache.org on 2006/03/07 07:59:38 UTC
svn commit: r383805 [2/3] - in /webservices/commons/modules/axiom:
src/org/apache/ws/commons/om/ src/org/apache/ws/commons/om/impl/llom/
src/org/apache/ws/commons/om/impl/llom/factory/
src/org/apache/ws/commons/om/xpath/ src/org/apache/ws/commons/soap/...
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11Factory.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11Factory.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11Factory.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11Factory.java Mon Mar 6 22:59:32 2006
@@ -43,8 +43,9 @@
*/
- public static OMNamespace getNamespace() {
- return new OMNamespaceImpl(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI, SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
+ public OMNamespace getNamespace() {
+ return new OMNamespaceImpl(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
+ SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX, this);
}
public String getSoapVersionURI() {
@@ -55,202 +56,218 @@
return new SOAPEnvelopeImpl(
new OMNamespaceImpl(
SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
- SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX),
+ SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX,
+ this),
this);
}
- public SOAPHeader createSOAPHeader(SOAPEnvelope envelope) throws SOAPProcessingException {
- return new SOAP11HeaderImpl(envelope);
+ public SOAPHeader createSOAPHeader(SOAPEnvelope envelope)
+ throws SOAPProcessingException {
+ return new SOAP11HeaderImpl(envelope, this);
}
public SOAPHeader createSOAPHeader() throws SOAPProcessingException {
- return new SOAP11HeaderImpl();
+ return new SOAP11HeaderImpl(this);
}
public SOAPHeader createSOAPHeader(SOAPEnvelope envelope,
OMXMLParserWrapper builder) {
- return new SOAP11HeaderImpl(envelope, builder);
+ return new SOAP11HeaderImpl(envelope, builder, this);
}
public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
- OMNamespace ns,
- SOAPHeader parent) throws SOAPProcessingException {
- return new SOAP11HeaderBlockImpl(localName, ns, parent);
+ OMNamespace ns, SOAPHeader parent) throws SOAPProcessingException {
+ return new SOAP11HeaderBlockImpl(localName, ns, parent, this);
}
public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
- OMNamespace ns) throws SOAPProcessingException {
- return new SOAP11HeaderBlockImpl(localName, ns);
+ OMNamespace ns) throws SOAPProcessingException {
+ return new SOAP11HeaderBlockImpl(localName, ns, this);
}
public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
OMNamespace ns,
SOAPHeader parent,
- OMXMLParserWrapper builder) throws SOAPProcessingException {
- return new SOAP11HeaderBlockImpl(localName, ns, parent, builder);
+ OMXMLParserWrapper builder)
+ throws SOAPProcessingException {
+ return new SOAP11HeaderBlockImpl(localName, ns, parent, builder, this);
}
- public SOAPFault createSOAPFault(SOAPBody parent, Exception e) throws SOAPProcessingException {
- return new SOAP11FaultImpl(parent, e);
+ public SOAPFault createSOAPFault(SOAPBody parent, Exception e)
+ throws SOAPProcessingException {
+ return new SOAP11FaultImpl(parent, e, this);
}
public SOAPFault createSOAPFault() throws SOAPProcessingException {
- return new SOAP11FaultImpl();
+ return new SOAP11FaultImpl(this);
}
- public SOAPFault createSOAPFault(SOAPBody parent) throws SOAPProcessingException {
- return new SOAP11FaultImpl(parent);
+ public SOAPFault createSOAPFault(SOAPBody parent)
+ throws SOAPProcessingException {
+ return new SOAP11FaultImpl(parent, this);
}
public SOAPFault createSOAPFault(SOAPBody parent,
OMXMLParserWrapper builder) {
- return new SOAP11FaultImpl(parent, builder);
+ return new SOAP11FaultImpl(parent, builder, this);
}
- public SOAPBody createSOAPBody(SOAPEnvelope envelope) throws SOAPProcessingException {
- return new SOAP11BodyImpl(envelope);
+ public SOAPBody createSOAPBody(SOAPEnvelope envelope)
+ throws SOAPProcessingException {
+ return new SOAP11BodyImpl(envelope, this);
}
public SOAPBody createSOAPBody(SOAPEnvelope envelope,
OMXMLParserWrapper builder) {
- return new SOAP11BodyImpl(envelope, builder);
+ return new SOAP11BodyImpl(envelope, builder, this);
}
public SOAPBody createSOAPBody() throws SOAPProcessingException {
- return new SOAP11BodyImpl();
+ return new SOAP11BodyImpl(this);
}
- public SOAPFaultCode createSOAPFaultCode(SOAPFault parent) throws SOAPProcessingException {
- return new SOAP11FaultCodeImpl(parent);
+ public SOAPFaultCode createSOAPFaultCode(SOAPFault parent)
+ throws SOAPProcessingException {
+ return new SOAP11FaultCodeImpl(parent, this);
}
public SOAPFaultCode createSOAPFaultCode() throws SOAPProcessingException {
- return new SOAP11FaultCodeImpl();
+ return new SOAP11FaultCodeImpl(this);
}
public SOAPFaultCode createSOAPFaultCode(SOAPFault parent,
OMXMLParserWrapper builder) {
- return new SOAP11FaultCodeImpl(parent, builder);
+ return new SOAP11FaultCodeImpl(parent, builder, this);
}
- public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent) throws SOAPProcessingException {
- return new SOAP11FaultValueImpl(parent);
+ public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent)
+ throws SOAPProcessingException {
+ return new SOAP11FaultValueImpl(parent, this);
}
public SOAPFaultValue createSOAPFaultValue() throws SOAPProcessingException {
- return new SOAP11FaultValueImpl();
+ return new SOAP11FaultValueImpl(this);
}
public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent,
OMXMLParserWrapper builder) {
- return new SOAP11FaultValueImpl(parent, builder);
+ return new SOAP11FaultValueImpl(parent, builder, this);
}
//added
- public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent) throws SOAPProcessingException {
- return new SOAP11FaultValueImpl(parent);
+ public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent)
+ throws SOAPProcessingException {
+ return new SOAP11FaultValueImpl(parent, this);
}
//added
public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent,
OMXMLParserWrapper builder) {
- return new SOAP11FaultValueImpl(parent, builder);
+ return new SOAP11FaultValueImpl(parent, builder, this);
}
//changed
- public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent) throws SOAPProcessingException {
- return new SOAP11FaultSubCodeImpl(parent);
+ public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent)
+ throws SOAPProcessingException {
+ return new SOAP11FaultSubCodeImpl(parent, this);
}
public SOAPFaultSubCode createSOAPFaultSubCode() throws SOAPProcessingException {
- return new SOAP11FaultSubCodeImpl();
+ return new SOAP11FaultSubCodeImpl(this);
}
//changed
public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent,
OMXMLParserWrapper builder) {
- return new SOAP11FaultSubCodeImpl(parent, builder);
+ return new SOAP11FaultSubCodeImpl(parent, builder, this);
}
- public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent) throws SOAPProcessingException {
- return new SOAP11FaultSubCodeImpl(parent);
+ public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent)
+ throws SOAPProcessingException {
+ return new SOAP11FaultSubCodeImpl(parent, this);
}
public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent,
OMXMLParserWrapper builder) {
- return new SOAP11FaultSubCodeImpl(parent, builder);
+ return new SOAP11FaultSubCodeImpl(parent, builder, this);
}
- public SOAPFaultReason createSOAPFaultReason(SOAPFault parent) throws SOAPProcessingException {
- return new SOAP11FaultReasonImpl(parent);
+ public SOAPFaultReason createSOAPFaultReason(SOAPFault parent)
+ throws SOAPProcessingException {
+ return new SOAP11FaultReasonImpl(parent, this);
}
public SOAPFaultReason createSOAPFaultReason() throws SOAPProcessingException {
- return new SOAP11FaultReasonImpl();
+ return new SOAP11FaultReasonImpl(this);
}
public SOAPFaultReason createSOAPFaultReason(SOAPFault parent,
OMXMLParserWrapper builder) {
- return new SOAP11FaultReasonImpl(parent, builder);
+ return new SOAP11FaultReasonImpl(parent, builder, this);
}
- public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent) throws SOAPProcessingException {
- return new SOAP11FaultTextImpl(parent);
+ public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent)
+ throws SOAPProcessingException {
+ return new SOAP11FaultTextImpl(parent, this);
}
public SOAPFaultText createSOAPFaultText() throws SOAPProcessingException {
- return new SOAP11FaultTextImpl();
+ return new SOAP11FaultTextImpl(this);
}
public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent,
OMXMLParserWrapper builder) {
- return new SOAP11FaultTextImpl(parent, builder);
+ return new SOAP11FaultTextImpl(parent, builder, this);
}
- public SOAPFaultNode createSOAPFaultNode(SOAPFault parent) throws SOAPProcessingException {
- return new SOAP11FaultNodeImpl(parent);
+ public SOAPFaultNode createSOAPFaultNode(SOAPFault parent)
+ throws SOAPProcessingException {
+ return new SOAP11FaultNodeImpl(parent, this);
}
public SOAPFaultNode createSOAPFaultNode() throws SOAPProcessingException {
- return new SOAP11FaultNodeImpl();
+ return new SOAP11FaultNodeImpl(this);
}
public SOAPFaultNode createSOAPFaultNode(SOAPFault parent,
OMXMLParserWrapper builder) {
- return new SOAP11FaultNodeImpl(parent, builder);
+ return new SOAP11FaultNodeImpl(parent, builder, this);
}
- public SOAPFaultRole createSOAPFaultRole(SOAPFault parent) throws SOAPProcessingException {
- return new SOAP11FaultRoleImpl(parent);
+ public SOAPFaultRole createSOAPFaultRole(SOAPFault parent)
+ throws SOAPProcessingException {
+ return new SOAP11FaultRoleImpl(parent, this);
}
public SOAPFaultRole createSOAPFaultRole() throws SOAPProcessingException {
- return new SOAP11FaultRoleImpl();
+ return new SOAP11FaultRoleImpl(this);
}
public SOAPFaultRole createSOAPFaultRole(SOAPFault parent,
OMXMLParserWrapper builder) {
- return new SOAP11FaultRoleImpl(parent, builder);
+ return new SOAP11FaultRoleImpl(parent, builder, this);
}
- public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent) throws SOAPProcessingException {
- return new SOAP11FaultDetailImpl(parent);
+ public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent)
+ throws SOAPProcessingException {
+ return new SOAP11FaultDetailImpl(parent, this);
}
public SOAPFaultDetail createSOAPFaultDetail() throws SOAPProcessingException {
- return new SOAP11FaultDetailImpl();
+ return new SOAP11FaultDetailImpl(this);
}
public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent,
OMXMLParserWrapper builder) {
- return new SOAP11FaultDetailImpl(parent, builder);
+ return new SOAP11FaultDetailImpl(parent, builder, this);
}
public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
OMNamespace ns =
new OMNamespaceImpl(
SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
- SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
+ SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX,
+ this);
SOAPEnvelopeImpl env = new SOAPEnvelopeImpl(ns, this);
createSOAPHeader(env);
createSOAPBody(env);
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java Mon Mar 6 22:59:32 2006
@@ -21,6 +21,7 @@
import org.apache.ws.commons.om.impl.llom.OMSerializerUtil;
import org.apache.ws.commons.om.impl.llom.serialize.StreamWriterToContentHandlerConverter;
import org.apache.ws.commons.soap.SOAP11Constants;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFault;
import org.apache.ws.commons.soap.SOAPFaultSubCode;
import org.apache.ws.commons.soap.SOAPFaultValue;
@@ -32,8 +33,8 @@
public class SOAP11FaultCodeImpl extends SOAPFaultCodeImpl {
- public SOAP11FaultCodeImpl() {
- super(null);
+ public SOAP11FaultCodeImpl(SOAPFactory factory) {
+ super(null, factory);
}
/**
@@ -42,15 +43,15 @@
* @param parent
* @param builder
*/
- public SOAP11FaultCodeImpl(SOAPFault parent, OMXMLParserWrapper builder) {
- super(parent, builder);
+ public SOAP11FaultCodeImpl(SOAPFault parent, OMXMLParserWrapper builder, SOAPFactory factory) {
+ super(parent, builder, factory);
}
/**
* @param parent
*/
- public SOAP11FaultCodeImpl(SOAPFault parent) throws SOAPProcessingException {
- super(parent, false);
+ public SOAP11FaultCodeImpl(SOAPFault parent, SOAPFactory factory) throws SOAPProcessingException {
+ super(parent, false, factory);
}
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java Mon Mar 6 22:59:32 2006
@@ -23,6 +23,7 @@
import org.apache.ws.commons.om.impl.llom.OMSerializerUtil;
import org.apache.ws.commons.om.impl.llom.serialize.StreamWriterToContentHandlerConverter;
import org.apache.ws.commons.soap.SOAP11Constants;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFault;
import org.apache.ws.commons.soap.SOAPProcessingException;
import org.apache.ws.commons.soap.impl.llom.SOAPFaultDetailImpl;
@@ -32,22 +33,25 @@
public class SOAP11FaultDetailImpl extends SOAPFaultDetailImpl {
- public SOAP11FaultDetailImpl() {
- super(null);
+ public SOAP11FaultDetailImpl(SOAPFactory factory) {
+ super(null, factory);
}
- public SOAP11FaultDetailImpl(SOAPFault parent) throws SOAPProcessingException {
- super(parent, false);
+ public SOAP11FaultDetailImpl(SOAPFault parent, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, false, factory);
}
- public SOAP11FaultDetailImpl(SOAPFault parent, OMXMLParserWrapper builder) {
- super(parent, builder);
+ public SOAP11FaultDetailImpl(SOAPFault parent, OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(parent, builder, factory);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11FaultImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault as the parent. But received some other implementation");
+ "Expecting SOAP 1.1 implementation of SOAP Fault as the " +
+ "parent. But received some other implementation");
}
}
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultImpl.java Mon Mar 6 22:59:32 2006
@@ -18,7 +18,9 @@
import org.apache.ws.commons.om.OMElement;
import org.apache.ws.commons.om.OMXMLParserWrapper;
+import org.apache.ws.commons.om.impl.OMOutputImpl;
import org.apache.ws.commons.soap.SOAPBody;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFault;
import org.apache.ws.commons.soap.SOAPFaultCode;
import org.apache.ws.commons.soap.SOAPFaultDetail;
@@ -37,16 +39,18 @@
*/
- public SOAP11FaultImpl() {
- super(SOAP11Factory.getNamespace());
+ public SOAP11FaultImpl(SOAPFactory factory) {
+ super(factory.getNamespace(), factory);
}
- public SOAP11FaultImpl(SOAPBody parent, Exception e) throws SOAPProcessingException {
- super(parent, e);
+ public SOAP11FaultImpl(SOAPBody parent, Exception e, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, e, factory);
}
- public SOAP11FaultImpl(SOAPBody parent, OMXMLParserWrapper builder) {
- super(parent, builder);
+ public SOAP11FaultImpl(SOAPBody parent, OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(parent, builder, factory);
}
/**
@@ -54,27 +58,33 @@
*
* @param parent
*/
- public SOAP11FaultImpl(SOAPBody parent) throws SOAPProcessingException {
- super(parent);
+ public SOAP11FaultImpl(SOAPBody parent, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, factory);
}
- protected SOAPFaultDetail getNewSOAPFaultDetail(SOAPFault fault) throws SOAPProcessingException {
- return new SOAP11FaultDetailImpl(fault);
+ protected SOAPFaultDetail getNewSOAPFaultDetail(SOAPFault fault)
+ throws SOAPProcessingException {
+ return new SOAP11FaultDetailImpl(fault, (SOAPFactory)this.factory);
}
- public void serialize(org.apache.ws.commons.om.impl.OMOutputImpl omOutput) throws XMLStreamException {
+ public void serialize(OMOutputImpl omOutput)
+ throws XMLStreamException {
super.serialize(omOutput);
}
- public void serializeAndConsume(org.apache.ws.commons.om.impl.OMOutputImpl omOutput) throws XMLStreamException {
+ public void serializeAndConsume(OMOutputImpl omOutput)
+ throws XMLStreamException {
super.serializeAndConsume(omOutput);
}
- public void setCode(SOAPFaultCode soapFaultCode) throws SOAPProcessingException {
+ 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");
+ "Expecting SOAP 1.1 implementation of SOAP Fault Code. " +
+ "But received some other implementation");
}
super.setCode(soapFaultCode);
}
@@ -82,7 +92,8 @@
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");
+ "Expecting SOAP 1.1 implementation of SOAP Fault Reason. " +
+ "But received some other implementation");
}
super.setReason(reason);
}
@@ -90,7 +101,8 @@
public void setNode(SOAPFaultNode node) throws SOAPProcessingException {
if (!(node instanceof SOAP11FaultNodeImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Node. But received some other implementation");
+ "Expecting SOAP 1.1 implementation of SOAP Fault Node. " +
+ "But received some other implementation");
}
super.setNode(node);
}
@@ -98,7 +110,8 @@
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");
+ "Expecting SOAP 1.1 implementation of SOAP Fault Role. " +
+ "But received some other implementation");
}
super.setRole(role);
}
@@ -106,19 +119,23 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11BodyImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Body as the parent. But received some other implementation");
+ "Expecting SOAP 1.1 implementation of SOAP Body as the " +
+ "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");
+ "Expecting SOAP 1.1 implementation of SOAP Fault Detail. " +
+ "But received some other implementation");
}
super.setDetail(detail);
}
- protected void serializeFaultNode(org.apache.ws.commons.om.impl.OMOutputImpl omOutput) throws XMLStreamException {
+ protected void serializeFaultNode(
+ org.apache.ws.commons.om.impl.OMOutputImpl omOutput)
+ throws XMLStreamException {
}
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultNodeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultNodeImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultNodeImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultNodeImpl.java Mon Mar 6 22:59:32 2006
@@ -19,6 +19,7 @@
import org.apache.ws.commons.om.OMElement;
import org.apache.ws.commons.om.OMNamespace;
import org.apache.ws.commons.om.OMXMLParserWrapper;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFault;
import org.apache.ws.commons.soap.SOAPProcessingException;
import org.apache.ws.commons.soap.impl.llom.SOAPFaultNodeImpl;
@@ -26,22 +27,25 @@
public class SOAP11FaultNodeImpl extends SOAPFaultNodeImpl {
- public SOAP11FaultNodeImpl() {
- super((OMNamespace) null);
+ public SOAP11FaultNodeImpl(SOAPFactory factory) {
+ super((OMNamespace) null, factory);
}
- public SOAP11FaultNodeImpl(SOAPFault parent) throws SOAPProcessingException {
- super(parent);
+ public SOAP11FaultNodeImpl(SOAPFault parent, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, factory);
}
- public SOAP11FaultNodeImpl(SOAPFault parent, OMXMLParserWrapper builder) {
- super(parent, builder);
+ public SOAP11FaultNodeImpl(SOAPFault parent, OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(parent, builder, factory);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11FaultImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault as the parent. But received some other implementation");
+ "Expecting SOAP 1.1 implementation of SOAP Fault as the " +
+ "parent. But received some other implementation");
}
}
}
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java Mon Mar 6 22:59:32 2006
@@ -22,6 +22,7 @@
import org.apache.ws.commons.om.impl.llom.OMSerializerUtil;
import org.apache.ws.commons.om.impl.llom.serialize.StreamWriterToContentHandlerConverter;
import org.apache.ws.commons.soap.SOAP11Constants;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFault;
import org.apache.ws.commons.soap.SOAPFaultText;
import org.apache.ws.commons.soap.SOAPProcessingException;
@@ -37,25 +38,29 @@
* Eran Chinthaka (chinthaka@apache.org)
*/
- public SOAP11FaultReasonImpl() {
- super(null);
+ public SOAP11FaultReasonImpl(SOAPFactory factory) {
+ super(null, factory);
}
- public SOAP11FaultReasonImpl(SOAPFault parent, OMXMLParserWrapper builder) {
- super(parent, builder);
+ public SOAP11FaultReasonImpl(SOAPFault parent, OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(parent, builder, factory);
}
/**
* @param parent
*/
- public SOAP11FaultReasonImpl(SOAPFault parent) throws SOAPProcessingException {
- super(parent, false);
+ public SOAP11FaultReasonImpl(SOAPFault parent, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, false, factory);
}
- public void setSOAPText(SOAPFaultText soapFaultText) throws SOAPProcessingException {
+ public void setSOAPText(SOAPFaultText soapFaultText)
+ throws SOAPProcessingException {
if (!(soapFaultText instanceof SOAP11FaultTextImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Text. But received some other implementation");
+ "Expecting SOAP 1.1 implementation of SOAP Fault Text. " +
+ "But received some other implementation");
}
super.setSOAPText(soapFaultText);
}
@@ -63,11 +68,13 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11FaultImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault as the parent. But received some other implementation");
+ "Expecting SOAP 1.1 implementation of SOAP Fault as the " +
+ "parent. But received some other implementation");
}
}
- protected void serialize(OMOutputImpl omOutput, boolean cache) throws XMLStreamException {
+ protected void serialize(OMOutputImpl omOutput, boolean cache)
+ throws XMLStreamException {
// select the builder
short builderType = PULL_TYPE_BUILDER; // default is pull type
@@ -84,8 +91,9 @@
if (this.getNamespace() != null) {
String prefix = this.getNamespace().getPrefix();
String nameSpaceName = this.getNamespace().getName();
- writer.writeStartElement(prefix, SOAP11Constants.SOAP_FAULT_STRING_LOCAL_NAME,
- nameSpaceName);
+ writer.writeStartElement(prefix,
+ SOAP11Constants.SOAP_FAULT_STRING_LOCAL_NAME,
+ nameSpaceName);
} else {
writer.writeStartElement(
SOAP11Constants.SOAP_FAULT_STRING_LOCAL_NAME);
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java Mon Mar 6 22:59:32 2006
@@ -21,6 +21,7 @@
import org.apache.ws.commons.om.impl.llom.OMSerializerUtil;
import org.apache.ws.commons.om.impl.llom.serialize.StreamWriterToContentHandlerConverter;
import org.apache.ws.commons.soap.SOAP11Constants;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFault;
import org.apache.ws.commons.soap.SOAPProcessingException;
import org.apache.ws.commons.soap.impl.llom.SOAPFaultRoleImpl;
@@ -29,26 +30,32 @@
import javax.xml.stream.XMLStreamWriter;
public class SOAP11FaultRoleImpl extends SOAPFaultRoleImpl {
- public SOAP11FaultRoleImpl(SOAPFault parent) throws SOAPProcessingException {
- super(parent, false);
+
+ public SOAP11FaultRoleImpl(SOAPFault parent, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, false, factory);
}
- public SOAP11FaultRoleImpl() {
- super(null);
+ public SOAP11FaultRoleImpl(SOAPFactory factory) {
+ super(null, factory);
}
- public SOAP11FaultRoleImpl(SOAPFault parent, OMXMLParserWrapper builder) {
- super(parent, builder);
+ public SOAP11FaultRoleImpl(SOAPFault parent, OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(parent, builder, factory);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11FaultImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault as the parent. But received some other implementation");
+ "Expecting SOAP 1.1 implementation of SOAP Fault as the " +
+ "parent. But received some other implementation");
}
}
- protected void serialize(org.apache.ws.commons.om.impl.OMOutputImpl omOutput, boolean cache) throws XMLStreamException {
+ protected void serialize(
+ org.apache.ws.commons.om.impl.OMOutputImpl omOutput, boolean cache)
+ throws XMLStreamException {
// select the builder
short builderType = PULL_TYPE_BUILDER; // default is pull type
@@ -65,7 +72,8 @@
if (this.getNamespace() != null) {
String prefix = this.getNamespace().getPrefix();
String nameSpaceName = this.getNamespace().getName();
- writer.writeStartElement(prefix, SOAP11Constants.SOAP_FAULT_ACTOR_LOCAL_NAME,
+ writer.writeStartElement(prefix,
+ SOAP11Constants.SOAP_FAULT_ACTOR_LOCAL_NAME,
nameSpaceName);
} else {
writer.writeStartElement(
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultSubCodeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultSubCodeImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultSubCodeImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultSubCodeImpl.java Mon Mar 6 22:59:32 2006
@@ -19,6 +19,7 @@
import org.apache.ws.commons.om.OMElement;
import org.apache.ws.commons.om.OMXMLParserWrapper;
import org.apache.ws.commons.soap.SOAP12Constants;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFaultCode;
import org.apache.ws.commons.soap.SOAPFaultSubCode;
import org.apache.ws.commons.soap.SOAPFaultValue;
@@ -28,28 +29,34 @@
public class SOAP11FaultSubCodeImpl extends SOAPFaultSubCodeImpl {
- public SOAP11FaultSubCodeImpl() {
- super(null);
+ public SOAP11FaultSubCodeImpl(SOAPFactory factory) {
+ super(null, factory);
}
//changed
- public SOAP11FaultSubCodeImpl(SOAPFaultCode parent) throws SOAPProcessingException {
- super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME);
+ public SOAP11FaultSubCodeImpl(SOAPFaultCode parent, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, factory);
}
//changed
public SOAP11FaultSubCodeImpl(SOAPFaultCode parent,
- OMXMLParserWrapper builder) {
- super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, builder);
+ OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, builder,
+ factory);
}
- public SOAP11FaultSubCodeImpl(SOAPFaultSubCode parent) throws SOAPProcessingException {
- super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME);
+ public SOAP11FaultSubCodeImpl(SOAPFaultSubCode parent, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, factory);
}
public SOAP11FaultSubCodeImpl(SOAPFaultSubCode parent,
- OMXMLParserWrapper builder) {
- super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, builder);
+ OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, builder,
+ factory);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultTextImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultTextImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultTextImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultTextImpl.java Mon Mar 6 22:59:32 2006
@@ -19,28 +19,34 @@
import org.apache.ws.commons.om.OMElement;
import org.apache.ws.commons.om.OMNamespace;
import org.apache.ws.commons.om.OMXMLParserWrapper;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFaultReason;
import org.apache.ws.commons.soap.SOAPProcessingException;
import org.apache.ws.commons.soap.impl.llom.SOAPFaultTextImpl;
public class SOAP11FaultTextImpl extends SOAPFaultTextImpl {
- public SOAP11FaultTextImpl(SOAPFaultReason parent) throws SOAPProcessingException {
- super(parent);
+
+ public SOAP11FaultTextImpl(SOAPFaultReason parent, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, factory);
}
- public SOAP11FaultTextImpl() throws SOAPProcessingException {
- super((OMNamespace) null);
+ public SOAP11FaultTextImpl(SOAPFactory factory)
+ throws SOAPProcessingException {
+ super((OMNamespace) null, factory);
}
public SOAP11FaultTextImpl(SOAPFaultReason parent,
- OMXMLParserWrapper builder) {
- super(parent, builder);
+ OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(parent, builder, factory);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11FaultReasonImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP FaultReason as the parent. But received some other implementation");
+ "Expecting SOAP 1.1 implementation of SOAP FaultReason as " +
+ "the parent. But received some other implementation");
}
}
}
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultValueImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultValueImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultValueImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11FaultValueImpl.java Mon Mar 6 22:59:32 2006
@@ -19,20 +19,22 @@
import org.apache.ws.commons.om.OMElement;
import org.apache.ws.commons.om.OMNamespace;
import org.apache.ws.commons.om.OMXMLParserWrapper;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPProcessingException;
import org.apache.ws.commons.soap.impl.llom.SOAPFaultValueImpl;
public class SOAP11FaultValueImpl extends SOAPFaultValueImpl {
- public SOAP11FaultValueImpl(OMElement parent) throws SOAPProcessingException {
- super(parent);
+
+ public SOAP11FaultValueImpl(OMElement parent, SOAPFactory factory) throws SOAPProcessingException {
+ super(parent, factory);
}
- public SOAP11FaultValueImpl() throws SOAPProcessingException {
- super((OMNamespace) null);
+ public SOAP11FaultValueImpl(SOAPFactory factory) throws SOAPProcessingException {
+ super((OMNamespace) null, factory);
}
- public SOAP11FaultValueImpl(OMElement parent, OMXMLParserWrapper builder) {
- super(parent, builder);
+ public SOAP11FaultValueImpl(OMElement parent, OMXMLParserWrapper builder, SOAPFactory factory) {
+ super(parent, builder, factory);
}
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java Mon Mar 6 22:59:32 2006
@@ -21,14 +21,16 @@
import org.apache.ws.commons.om.OMXMLParserWrapper;
import org.apache.ws.commons.soap.SOAP11Constants;
import org.apache.ws.commons.soap.SOAPConstants;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPHeader;
import org.apache.ws.commons.soap.SOAPProcessingException;
import org.apache.ws.commons.soap.impl.llom.SOAPHeaderBlockImpl;
public class SOAP11HeaderBlockImpl extends SOAPHeaderBlockImpl {
- public SOAP11HeaderBlockImpl(String localName, OMNamespace ns) {
- super(localName, ns);
+ public SOAP11HeaderBlockImpl(String localName, OMNamespace ns,
+ SOAPFactory factory) {
+ super(localName, ns, factory);
}
/**
@@ -37,8 +39,10 @@
*/
public SOAP11HeaderBlockImpl(String localName,
OMNamespace ns,
- SOAPHeader parent) throws SOAPProcessingException {
- super(localName, ns, parent);
+ SOAPHeader parent,
+ SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(localName, ns, parent, factory);
checkParent(parent);
}
@@ -53,8 +57,9 @@
public SOAP11HeaderBlockImpl(String localName,
OMNamespace ns,
OMElement parent,
- OMXMLParserWrapper builder) {
- super(localName, ns, parent, builder);
+ OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(localName, ns, parent, builder, factory);
}
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11HeaderImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11HeaderImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11HeaderImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap11/SOAP11HeaderImpl.java Mon Mar 6 22:59:32 2006
@@ -23,6 +23,7 @@
import org.apache.ws.commons.om.impl.llom.traverse.OMChildrenWithSpecificAttributeIterator;
import org.apache.ws.commons.soap.SOAP11Constants;
import org.apache.ws.commons.soap.SOAPEnvelope;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPHeaderBlock;
import org.apache.ws.commons.soap.SOAPProcessingException;
import org.apache.ws.commons.soap.impl.llom.SOAPHeaderImpl;
@@ -32,15 +33,17 @@
public class SOAP11HeaderImpl extends SOAPHeaderImpl {
- public SOAP11HeaderImpl() {
- super(SOAP11Factory.getNamespace());
+ public SOAP11HeaderImpl(SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(factory.getNamespace(), factory);
}
-
+
/**
* @param envelope
*/
- public SOAP11HeaderImpl(SOAPEnvelope envelope) throws SOAPProcessingException {
- super(envelope);
+ public SOAP11HeaderImpl(SOAPEnvelope envelope, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(envelope, factory);
}
/**
@@ -49,11 +52,14 @@
* @param envelope
* @param builder
*/
- public SOAP11HeaderImpl(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
- super(envelope, builder);
+ public SOAP11HeaderImpl(SOAPEnvelope envelope, OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(envelope, builder, factory);
}
- public SOAPHeaderBlock addHeaderBlock(String localName, OMNamespace ns) throws OMException {
+ public SOAPHeaderBlock addHeaderBlock(String localName, OMNamespace ns)
+ throws OMException {
+
if (ns == null || ns.getName() == null || "".equals(ns.getName())) {
throw new OMException(
"All the SOAP Header blocks should be namespace qualified");
@@ -66,7 +72,8 @@
SOAPHeaderBlock soapHeaderBlock = null;
try {
- soapHeaderBlock = new SOAP11HeaderBlockImpl(localName, ns, this);
+ soapHeaderBlock = new SOAP11HeaderBlockImpl(localName, ns, this,
+ (SOAPFactory)this.factory);
} catch (SOAPProcessingException e) {
throw new OMException(e);
}
@@ -82,6 +89,5 @@
true);
}
-
}
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12BodyImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12BodyImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12BodyImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12BodyImpl.java Mon Mar 6 22:59:32 2006
@@ -20,21 +20,24 @@
import org.apache.ws.commons.om.OMXMLParserWrapper;
import org.apache.ws.commons.soap.SOAPConstants;
import org.apache.ws.commons.soap.SOAPEnvelope;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFault;
import org.apache.ws.commons.soap.SOAPProcessingException;
import org.apache.ws.commons.soap.impl.llom.SOAPBodyImpl;
public class SOAP12BodyImpl extends SOAPBodyImpl {
- public SOAP12BodyImpl() {
- super(SOAPConstants.BODY_LOCAL_NAME, SOAP12Factory.getNamespace());
+ public SOAP12BodyImpl(SOAPFactory factory) {
+ super(SOAPConstants.BODY_LOCAL_NAME, factory.getNamespace(),
+ factory);
}
/**
* @param envelope
*/
- public SOAP12BodyImpl(SOAPEnvelope envelope) throws SOAPProcessingException {
- super(envelope);
+ public SOAP12BodyImpl(SOAPEnvelope envelope, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(envelope, factory);
}
/**
@@ -43,12 +46,14 @@
* @param envelope
* @param builder
*/
- public SOAP12BodyImpl(SOAPEnvelope envelope, OMXMLParserWrapper builder) {
- super(envelope, builder);
+ public SOAP12BodyImpl(SOAPEnvelope envelope, OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(envelope, builder, factory);
}
public SOAPFault addFault(Exception e) throws OMException {
- SOAPFault soapFault = new SOAP12FaultImpl(this, e);
+ SOAPFault soapFault = new SOAP12FaultImpl(this, e,
+ (SOAPFactory) this.factory);
return soapFault;
}
}
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12Factory.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12Factory.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12Factory.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12Factory.java Mon Mar 6 22:59:32 2006
@@ -46,210 +46,224 @@
return SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI;
}
- public static OMNamespace getNamespace() {
- return new OMNamespaceImpl(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI, SOAP12Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
+ public OMNamespace getNamespace() {
+ return new OMNamespaceImpl(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI,
+ SOAP12Constants.SOAP_DEFAULT_NAMESPACE_PREFIX, this);
}
public SOAPEnvelope createSOAPEnvelope() {
return new SOAPEnvelopeImpl(
new OMNamespaceImpl(
SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI,
- SOAP12Constants.SOAP_DEFAULT_NAMESPACE_PREFIX),
+ SOAP12Constants.SOAP_DEFAULT_NAMESPACE_PREFIX, this),
this);
}
public SOAPHeader createSOAPHeader(SOAPEnvelope envelope) throws SOAPProcessingException {
- return new SOAP12HeaderImpl(envelope);
+ return new SOAP12HeaderImpl(envelope, this);
}
public SOAPHeader createSOAPHeader() throws SOAPProcessingException {
- return new SOAP12HeaderImpl();
+ return new SOAP12HeaderImpl(this);
}
public SOAPHeader createSOAPHeader(SOAPEnvelope envelope,
OMXMLParserWrapper builder) {
- return new SOAP12HeaderImpl(envelope, builder);
+ return new SOAP12HeaderImpl(envelope, builder, this);
}
public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
- OMNamespace ns,
- SOAPHeader parent) throws SOAPProcessingException {
- return new SOAP12HeaderBlockImpl(localName, ns, parent);
+ OMNamespace ns, SOAPHeader parent) throws SOAPProcessingException {
+ return new SOAP12HeaderBlockImpl(localName, ns, parent, this);
}
public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
- OMNamespace ns,
- SOAPHeader parent,
- OMXMLParserWrapper builder) throws SOAPProcessingException {
- return new SOAP12HeaderBlockImpl(localName, ns, parent, builder);
+ OMNamespace ns, SOAPHeader parent, OMXMLParserWrapper builder)
+ throws SOAPProcessingException {
+ return new SOAP12HeaderBlockImpl(localName, ns, parent, builder, this);
}
- public SOAPFault createSOAPFault(SOAPBody parent, Exception e) throws SOAPProcessingException {
- return new SOAP12FaultImpl(parent, e);
+ public SOAPFault createSOAPFault(SOAPBody parent, Exception e)
+ throws SOAPProcessingException {
+ return new SOAP12FaultImpl(parent, e, this);
}
- public SOAPFault createSOAPFault(SOAPBody parent) throws SOAPProcessingException {
- return new SOAP12FaultImpl(parent);
+ public SOAPFault createSOAPFault(SOAPBody parent)
+ throws SOAPProcessingException {
+ return new SOAP12FaultImpl(parent, this);
}
public SOAPFault createSOAPFault() throws SOAPProcessingException {
- return new SOAP12FaultImpl();
+ return new SOAP12FaultImpl(this);
}
public SOAPFault createSOAPFault(SOAPBody parent,
OMXMLParserWrapper builder) {
- return new SOAP12FaultImpl(parent, builder);
+ return new SOAP12FaultImpl(parent, builder, this);
}
- public SOAPBody createSOAPBody(SOAPEnvelope envelope) throws SOAPProcessingException {
- return new SOAP12BodyImpl(envelope);
+ public SOAPBody createSOAPBody(SOAPEnvelope envelope)
+ throws SOAPProcessingException {
+ return new SOAP12BodyImpl(envelope, this);
}
public SOAPBody createSOAPBody() throws SOAPProcessingException {
- return new SOAP12BodyImpl();
+ return new SOAP12BodyImpl(this);
}
public SOAPBody createSOAPBody(SOAPEnvelope envelope,
OMXMLParserWrapper builder) {
- return new SOAP12BodyImpl(envelope, builder);
+ return new SOAP12BodyImpl(envelope, builder, this);
}
- public SOAPFaultCode createSOAPFaultCode(SOAPFault parent) throws SOAPProcessingException {
- return new SOAP12FaultCodeImpl(parent);
+ public SOAPFaultCode createSOAPFaultCode(SOAPFault parent)
+ throws SOAPProcessingException {
+ return new SOAP12FaultCodeImpl(parent, this);
}
public SOAPFaultCode createSOAPFaultCode() throws SOAPProcessingException {
- return new SOAP12FaultCodeImpl();
+ return new SOAP12FaultCodeImpl(this);
}
public SOAPFaultCode createSOAPFaultCode(SOAPFault parent,
OMXMLParserWrapper builder) {
- return new SOAP12FaultCodeImpl(parent, builder);
+ return new SOAP12FaultCodeImpl(parent, builder, this);
}
- public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent) throws SOAPProcessingException {
- return new SOAP12FaultValueImpl(parent);
+ public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent)
+ throws SOAPProcessingException {
+ return new SOAP12FaultValueImpl(parent, this);
}
public SOAPFaultValue createSOAPFaultValue() throws SOAPProcessingException {
- return new SOAP12FaultValueImpl();
+ return new SOAP12FaultValueImpl(this);
}
public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent,
OMXMLParserWrapper builder) {
- return new SOAP12FaultValueImpl(parent, builder);
+ return new SOAP12FaultValueImpl(parent, builder, this);
}
public SOAPHeaderBlock createSOAPHeaderBlock(String localName,
- OMNamespace ns) throws SOAPProcessingException {
- return new SOAP12HeaderBlockImpl(localName, ns);
+ OMNamespace ns) throws SOAPProcessingException {
+ return new SOAP12HeaderBlockImpl(localName, ns, this);
}
//added
- public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent) throws SOAPProcessingException {
- return new SOAP12FaultValueImpl(parent);
+ public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent)
+ throws SOAPProcessingException {
+ return new SOAP12FaultValueImpl(parent, this);
}
//added
public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent,
OMXMLParserWrapper builder) {
- return new SOAP12FaultValueImpl(parent, builder);
+ return new SOAP12FaultValueImpl(parent, builder, this);
}
//changed
- public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent) throws SOAPProcessingException {
- return new SOAP12FaultSubCodeImpl(parent);
+ public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent)
+ throws SOAPProcessingException {
+ return new SOAP12FaultSubCodeImpl(parent, this);
}
- public SOAPFaultSubCode createSOAPFaultSubCode() throws SOAPProcessingException {
- return new SOAP12FaultSubCodeImpl();
+ public SOAPFaultSubCode createSOAPFaultSubCode()
+ throws SOAPProcessingException {
+ return new SOAP12FaultSubCodeImpl(this);
}
//changed
public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent,
OMXMLParserWrapper builder) {
- return new SOAP12FaultSubCodeImpl(parent, builder);
+ return new SOAP12FaultSubCodeImpl(parent, builder, this);
}
- public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent) throws SOAPProcessingException {
- return new SOAP12FaultSubCodeImpl(parent);
+ public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent)
+ throws SOAPProcessingException {
+ return new SOAP12FaultSubCodeImpl(parent, this);
}
public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent,
OMXMLParserWrapper builder) {
- return new SOAP12FaultSubCodeImpl(parent, builder);
+ return new SOAP12FaultSubCodeImpl(parent, builder, this);
}
- public SOAPFaultReason createSOAPFaultReason(SOAPFault parent) throws SOAPProcessingException {
- return new SOAP12FaultReasonImpl(parent);
+ public SOAPFaultReason createSOAPFaultReason(SOAPFault parent)
+ throws SOAPProcessingException {
+ return new SOAP12FaultReasonImpl(parent, this);
}
public SOAPFaultReason createSOAPFaultReason() throws SOAPProcessingException {
- return new SOAP12FaultReasonImpl();
+ return new SOAP12FaultReasonImpl(this);
}
public SOAPFaultReason createSOAPFaultReason(SOAPFault parent,
OMXMLParserWrapper builder) {
- return new SOAP12FaultReasonImpl(parent, builder);
+ return new SOAP12FaultReasonImpl(parent, builder, this);
}
- public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent) throws SOAPProcessingException {
- return new SOAP12FaultTextImpl(parent);
+ public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent)
+ throws SOAPProcessingException {
+ return new SOAP12FaultTextImpl(parent, this);
}
public SOAPFaultText createSOAPFaultText() throws SOAPProcessingException {
- return new SOAP12FaultTextImpl();
+ return new SOAP12FaultTextImpl(this);
}
public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent,
OMXMLParserWrapper builder) {
- return new SOAP12FaultTextImpl(parent, builder);
+ return new SOAP12FaultTextImpl(parent, builder, this);
}
- public SOAPFaultNode createSOAPFaultNode(SOAPFault parent) throws SOAPProcessingException {
- return new SOAP12FaultNodeImpl(parent);
+ public SOAPFaultNode createSOAPFaultNode(SOAPFault parent)
+ throws SOAPProcessingException {
+ return new SOAP12FaultNodeImpl(parent, this);
}
public SOAPFaultNode createSOAPFaultNode() throws SOAPProcessingException {
- return new SOAP12FaultNodeImpl();
+ return new SOAP12FaultNodeImpl(this);
}
public SOAPFaultNode createSOAPFaultNode(SOAPFault parent,
OMXMLParserWrapper builder) {
- return new SOAP12FaultNodeImpl(parent, builder);
+ return new SOAP12FaultNodeImpl(parent, builder, this);
}
- public SOAPFaultRole createSOAPFaultRole(SOAPFault parent) throws SOAPProcessingException {
- return new SOAP12FaultRoleImpl(parent);
+ public SOAPFaultRole createSOAPFaultRole(SOAPFault parent)
+ throws SOAPProcessingException {
+ return new SOAP12FaultRoleImpl(parent, this);
}
public SOAPFaultRole createSOAPFaultRole() throws SOAPProcessingException {
- return new SOAP12FaultRoleImpl();
+ return new SOAP12FaultRoleImpl(this);
}
public SOAPFaultRole createSOAPFaultRole(SOAPFault parent,
OMXMLParserWrapper builder) {
- return new SOAP12FaultRoleImpl(parent, builder);
+ return new SOAP12FaultRoleImpl(parent, builder, this);
}
- public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent) throws SOAPProcessingException {
- return new SOAP12FaultDetailImpl(parent);
+ public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent)
+ throws SOAPProcessingException {
+ return new SOAP12FaultDetailImpl(parent, this);
}
- public SOAPFaultDetail createSOAPFaultDetail() throws SOAPProcessingException {
- return new SOAP12FaultDetailImpl();
+ public SOAPFaultDetail createSOAPFaultDetail()
+ throws SOAPProcessingException {
+ return new SOAP12FaultDetailImpl(this);
}
public SOAPFaultDetail createSOAPFaultDetail(SOAPFault parent,
OMXMLParserWrapper builder) {
- return new SOAP12FaultDetailImpl(parent, builder);
+ return new SOAP12FaultDetailImpl(parent, builder, this);
}
public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
OMNamespace ns =
new OMNamespaceImpl(
SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI,
- SOAP12Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
+ SOAP12Constants.SOAP_DEFAULT_NAMESPACE_PREFIX, this);
SOAPEnvelopeImpl env = new SOAPEnvelopeImpl(ns, this);
createSOAPHeader(env);
createSOAPBody(env);
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java Mon Mar 6 22:59:32 2006
@@ -18,6 +18,7 @@
import org.apache.ws.commons.om.OMElement;
import org.apache.ws.commons.om.OMXMLParserWrapper;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFault;
import org.apache.ws.commons.soap.SOAPFaultSubCode;
import org.apache.ws.commons.soap.SOAPFaultValue;
@@ -29,8 +30,8 @@
* Eran Chinthaka (chinthaka@apache.org)
*/
- public SOAP12FaultCodeImpl() {
- super(SOAP12Factory.getNamespace());
+ public SOAP12FaultCodeImpl(SOAPFactory factory) {
+ super(factory.getNamespace(), factory);
}
/**
@@ -39,15 +40,15 @@
* @param parent
* @param builder
*/
- public SOAP12FaultCodeImpl(SOAPFault parent, OMXMLParserWrapper builder) {
- super(parent, builder);
+ public SOAP12FaultCodeImpl(SOAPFault parent, OMXMLParserWrapper builder, SOAPFactory factory) {
+ super(parent, builder, factory);
}
/**
* @param parent
*/
- public SOAP12FaultCodeImpl(SOAPFault parent) throws SOAPProcessingException {
- super(parent, true);
+ public SOAP12FaultCodeImpl(SOAPFault parent, SOAPFactory factory) throws SOAPProcessingException {
+ super(parent, true, factory);
}
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java Mon Mar 6 22:59:32 2006
@@ -18,6 +18,7 @@
import org.apache.ws.commons.om.OMElement;
import org.apache.ws.commons.om.OMXMLParserWrapper;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFault;
import org.apache.ws.commons.soap.SOAPProcessingException;
import org.apache.ws.commons.soap.impl.llom.SOAPFaultDetailImpl;
@@ -25,22 +26,25 @@
public class SOAP12FaultDetailImpl extends SOAPFaultDetailImpl {
- public SOAP12FaultDetailImpl() {
- super(SOAP12Factory.getNamespace());
+ public SOAP12FaultDetailImpl(SOAPFactory factory) {
+ super(factory.getNamespace(), factory);
}
- public SOAP12FaultDetailImpl(SOAPFault parent) throws SOAPProcessingException {
- super(parent, true);
+ public SOAP12FaultDetailImpl(SOAPFault parent, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, true, factory);
}
- public SOAP12FaultDetailImpl(SOAPFault parent, OMXMLParserWrapper builder) {
- super(parent, builder);
+ public SOAP12FaultDetailImpl(SOAPFault parent, OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(parent, builder, factory);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP12FaultImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
+ "Expecting SOAP 1.2 implementation of SOAP Fault as the " +
+ "parent. But received some other implementation");
}
}
}
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultImpl.java Mon Mar 6 22:59:32 2006
@@ -20,6 +20,7 @@
import org.apache.ws.commons.om.OMXMLParserWrapper;
import org.apache.ws.commons.om.impl.OMNodeEx;
import org.apache.ws.commons.soap.SOAPBody;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFault;
import org.apache.ws.commons.soap.SOAPFaultCode;
import org.apache.ws.commons.soap.SOAPFaultDetail;
@@ -40,16 +41,18 @@
*/
- public SOAP12FaultImpl() {
- super(SOAP12Factory.getNamespace());
+ public SOAP12FaultImpl(SOAPFactory factory) {
+ super(factory.getNamespace(), factory);
}
- public SOAP12FaultImpl(SOAPBody parent, Exception e) throws SOAPProcessingException {
- super(parent, e);
+ public SOAP12FaultImpl(SOAPBody parent, Exception e, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, e, factory);
}
- public SOAP12FaultImpl(SOAPBody parent, OMXMLParserWrapper builder) {
- super(parent, builder);
+ public SOAP12FaultImpl(SOAPBody parent, OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(parent, builder, factory);
}
/**
@@ -57,19 +60,22 @@
*
* @param parent
*/
- public SOAP12FaultImpl(SOAPBody parent) throws SOAPProcessingException {
- super(parent);
+ public SOAP12FaultImpl(SOAPBody parent, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, factory);
}
protected SOAPFaultDetail getNewSOAPFaultDetail(SOAPFault fault) {
- return new SOAP12FaultDetailImpl(fault);
+ return new SOAP12FaultDetailImpl(fault, (SOAPFactory)this.factory);
}
- public void setCode(SOAPFaultCode soapFaultCode) throws SOAPProcessingException {
+ 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");
+ "Expecting SOAP 1.2 implementation of SOAP Fault Code. " +
+ "But received some other implementation");
}
super.setCode(soapFaultCode);
}
@@ -78,7 +84,8 @@
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");
+ "Expecting SOAP 1.2 implementation of SOAP Fault Reason. " +
+ "But received some other implementation");
}
super.setReason(reason);
}
@@ -86,7 +93,8 @@
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");
+ "Expecting SOAP 1.2 implementation of SOAP Fault Node. " +
+ "But received some other implementation");
}
super.setNode(node);
}
@@ -94,7 +102,8 @@
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");
+ "Expecting SOAP 1.2 implementation of SOAP Fault Role. " +
+ "But received some other implementation");
}
super.setRole(role);
}
@@ -102,7 +111,8 @@
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");
+ "Expecting SOAP 1.2 implementation of SOAP Fault Detail. " +
+ "But received some other implementation");
}
super.setDetail(detail);
}
@@ -110,14 +120,19 @@
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");
+ "Expecting SOAP 1.2 implementation of SOAP Body as the " +
+ "parent. But received some other implementation");
}
}
- protected void serializeFaultNode(org.apache.ws.commons.om.impl.OMOutputImpl omOutput) throws XMLStreamException {
+ protected void serializeFaultNode(
+ org.apache.ws.commons.om.impl.OMOutputImpl omOutput)
+ throws XMLStreamException {
SOAPFaultNode faultNode = getNode();
- if (faultNode != null && faultNode.getText() != null && !"".equals(faultNode.getText())) {
+ if (faultNode != null && faultNode.getText() != null
+ && !"".equals(faultNode.getText())) {
((OMNodeEx)faultNode).serialize(omOutput);
}
}
+
}
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java Mon Mar 6 22:59:32 2006
@@ -18,6 +18,7 @@
import org.apache.ws.commons.om.OMElement;
import org.apache.ws.commons.om.OMXMLParserWrapper;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFault;
import org.apache.ws.commons.soap.SOAPProcessingException;
import org.apache.ws.commons.soap.impl.llom.SOAPFaultNodeImpl;
@@ -25,16 +26,16 @@
public class SOAP12FaultNodeImpl extends SOAPFaultNodeImpl {
- public SOAP12FaultNodeImpl() {
- super(SOAP12Factory.getNamespace());
+ public SOAP12FaultNodeImpl(SOAPFactory factory) {
+ super(factory.getNamespace(), factory);
}
- public SOAP12FaultNodeImpl(SOAPFault parent) throws SOAPProcessingException {
- super(parent);
+ public SOAP12FaultNodeImpl(SOAPFault parent, SOAPFactory factory) throws SOAPProcessingException {
+ super(parent, factory);
}
- public SOAP12FaultNodeImpl(SOAPFault parent, OMXMLParserWrapper builder) {
- super(parent, builder);
+ public SOAP12FaultNodeImpl(SOAPFault parent, OMXMLParserWrapper builder, SOAPFactory factory) {
+ super(parent, builder, factory);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java Mon Mar 6 22:59:32 2006
@@ -18,6 +18,7 @@
import org.apache.ws.commons.om.OMElement;
import org.apache.ws.commons.om.OMXMLParserWrapper;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFault;
import org.apache.ws.commons.soap.SOAPFaultText;
import org.apache.ws.commons.soap.SOAPProcessingException;
@@ -27,25 +28,29 @@
/**
* Eran Chinthaka (chinthaka@apache.org)
*/
- public SOAP12FaultReasonImpl(SOAPFault parent, OMXMLParserWrapper builder) {
- super(parent, builder);
+ public SOAP12FaultReasonImpl(SOAPFault parent, OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(parent, builder, factory);
}
- public SOAP12FaultReasonImpl() {
- super(SOAP12Factory.getNamespace());
+ public SOAP12FaultReasonImpl(SOAPFactory factory) {
+ super(factory.getNamespace(), factory);
}
/**
* @param parent
*/
- public SOAP12FaultReasonImpl(SOAPFault parent) throws SOAPProcessingException {
- super(parent, true);
+ public SOAP12FaultReasonImpl(SOAPFault parent, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, true, factory);
}
- public void setSOAPText(SOAPFaultText soapFaultText) throws SOAPProcessingException {
+ public void setSOAPText(SOAPFaultText soapFaultText)
+ throws SOAPProcessingException {
if (!(soapFaultText instanceof SOAP12FaultTextImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Text. But received some other implementation");
+ "Expecting SOAP 1.2 implementation of SOAP Fault Text. " +
+ "But received some other implementation");
}
super.setSOAPText(soapFaultText);
}
@@ -53,7 +58,8 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP12FaultImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
+ "Expecting SOAP 1.2 implementation of SOAP Fault as the " +
+ "parent. But received some other implementation");
}
}
}
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java Mon Mar 6 22:59:32 2006
@@ -18,27 +18,32 @@
import org.apache.ws.commons.om.OMElement;
import org.apache.ws.commons.om.OMXMLParserWrapper;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFault;
import org.apache.ws.commons.soap.SOAPProcessingException;
import org.apache.ws.commons.soap.impl.llom.SOAPFaultRoleImpl;
public class SOAP12FaultRoleImpl extends SOAPFaultRoleImpl {
- public SOAP12FaultRoleImpl(SOAPFault parent) throws SOAPProcessingException {
- super(parent, true);
+
+ public SOAP12FaultRoleImpl(SOAPFault parent, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, true, factory);
}
- public SOAP12FaultRoleImpl() {
- super(SOAP12Factory.getNamespace());
+ public SOAP12FaultRoleImpl(SOAPFactory factory) {
+ super(factory.getNamespace(), factory);
}
- public SOAP12FaultRoleImpl(SOAPFault parent, OMXMLParserWrapper builder) {
- super(parent, builder);
+ public SOAP12FaultRoleImpl(SOAPFault parent, OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(parent, builder, factory);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP12FaultImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
+ "Expecting SOAP 1.2 implementation of SOAP Fault as the " +
+ "parent. But received some other implementation");
}
}
}
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java Mon Mar 6 22:59:32 2006
@@ -19,6 +19,7 @@
import org.apache.ws.commons.om.OMElement;
import org.apache.ws.commons.om.OMXMLParserWrapper;
import org.apache.ws.commons.soap.SOAP12Constants;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFaultCode;
import org.apache.ws.commons.soap.SOAPFaultSubCode;
import org.apache.ws.commons.soap.SOAPFaultValue;
@@ -27,49 +28,60 @@
public class SOAP12FaultSubCodeImpl extends SOAPFaultSubCodeImpl {
//changed
- public SOAP12FaultSubCodeImpl(SOAPFaultCode parent) throws SOAPProcessingException {
- super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME);
+ public SOAP12FaultSubCodeImpl(SOAPFaultCode parent, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, factory);
}
- public SOAP12FaultSubCodeImpl() {
- super(SOAP12Factory.getNamespace());
+ public SOAP12FaultSubCodeImpl(SOAPFactory factory) {
+ super(factory.getNamespace(), factory);
}
//changed
public SOAP12FaultSubCodeImpl(SOAPFaultCode parent,
- OMXMLParserWrapper builder) {
- super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, builder);
+ OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, builder,
+ factory);
}
- public SOAP12FaultSubCodeImpl(SOAPFaultSubCode parent) throws SOAPProcessingException {
- super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME);
+ public SOAP12FaultSubCodeImpl(SOAPFaultSubCode parent, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, factory);
}
public SOAP12FaultSubCodeImpl(SOAPFaultSubCode parent,
- OMXMLParserWrapper builder) {
- super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, builder);
+ OMXMLParserWrapper builder, SOAPFactory factory) {
+ super(parent, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME, builder,
+ factory);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!((parent instanceof SOAP12FaultSubCodeImpl) ||
(parent instanceof SOAP12FaultCodeImpl))) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP FaultSubCode or SOAP FaultCodeValue as the parent. But received some other implementation");
+ "Expecting SOAP 1.2 implementation of SOAP FaultSubCode " +
+ "or SOAP FaultCodeValue as the parent. But received some " +
+ "other implementation");
}
}
- public void setSubCode(SOAPFaultSubCode subCode) throws SOAPProcessingException {
+ public void setSubCode(SOAPFaultSubCode subCode)
+ throws SOAPProcessingException {
if (!(subCode instanceof SOAP12FaultSubCodeImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Sub Code. But received some other implementation");
+ "Expecting SOAP 1.2 implementation of SOAP Fault Sub " +
+ "Code. But received some other implementation");
}
super.setSubCode(subCode);
}
- public void setValue(SOAPFaultValue soapFaultSubCodeValue) throws SOAPProcessingException {
+ public void setValue(SOAPFaultValue soapFaultSubCodeValue)
+ throws SOAPProcessingException {
if (!(soapFaultSubCodeValue instanceof SOAP12FaultValueImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Value. But received some other implementation");
+ "Expecting SOAP 1.2 implementation of SOAP Fault Value. " +
+ "But received some other implementation");
}
super.setValue(soapFaultSubCodeValue);
}
Modified: webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultTextImpl.java
URL: http://svn.apache.org/viewcvs/webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultTextImpl.java?rev=383805&r1=383804&r2=383805&view=diff
==============================================================================
--- webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultTextImpl.java (original)
+++ webservices/commons/modules/axiom/src/org/apache/ws/commons/soap/impl/llom/soap12/SOAP12FaultTextImpl.java Mon Mar 6 22:59:32 2006
@@ -18,22 +18,26 @@
import org.apache.ws.commons.om.OMElement;
import org.apache.ws.commons.om.OMXMLParserWrapper;
+import org.apache.ws.commons.soap.SOAPFactory;
import org.apache.ws.commons.soap.SOAPFaultReason;
import org.apache.ws.commons.soap.SOAPProcessingException;
import org.apache.ws.commons.soap.impl.llom.SOAPFaultTextImpl;
public class SOAP12FaultTextImpl extends SOAPFaultTextImpl {
- public SOAP12FaultTextImpl(SOAPFaultReason parent) throws SOAPProcessingException {
- super(parent);
+
+ public SOAP12FaultTextImpl(SOAPFaultReason parent, SOAPFactory factory)
+ throws SOAPProcessingException {
+ super(parent, factory);
}
- public SOAP12FaultTextImpl() throws SOAPProcessingException {
- super(SOAP12Factory.getNamespace());
+ public SOAP12FaultTextImpl(SOAPFactory factory) throws SOAPProcessingException {
+ super(factory.getNamespace(), factory);
}
public SOAP12FaultTextImpl(SOAPFaultReason parent,
- OMXMLParserWrapper builder) {
- super(parent, builder);
+ OMXMLParserWrapper builder,
+ SOAPFactory factory) {
+ super(parent, builder, factory);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {