JBossWS SVN: r4532 - legacy/tags/jbossws-1.2.1.GA_CP01/build/dist.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2007-09-07 08:56:24 -0400 (Fri, 07 Sep 2007)
New Revision: 4532
Modified:
legacy/tags/jbossws-1.2.1.GA_CP01/build/dist/ReleaseNotes.txt
Log:
Updated release notes for 1.2.1.GA_CP01
Modified: legacy/tags/jbossws-1.2.1.GA_CP01/build/dist/ReleaseNotes.txt
===================================================================
--- legacy/tags/jbossws-1.2.1.GA_CP01/build/dist/ReleaseNotes.txt 2007-09-07 12:55:45 UTC (rev 4531)
+++ legacy/tags/jbossws-1.2.1.GA_CP01/build/dist/ReleaseNotes.txt 2007-09-07 12:56:24 UTC (rev 4532)
@@ -22,6 +22,31 @@
What's new in jbossws-(a)version.id@
----------------------------------
+Bug
+
+ * JBPAPP-286 JBossWS - WSDL To Java - document/literal, IN OUT parameter incorectly used as return type.
+ * JBPAPP-257 JBossWS - Incorrect handling of charsets when the default charset is not UTF-8
+ * JBPAPP-268 JBossWS - MessageFactory does not preserve comments and text nodes.
+ * JBPAPP-274 JBossWS - Post-handler-chain not invoked for "Standard Client" configuration with DII client
+ * JBPAPP-276 JBossWS - Post-handler-chain not invoked for "Standard Client" configuration
+ * JBPAPP-278 JBossWS - WSDL To Java - Add support for bound headers.
+ * JBPAPP-280 JBossWS - WSDL To Java - Array Unwrapping uses incorect case to reference array type.
+ * JBPAPP-282 JBossWS - WSDL To Java - Initial Character of Service and SEI names should be upper case.
+ * JBPAPP-284 JBossWS - WSDL To Java - If fault name contains 'Fault' the generated Exception does not match the throws clause on the SEI
+ * JBPAPP-288 JBossWS - WSDL To Java - Incorrect handling of Simple types derived by restriction for holders.
+ * JBPAPP-291 JBossWS - NPE in WSDL to Java when webservices.xml requested but no global package mapping
+ * JBPAPP-293 JBossWS - WSDL-JAVA Derivation of a complex type from a Simple type: bas64Binary is not mapped to byte[]
+ * JBPAPP-289 JBossWS - WSDL To Java - Incorrect handling of Simple types derived by restriction for holders.
+ * JBPAPP-299 JBossWS - WSDL To Java - Create Custom Holders for Custom types that define INOUT parameters and OUT parameters
+ * JBPAPP-300 WSDL To Java - Anonymous Types Referenced As Bound Headers Not Handled Correctly
+ * JBPAPP-316 JBossWS - init-param for handler defined in jaxrpc-config not processed
+
+
+Previous Releases ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+What's new in JBossWS 1.2.1
+---------------------------
+
Feature Request
* [JBWS-1586] - SOAP encoded arrays with href
@@ -54,11 +79,6 @@
FIXME: [JBWS-1511] MessageFactory does not preserve comments
FIXME: [JBWS-1579] @EndpointConfig ignored on SEI
-Enjoy,
-The JBossWS Team
-
-Previous Releases ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
What's new in jbossws-1.2.0
---------------------------
17 years, 4 months
JBossWS SVN: r4531 - in legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws: metadata/j2ee/serviceref and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2007-09-07 08:55:45 -0400 (Fri, 07 Sep 2007)
New Revision: 4531
Modified:
legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/client/HandlerRegistryImpl.java
legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws/metadata/j2ee/serviceref/UnifiedHandlerMetaData.java
legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws/metadata/umdm/HandlerMetaData.java
Log:
JBCTS-647: webservices handlerinfo test failures
Modified: legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/client/HandlerRegistryImpl.java
===================================================================
--- legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/client/HandlerRegistryImpl.java 2007-09-07 12:54:25 UTC (rev 4530)
+++ legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws/core/jaxrpc/client/HandlerRegistryImpl.java 2007-09-07 12:55:45 UTC (rev 4531)
@@ -24,12 +24,12 @@
// $Id$
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
+import java.util.Iterator;
import javax.xml.namespace.QName;
import javax.xml.rpc.handler.HandlerChain;
@@ -42,6 +42,7 @@
import org.jboss.ws.metadata.umdm.HandlerMetaDataJAXRPC;
import org.jboss.ws.metadata.umdm.ServiceMetaData;
import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
+import org.jboss.ws.metadata.j2ee.serviceref.UnifiedInitParamMetaData;
/**
* Provides support for the programmatic configuration of
@@ -115,7 +116,25 @@
handler.setEndpointMetaData(epMetaData);
handler.setHandlerClassName(info.getHandlerClass().getName());
handler.setSoapRoles(roles);
-
+
+ // pass the init parameters
+ ArrayList<UnifiedInitParamMetaData> params = new ArrayList<UnifiedInitParamMetaData>();
+ Iterator configkeys = info.getHandlerConfig().keySet().iterator();
+ while(configkeys.hasNext())
+ {
+ String name = (String)configkeys.next();
+ if(info.getHandlerConfig().get(name) instanceof String) // might be Object instances used internally
+ {
+ String value = (String)info.getHandlerConfig().get(name);
+ UnifiedInitParamMetaData initParam = new UnifiedInitParamMetaData();
+ initParam.setParamName(name);
+ initParam.setParamValue(value);
+ params.add(initParam);
+ }
+ }
+
+ handler.setInitParams(params);
+
Set<QName> headers = new HashSet<QName>();
for (QName header : info.getHeaders())
headers.add(header);
Modified: legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws/metadata/j2ee/serviceref/UnifiedHandlerMetaData.java
===================================================================
--- legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws/metadata/j2ee/serviceref/UnifiedHandlerMetaData.java 2007-09-07 12:54:25 UTC (rev 4530)
+++ legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws/metadata/j2ee/serviceref/UnifiedHandlerMetaData.java 2007-09-07 12:55:45 UTC (rev 4531)
@@ -132,7 +132,7 @@
HandlerMetaDataJAXRPC hmd = new HandlerMetaDataJAXRPC(type);
hmd.setHandlerName(getHandlerName());
hmd.setHandlerClassName(getHandlerClass());
- hmd.seiInitParams(getInitParams());
+ hmd.setInitParams(getInitParams());
hmd.setSoapHeaders(getSoapHeaders());
hmd.setSoapRoles(getSoapRoles());
hmd.setPortNames(getPortNames());
@@ -144,7 +144,7 @@
HandlerMetaDataJAXWS hmd = new HandlerMetaDataJAXWS(type);
hmd.setHandlerName(getHandlerName());
hmd.setHandlerClassName(getHandlerClass());
- hmd.seiInitParams(getInitParams());
+ hmd.setInitParams(getInitParams());
if (handlerChain != null)
{
hmd.setProtocolBindings(handlerChain.getProtocolBindings());
Modified: legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws/metadata/umdm/HandlerMetaData.java
===================================================================
--- legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws/metadata/umdm/HandlerMetaData.java 2007-09-07 12:54:25 UTC (rev 4530)
+++ legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws/metadata/umdm/HandlerMetaData.java 2007-09-07 12:55:45 UTC (rev 4531)
@@ -144,7 +144,7 @@
return soapHeaders;
}
- public void seiInitParams(List<UnifiedInitParamMetaData> initParams)
+ public void setInitParams(List<UnifiedInitParamMetaData> initParams)
{
this.initParams = initParams;
}
17 years, 4 months
JBossWS SVN: r4530 - in legacy/tags/jbossws-1.2.1.GA_CP01: jbossws-core/src/java/org/jboss/ws/core and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2007-09-07 08:54:25 -0400 (Fri, 07 Sep 2007)
New Revision: 4530
Modified:
legacy/tags/jbossws-1.2.1.GA_CP01/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/ServiceEndpointInterceptor.java
legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws/core/CommonSOAPBinding.java
Log:
JBCTS-623: Handler message change failure
Modified: legacy/tags/jbossws-1.2.1.GA_CP01/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/ServiceEndpointInterceptor.java
===================================================================
--- legacy/tags/jbossws-1.2.1.GA_CP01/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/ServiceEndpointInterceptor.java 2007-09-07 12:52:50 UTC (rev 4529)
+++ legacy/tags/jbossws-1.2.1.GA_CP01/integration-jboss42/src/java/org/jboss/ws/integration/jboss42/ServiceEndpointInterceptor.java 2007-09-07 12:54:25 UTC (rev 4530)
@@ -24,6 +24,7 @@
// $Id$
import javax.xml.soap.SOAPMessage;
+import javax.xml.soap.SOAPEnvelope;
import org.jboss.ejb.plugins.AbstractInterceptor;
import org.jboss.invocation.Invocation;
@@ -34,10 +35,16 @@
import org.jboss.ws.core.CommonMessageContext;
import org.jboss.ws.core.EndpointInvocation;
import org.jboss.ws.core.MessageAbstraction;
+import org.jboss.ws.core.CommonSOAP11Binding;
+import org.jboss.ws.core.CommonSOAPBinding;
import org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC;
+import org.jboss.ws.core.jaxrpc.SOAP11BindingJAXRPC;
+import org.jboss.ws.core.jaxrpc.SOAP12BindingJAXRPC;
import org.jboss.ws.core.soap.SOAPMessageImpl;
+import org.jboss.ws.core.soap.SOAPEnvelopeImpl;
import org.jboss.ws.metadata.umdm.OperationMetaData;
import org.jboss.ws.metadata.umdm.HandlerMetaData.HandlerType;
+import org.jboss.ws.Constants;
/**
* This Interceptor does the ws4ee handler processing.
@@ -86,6 +93,29 @@
// Call the next interceptor in the chain
if (handlersPass)
{
+
+ // [JBCTS-623] Check if handlers modified the payload
+
+ if (msgContext.isModified())
+ {
+ log.debug("Handler modified payload, unbind message again");
+ SOAPMessage reqMessage = msgContext.getSOAPMessage();
+ SOAPEnvelopeImpl env = (SOAPEnvelopeImpl)reqMessage.getSOAPPart().getEnvelope();
+
+ CommonSOAPBinding soapBinding;
+ if(env.getNamespaceURI().equals(Constants.NS_SOAP11_ENV) )
+ {
+ soapBinding = new SOAP11BindingJAXRPC();
+ }
+ else
+ {
+ soapBinding = new SOAP12BindingJAXRPC();
+ }
+
+ epInv = soapBinding.unbindRequestMessage(opMetaData, msgContext.getMessageAbstraction());
+ }
+
+
// The SOAPContentElements stored in the EndpointInvocation might have changed after
// handler processing. Get the updated request payload. This should be a noop if request
// handlers did not modify the incomming SOAP message.
Modified: legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws/core/CommonSOAPBinding.java
===================================================================
--- legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws/core/CommonSOAPBinding.java 2007-09-07 12:52:50 UTC (rev 4529)
+++ legacy/tags/jbossws-1.2.1.GA_CP01/jbossws-core/src/java/org/jboss/ws/core/CommonSOAPBinding.java 2007-09-07 12:54:25 UTC (rev 4530)
@@ -79,6 +79,8 @@
import org.jboss.ws.metadata.umdm.TypesMetaData;
import org.jboss.xb.binding.NamespaceRegistry;
import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.Node;
/**
* The SOAPBinding interface is an abstraction for the SOAP binding.
@@ -305,6 +307,29 @@
Name elName = soapBodyElement.getElementName();
+ //
+ NodeList childNodes = soapBodyElement.getChildNodes();
+ int childElementsLength = 0;
+ for ( int i=0; i<childNodes.getLength(); i++)
+ {
+ if(childNodes.item(i).getNodeType() == Node.ELEMENT_NODE)
+ {
+ childElementsLength++;
+ }
+ }
+
+ int expectedNumChildElements = 0;
+ for (ParameterMetaData paramMetaData : opMetaData.getParameters())
+ {
+ if(!paramMetaData.isInHeader() && !paramMetaData.isSwA() && paramMetaData.getMode()!=ParameterMode.OUT )
+ {
+ expectedNumChildElements++;
+ }
+ }
+
+ if(childElementsLength!=expectedNumChildElements)
+ throw new BindingException("The number of child elements doesn't match OperationMetaData: " + elName);
+
QName elQName = new QName(elName.getURI(), elName.getLocalName(), elName.getPrefix());
elQName = namespaceRegistry.registerQName(elQName);
}
17 years, 4 months
JBossWS SVN: r4529 - legacy/tags/jbossws-1.2.1.GA_CP01/build.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2007-09-07 08:52:50 -0400 (Fri, 07 Sep 2007)
New Revision: 4529
Modified:
legacy/tags/jbossws-1.2.1.GA_CP01/build/version.properties
Log:
align dependencies with JBAPP_CP01
Modified: legacy/tags/jbossws-1.2.1.GA_CP01/build/version.properties
===================================================================
--- legacy/tags/jbossws-1.2.1.GA_CP01/build/version.properties 2007-09-07 12:52:24 UTC (rev 4528)
+++ legacy/tags/jbossws-1.2.1.GA_CP01/build/version.properties 2007-09-07 12:52:50 UTC (rev 4529)
@@ -5,8 +5,8 @@
specification.vendor=JBoss (http://www.jboss.org)
specification.version=jbossws-1.2
-version.id=1.2.1.GA
-repository.id=1.2.1.GA
+version.id=1.2.1.GA_CP01
+repository.id=1.2.1.GA_CP01
implementation.title=JBoss Web Services (JBossWS)
implementation.url=http://www.jboss.org/products/jbossws
@@ -16,7 +16,7 @@
# Thirdparty library versions that are referenced in component-info.xml
apache-xmlsec=1.3.0
ibm-wsdl4j=1.6.2
-javassist=3.5.0.CR1
+javassist=3.5.0.GA
jbossws-wsconsume-impl=2.0.0
jbpm-bpel=1.1.0.Beta5
sun-jaxb=2.0.3jboss
@@ -33,12 +33,12 @@
jboss-remoting-jboss50=2.2.0.GA
# JBossAS-4.2
-jboss-jbossxb-jboss42=1.0.0.CR10
+jboss-jbossxb-jboss42=1.0.0.GA_CP01
jboss-microcontainer-jboss42=1.0.2
-jboss-remoting-jboss42=2.0.0.GA
+jboss-remoting-jboss42=2.2.2.GA
# JBossAS-4.0
-jboss-jbossxb-jboss40=1.0.0.CR10
+jboss-jbossxb-jboss40=1.0.0.GA_CP01
jboss-microcontainer-jboss40=1.0.2
jboss-remoting-jboss40=1.4.3.GA
17 years, 4 months
JBossWS SVN: r4528 - legacy/tags/jbossws-1.2.1.GA_CP01/build/ant-import.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2007-09-07 08:52:24 -0400 (Fri, 07 Sep 2007)
New Revision: 4528
Modified:
legacy/tags/jbossws-1.2.1.GA_CP01/build/ant-import/build-release.xml
Log:
exclude jboss50 build
Modified: legacy/tags/jbossws-1.2.1.GA_CP01/build/ant-import/build-release.xml
===================================================================
--- legacy/tags/jbossws-1.2.1.GA_CP01/build/ant-import/build-release.xml 2007-09-07 06:56:22 UTC (rev 4527)
+++ legacy/tags/jbossws-1.2.1.GA_CP01/build/ant-import/build-release.xml 2007-09-07 12:52:24 UTC (rev 4528)
@@ -39,7 +39,7 @@
</target>
<!-- Release to jboss.local.repository -->
- <target name="release-to-repository" depends="core-jars,jboss50-jars,jboss42-jars,jboss40-jars,jboss40-jars14"
+ <target name="release-to-repository" depends="core-jars,jboss42-jars,jboss40-jars,jboss40-jars14"
description="Release to jboss.local.repository">
<!-- jboss/jbossws -->
@@ -63,7 +63,7 @@
</copy>
<!-- jboss/jbossws-jboss50 -->
- <mkdir dir="${jboss.repository.dir}/jbossws-jboss50/${repository.id}/lib"/>
+ <!--mkdir dir="${jboss.repository.dir}/jbossws-jboss50/${repository.id}/lib"/>
<copy todir="${jboss.repository.dir}/jbossws-jboss50/${repository.id}/lib" overwrite="true">
<fileset dir="${jboss50.output.lib.dir}">
<include name="jbossws50.sar"/>
@@ -75,7 +75,7 @@
<filterset>
<filtersfile file="${build.dir}/version.properties"/>
</filterset>
- </copy>
+ </copy-->
<!-- jboss/jbossws-jboss42 -->
<mkdir dir="${jboss.repository.dir}/jbossws-jboss42/${repository.id}/lib"/>
17 years, 4 months
JBossWS SVN: r4527 - legacy/branches.
by jbossws-commits@lists.jboss.org
Author: mageshbk(a)jboss.com
Date: 2007-09-07 02:56:22 -0400 (Fri, 07 Sep 2007)
New Revision: 4527
Added:
legacy/branches/jbossws-1.2.1.GA_JBWS-1803/
Log:
Branch for JBWS-1803
Copied: legacy/branches/jbossws-1.2.1.GA_JBWS-1803 (from rev 4526, legacy/tags/jbossws-1.2.1.GA)
17 years, 4 months
JBossWS SVN: r4526 - in stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm: common/serialization and 2 other directories.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2007-09-05 11:49:12 -0400 (Wed, 05 Sep 2007)
New Revision: 4526
Added:
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/AbstractSerializable.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/AckRequestedSerializer.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CloseSequenceResponseSerializer.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CloseSequenceSerializer.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CreateSequenceResponseSerializer.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CreateSequenceSerializer.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SequenceAcknowledgementSerializer.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SequenceFaultSerializer.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SequenceSerializer.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SerializationRepository.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/TerminateSequenceResponseSerializer.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/TerminateSequenceSerializer.java
Removed:
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/AbstractSerializable.java
Modified:
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/AckRequestedImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/CreateSequenceImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/CreateSequenceResponseImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceAcknowledgementImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceFaultImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/TerminateSequenceImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/AckRequestedImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CloseSequenceImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CloseSequenceResponseImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CreateSequenceImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CreateSequenceResponseImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceAcknowledgementImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceFaultImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/TerminateSequenceImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/TerminateSequenceResponseImpl.java
Log:
refactoring - splitting serialization to separate classes
Deleted: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/AbstractSerializable.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/AbstractSerializable.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/AbstractSerializable.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -1,65 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ws.extensions.wsrm.common;
-
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.util.NotImplementedException;
-import org.jboss.ws.extensions.wsrm.spi.Provider;
-import org.jboss.ws.extensions.wsrm.spi.protocol.Serializable;
-
-/**
- * Utility class which should be used by all WS-RM protocol providers.
- * @author richard.opalka(a)jboss.com
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable
- */
-public abstract class AbstractSerializable implements Serializable
-{
-
- protected AbstractSerializable()
- {
- // intended to be overriden
- }
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public final void deserializeFrom(SOAPMessage soapMessage)
- {
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- validate();
- }
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public final void serializeTo(SOAPMessage soapMessage)
- {
- validate();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- public abstract Provider getProvider();
-
-}
Added: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/AbstractSerializable.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/AbstractSerializable.java (rev 0)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/AbstractSerializable.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -0,0 +1,61 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.extensions.wsrm.common.serialization;
+
+import javax.xml.soap.SOAPMessage;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
+import org.jboss.ws.extensions.wsrm.spi.protocol.Serializable;
+
+/**
+ * Utility class which should be used by all WS-RM protocol providers.
+ * @author richard.opalka(a)jboss.com
+ * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable
+ */
+public abstract class AbstractSerializable implements Serializable
+{
+
+ protected AbstractSerializable()
+ {
+ // intended to be overriden
+ }
+
+ /*
+ * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
+ */
+ public final void deserializeFrom(SOAPMessage soapMessage)
+ {
+ SerializationRepository.deserialize(this, soapMessage);
+ validate(); // finally ensure that object is in correct state
+ }
+
+ /*
+ * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
+ */
+ public final void serializeTo(SOAPMessage soapMessage)
+ {
+ validate(); // ensure object is in correct state first
+ SerializationRepository.serialize(this, soapMessage);
+ }
+
+ public abstract Provider getProvider();
+
+}
Property changes on: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/AbstractSerializable.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/AckRequestedSerializer.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/AckRequestedSerializer.java (rev 0)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/AckRequestedSerializer.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.extensions.wsrm.common.serialization;
+
+import javax.xml.soap.SOAPMessage;
+
+import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
+import org.jboss.ws.extensions.wsrm.spi.protocol.AckRequested;
+
+/**
+ * <b>AckRequested</b> object de/serializer
+ * @author richard.opalka(a)jboss.com
+ */
+final class AckRequestedSerializer
+{
+
+ private AckRequestedSerializer()
+ {
+ // no instances
+ }
+
+ /**
+ * Deserialize <b>AckRequested</b> using <b>provider</b> from the <b>soapMessage</b>
+ * @param object to be deserialized
+ * @param provider wsrm provider to be used for deserialization process
+ * @param soapMessage soap message from which object will be deserialized
+ */
+ public static void deserialize(AckRequested object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+ /**
+ * Serialize <b>AckRequested</b> using <b>provider</b> to the <b>soapMessage</b>
+ * @param object to be serialized
+ * @param provider wsrm provider to be used for serialization process
+ * @param soapMessage soap message to which object will be serialized
+ */
+ public static void serialize(AckRequested object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+}
Property changes on: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/AckRequestedSerializer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CloseSequenceResponseSerializer.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CloseSequenceResponseSerializer.java (rev 0)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CloseSequenceResponseSerializer.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.extensions.wsrm.common.serialization;
+
+import javax.xml.soap.SOAPMessage;
+
+import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
+import org.jboss.ws.extensions.wsrm.spi.protocol.CloseSequenceResponse;
+
+/**
+ * <b>CloseSequenceResponse</b> object de/serializer
+ * @author richard.opalka(a)jboss.com
+ */
+final class CloseSequenceResponseSerializer
+{
+
+ private CloseSequenceResponseSerializer()
+ {
+ // no instances
+ }
+
+ /**
+ * Deserialize <b>CloseSequenceResponse</b> using <b>provider</b> from the <b>soapMessage</b>
+ * @param object to be deserialized
+ * @param provider wsrm provider to be used for deserialization process
+ * @param soapMessage soap message from which object will be deserialized
+ */
+ public static void deserialize(CloseSequenceResponse object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+ /**
+ * Serialize <b>CloseSequenceResponse</b> using <b>provider</b> to the <b>soapMessage</b>
+ * @param object to be serialized
+ * @param provider wsrm provider to be used for serialization process
+ * @param soapMessage soap message to which object will be serialized
+ */
+ public static void serialize(CloseSequenceResponse object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+}
Property changes on: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CloseSequenceResponseSerializer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CloseSequenceSerializer.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CloseSequenceSerializer.java (rev 0)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CloseSequenceSerializer.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.extensions.wsrm.common.serialization;
+
+import javax.xml.soap.SOAPMessage;
+
+import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
+import org.jboss.ws.extensions.wsrm.spi.protocol.CloseSequence;
+
+/**
+ * <b>CloseSequence</b> object de/serializer
+ * @author richard.opalka(a)jboss.com
+ */
+final class CloseSequenceSerializer
+{
+
+ private CloseSequenceSerializer()
+ {
+ // no instances
+ }
+
+ /**
+ * Deserialize <b>CloseSequence</b> using <b>provider</b> from the <b>soapMessage</b>
+ * @param object to be deserialized
+ * @param provider wsrm provider to be used for deserialization process
+ * @param soapMessage soap message from which object will be deserialized
+ */
+ public static void deserialize(CloseSequence object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+ /**
+ * Serialize <b>CloseSequence</b> using <b>provider</b> to the <b>soapMessage</b>
+ * @param object to be serialized
+ * @param provider wsrm provider to be used for serialization process
+ * @param soapMessage soap message to which object will be serialized
+ */
+ public static void serialize(CloseSequence object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+}
Property changes on: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CloseSequenceSerializer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CreateSequenceResponseSerializer.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CreateSequenceResponseSerializer.java (rev 0)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CreateSequenceResponseSerializer.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.extensions.wsrm.common.serialization;
+
+import javax.xml.soap.SOAPMessage;
+
+import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
+import org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequenceResponse;
+
+/**
+ * <b>CreateSequenceResponse</b> object de/serializer
+ * @author richard.opalka(a)jboss.com
+ */
+final class CreateSequenceResponseSerializer
+{
+
+ private CreateSequenceResponseSerializer()
+ {
+ // no instances
+ }
+
+ /**
+ * Deserialize <b>CreateSequenceResponse</b> using <b>provider</b> from the <b>soapMessage</b>
+ * @param object to be deserialized
+ * @param provider wsrm provider to be used for deserialization process
+ * @param soapMessage soap message from which object will be deserialized
+ */
+ public static void deserialize(CreateSequenceResponse object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+ /**
+ * Serialize <b>CreateSequenceResponse</b> using <b>provider</b> to the <b>soapMessage</b>
+ * @param object to be serialized
+ * @param provider wsrm provider to be used for serialization process
+ * @param soapMessage soap message to which object will be serialized
+ */
+ public static void serialize(CreateSequenceResponse object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+}
Property changes on: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CreateSequenceResponseSerializer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CreateSequenceSerializer.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CreateSequenceSerializer.java (rev 0)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CreateSequenceSerializer.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.extensions.wsrm.common.serialization;
+
+import javax.xml.soap.SOAPMessage;
+
+import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
+import org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequence;
+
+/**
+ * <b>CreateSequence</b> object de/serializer
+ * @author richard.opalka(a)jboss.com
+ */
+final class CreateSequenceSerializer
+{
+
+ private CreateSequenceSerializer()
+ {
+ // no instances
+ }
+
+ /**
+ * Deserialize <b>CreateSequence</b> using <b>provider</b> from the <b>soapMessage</b>
+ * @param object to be deserialized
+ * @param provider wsrm provider to be used for deserialization process
+ * @param soapMessage soap message from which object will be deserialized
+ */
+ public static void deserialize(CreateSequence object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+ /**
+ * Serialize <b>CreateSequence</b> using <b>provider</b> to the <b>soapMessage</b>
+ * @param object to be serialized
+ * @param provider wsrm provider to be used for serialization process
+ * @param soapMessage soap message to which object will be serialized
+ */
+ public static void serialize(CreateSequence object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+}
Property changes on: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/CreateSequenceSerializer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SequenceAcknowledgementSerializer.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SequenceAcknowledgementSerializer.java (rev 0)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SequenceAcknowledgementSerializer.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.extensions.wsrm.common.serialization;
+
+import javax.xml.soap.SOAPMessage;
+
+import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
+import org.jboss.ws.extensions.wsrm.spi.protocol.SequenceAcknowledgement;
+
+/**
+ * <b>SequenceAcknowledgement</b> object de/serializer
+ * @author richard.opalka(a)jboss.com
+ */
+final class SequenceAcknowledgementSerializer
+{
+
+ private SequenceAcknowledgementSerializer()
+ {
+ // no instances
+ }
+
+ /**
+ * Deserialize <b>SequenceAcknowledgement</b> using <b>provider</b> from the <b>soapMessage</b>
+ * @param object to be deserialized
+ * @param provider wsrm provider to be used for deserialization process
+ * @param soapMessage soap message from which object will be deserialized
+ */
+ public static void deserialize(SequenceAcknowledgement object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+ /**
+ * Serialize <b>SequenceAcknowledgement</b> using <b>provider</b> to the <b>soapMessage</b>
+ * @param object to be serialized
+ * @param provider wsrm provider to be used for serialization process
+ * @param soapMessage soap message to which object will be serialized
+ */
+ public static void serialize(SequenceAcknowledgement object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+}
Property changes on: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SequenceAcknowledgementSerializer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SequenceFaultSerializer.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SequenceFaultSerializer.java (rev 0)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SequenceFaultSerializer.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.extensions.wsrm.common.serialization;
+
+import javax.xml.soap.SOAPMessage;
+
+import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
+import org.jboss.ws.extensions.wsrm.spi.protocol.SequenceFault;
+
+/**
+ * <b>SequenceFault</b> object de/serializer
+ * @author richard.opalka(a)jboss.com
+ */
+final class SequenceFaultSerializer
+{
+
+ private SequenceFaultSerializer()
+ {
+ // no instances
+ }
+
+ /**
+ * Deserialize <b>SequenceFault</b> using <b>provider</b> from the <b>soapMessage</b>
+ * @param object to be deserialized
+ * @param provider wsrm provider to be used for deserialization process
+ * @param soapMessage soap message from which object will be deserialized
+ */
+ public static void deserialize(SequenceFault object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+ /**
+ * Serialize <b>SequenceFault</b> using <b>provider</b> to the <b>soapMessage</b>
+ * @param object to be serialized
+ * @param provider wsrm provider to be used for serialization process
+ * @param soapMessage soap message to which object will be serialized
+ */
+ public static void serialize(SequenceFault object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+}
Property changes on: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SequenceFaultSerializer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SequenceSerializer.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SequenceSerializer.java (rev 0)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SequenceSerializer.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.extensions.wsrm.common.serialization;
+
+import javax.xml.soap.SOAPMessage;
+
+import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
+import org.jboss.ws.extensions.wsrm.spi.protocol.Sequence;
+
+/**
+ * <b>Sequence</b> object de/serializer
+ * @author richard.opalka(a)jboss.com
+ */
+final class SequenceSerializer
+{
+
+ private SequenceSerializer()
+ {
+ // no instances
+ }
+
+ /**
+ * Deserialize <b>Sequence</b> using <b>provider</b> from the <b>soapMessage</b>
+ * @param object to be deserialized
+ * @param provider wsrm provider to be used for deserialization process
+ * @param soapMessage soap message from which object will be deserialized
+ */
+ public static void deserialize(Sequence object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+ /**
+ * Serialize <b>Sequence</b> using <b>provider</b> to the <b>soapMessage</b>
+ * @param object to be serialized
+ * @param provider wsrm provider to be used for serialization process
+ * @param soapMessage soap message to which object will be serialized
+ */
+ public static void serialize(Sequence object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+}
Property changes on: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SequenceSerializer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SerializationRepository.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SerializationRepository.java (rev 0)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SerializationRepository.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -0,0 +1,125 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.extensions.wsrm.common.serialization;
+
+import org.jboss.ws.extensions.wsrm.spi.Provider;
+import org.jboss.ws.extensions.wsrm.spi.protocol.AckRequested;
+import org.jboss.ws.extensions.wsrm.spi.protocol.CloseSequence;
+import org.jboss.ws.extensions.wsrm.spi.protocol.CloseSequenceResponse;
+import org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequence;
+import org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequenceResponse;
+import org.jboss.ws.extensions.wsrm.spi.protocol.Sequence;
+import org.jboss.ws.extensions.wsrm.spi.protocol.SequenceAcknowledgement;
+import org.jboss.ws.extensions.wsrm.spi.protocol.SequenceFault;
+import org.jboss.ws.extensions.wsrm.spi.protocol.TerminateSequence;
+import org.jboss.ws.extensions.wsrm.spi.protocol.TerminateSequenceResponse;
+import javax.xml.soap.SOAPMessage;
+
+/**
+ * Utility class used for de/serialization
+ * @author richard.opalka(a)jboss.com
+ */
+final class SerializationRepository
+{
+
+ private SerializationRepository()
+ {
+ // forbidden inheritance
+ }
+
+ public static void serialize(AbstractSerializable object, SOAPMessage soapMessage)
+ {
+ Provider provider = object.getProvider();
+
+ if (object instanceof AckRequested)
+ AckRequestedSerializer
+ .serialize((AckRequested)object, provider, soapMessage);
+ if (object instanceof CloseSequence)
+ CloseSequenceSerializer
+ .serialize((CloseSequence)object, provider, soapMessage);
+ if (object instanceof CloseSequenceResponse)
+ CloseSequenceResponseSerializer
+ .serialize((CloseSequenceResponse)object, provider, soapMessage);
+ if (object instanceof CreateSequence)
+ CreateSequenceSerializer
+ .serialize((CreateSequence)object, provider, soapMessage);
+ if (object instanceof CreateSequenceResponse)
+ CreateSequenceResponseSerializer
+ .serialize((CreateSequenceResponse)object, provider, soapMessage);
+ if (object instanceof SequenceAcknowledgement)
+ SequenceAcknowledgementSerializer
+ .serialize((SequenceAcknowledgement)object, provider, soapMessage);
+ if (object instanceof SequenceFault)
+ SequenceFaultSerializer
+ .serialize((SequenceFault)object, provider, soapMessage);
+ if (object instanceof Sequence)
+ SequenceSerializer
+ .serialize((Sequence)object, provider, soapMessage);
+ if (object instanceof TerminateSequence)
+ TerminateSequenceSerializer
+ .serialize((TerminateSequence)object, provider, soapMessage);
+ if (object instanceof TerminateSequenceResponse)
+ TerminateSequenceResponseSerializer
+ .serialize((TerminateSequenceResponse)object, provider, soapMessage);
+
+ throw new IllegalArgumentException();
+ }
+
+ public static void deserialize(AbstractSerializable object, SOAPMessage soapMessage)
+ {
+ Provider provider = object.getProvider();
+
+ if (object instanceof AckRequested)
+ AckRequestedSerializer
+ .deserialize((AckRequested)object, provider, soapMessage);
+ if (object instanceof CloseSequence)
+ CloseSequenceSerializer
+ .deserialize((CloseSequence)object, provider, soapMessage);
+ if (object instanceof CloseSequenceResponse)
+ CloseSequenceResponseSerializer
+ .deserialize((CloseSequenceResponse)object, provider, soapMessage);
+ if (object instanceof CreateSequence)
+ CreateSequenceSerializer
+ .deserialize((CreateSequence)object, provider, soapMessage);
+ if (object instanceof CreateSequenceResponse)
+ CreateSequenceResponseSerializer
+ .deserialize((CreateSequenceResponse)object, provider, soapMessage);
+ if (object instanceof SequenceAcknowledgement)
+ SequenceAcknowledgementSerializer
+ .deserialize((SequenceAcknowledgement)object, provider, soapMessage);
+ if (object instanceof SequenceFault)
+ SequenceFaultSerializer
+ .deserialize((SequenceFault)object, provider, soapMessage);
+ if (object instanceof Sequence)
+ SequenceSerializer
+ .deserialize((Sequence)object, provider, soapMessage);
+ if (object instanceof TerminateSequence)
+ TerminateSequenceSerializer
+ .deserialize((TerminateSequence)object, provider, soapMessage);
+ if (object instanceof TerminateSequenceResponse)
+ TerminateSequenceResponseSerializer
+ .deserialize((TerminateSequenceResponse)object, provider, soapMessage);
+
+ throw new IllegalArgumentException();
+ }
+
+}
Property changes on: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/SerializationRepository.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/TerminateSequenceResponseSerializer.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/TerminateSequenceResponseSerializer.java (rev 0)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/TerminateSequenceResponseSerializer.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.extensions.wsrm.common.serialization;
+
+import javax.xml.soap.SOAPMessage;
+
+import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
+import org.jboss.ws.extensions.wsrm.spi.protocol.TerminateSequenceResponse;
+
+/**
+ * <b>TerminateSequenceResponse</b> object de/serializer
+ * @author richard.opalka(a)jboss.com
+ */
+final class TerminateSequenceResponseSerializer
+{
+
+ private TerminateSequenceResponseSerializer()
+ {
+ // no instances
+ }
+
+ /**
+ * Deserialize <b>TerminateSequenceResponse</b> using <b>provider</b> from the <b>soapMessage</b>
+ * @param object to be deserialized
+ * @param provider wsrm provider to be used for deserialization process
+ * @param soapMessage soap message from which object will be deserialized
+ */
+ public static void deserialize(TerminateSequenceResponse object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+ /**
+ * Serialize <b>TerminateSequenceResponse</b> using <b>provider</b> to the <b>soapMessage</b>
+ * @param object to be serialized
+ * @param provider wsrm provider to be used for serialization process
+ * @param soapMessage soap message to which object will be serialized
+ */
+ public static void serialize(TerminateSequenceResponse object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+}
Property changes on: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/TerminateSequenceResponseSerializer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/TerminateSequenceSerializer.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/TerminateSequenceSerializer.java (rev 0)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/TerminateSequenceSerializer.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.extensions.wsrm.common.serialization;
+
+import javax.xml.soap.SOAPMessage;
+
+import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
+import org.jboss.ws.extensions.wsrm.spi.protocol.TerminateSequence;
+
+/**
+ * <b>TerminateSequence</b> object de/serializer
+ * @author richard.opalka(a)jboss.com
+ */
+final class TerminateSequenceSerializer
+{
+
+ private TerminateSequenceSerializer()
+ {
+ // no instances
+ }
+
+ /**
+ * Deserialize <b>TerminateSequence</b> using <b>provider</b> from the <b>soapMessage</b>
+ * @param object to be deserialized
+ * @param provider wsrm provider to be used for deserialization process
+ * @param soapMessage soap message from which object will be deserialized
+ */
+ public static void deserialize(TerminateSequence object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+ /**
+ * Serialize <b>TerminateSequence</b> using <b>provider</b> to the <b>soapMessage</b>
+ * @param object to be serialized
+ * @param provider wsrm provider to be used for serialization process
+ * @param soapMessage soap message to which object will be serialized
+ */
+ public static void serialize(TerminateSequence object, Provider provider, SOAPMessage soapMessage)
+ {
+ throw new NotImplementedException();
+ }
+
+}
Property changes on: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/serialization/TerminateSequenceSerializer.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/AckRequestedImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/AckRequestedImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/AckRequestedImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -21,7 +21,7 @@
*/
package org.jboss.ws.extensions.wsrm.spec200502;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.AckRequested;
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/CreateSequenceImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/CreateSequenceImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/CreateSequenceImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -21,7 +21,7 @@
*/
package org.jboss.ws.extensions.wsrm.spec200502;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequence;
import org.jboss.ws.extensions.wsrm.spi.protocol.IncompleteSequenceBehavior;
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/CreateSequenceResponseImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/CreateSequenceResponseImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/CreateSequenceResponseImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -21,7 +21,7 @@
*/
package org.jboss.ws.extensions.wsrm.spec200502;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequenceResponse;
import org.jboss.ws.extensions.wsrm.spi.protocol.IncompleteSequenceBehavior;
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceAcknowledgementImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceAcknowledgementImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceAcknowledgementImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -25,7 +25,7 @@
import java.util.LinkedList;
import java.util.Collections;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.SequenceAcknowledgement;
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceFaultImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceFaultImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceFaultImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -21,7 +21,7 @@
*/
package org.jboss.ws.extensions.wsrm.spec200502;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.SequenceFault;
import org.jboss.ws.extensions.wsrm.spi.protocol.SequenceFaultCode;
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -21,7 +21,7 @@
*/
package org.jboss.ws.extensions.wsrm.spec200502;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.Sequence;
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/TerminateSequenceImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/TerminateSequenceImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/TerminateSequenceImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -21,7 +21,7 @@
*/
package org.jboss.ws.extensions.wsrm.spec200502;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.TerminateSequence;
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/AckRequestedImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/AckRequestedImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/AckRequestedImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -21,7 +21,7 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.AckRequested;
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CloseSequenceImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CloseSequenceImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CloseSequenceImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -21,7 +21,7 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.CloseSequence;
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CloseSequenceResponseImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CloseSequenceResponseImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CloseSequenceResponseImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -21,7 +21,7 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.CloseSequenceResponse;
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CreateSequenceImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CreateSequenceImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CreateSequenceImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -21,7 +21,7 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequence;
import org.jboss.ws.extensions.wsrm.spi.protocol.IncompleteSequenceBehavior;
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CreateSequenceResponseImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CreateSequenceResponseImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CreateSequenceResponseImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -21,7 +21,7 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequenceResponse;
import org.jboss.ws.extensions.wsrm.spi.protocol.IncompleteSequenceBehavior;
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceAcknowledgementImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceAcknowledgementImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceAcknowledgementImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -27,7 +27,7 @@
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.SequenceAcknowledgement;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
/*
* @author richard.opalka(a)jboss.com
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceFaultImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceFaultImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceFaultImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -21,7 +21,7 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.SequenceFault;
import org.jboss.ws.extensions.wsrm.spi.protocol.SequenceFaultCode;
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -21,7 +21,7 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.Sequence;
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/TerminateSequenceImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/TerminateSequenceImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/TerminateSequenceImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -21,7 +21,7 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.TerminateSequence;
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/TerminateSequenceResponseImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/TerminateSequenceResponseImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/TerminateSequenceResponseImpl.java 2007-09-05 15:49:12 UTC (rev 4526)
@@ -21,7 +21,7 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.common.serialization.AbstractSerializable;
import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.TerminateSequenceResponse;
17 years, 4 months
JBossWS SVN: r4525 - in stack/native/trunk: src/main/java/javax/xml/soap and 2 other directories.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2007-09-05 10:15:50 -0400 (Wed, 05 Sep 2007)
New Revision: 4525
Added:
stack/native/trunk/src/main/java/org/jboss/ws/soap/SAAJFactoryLoader.java
Removed:
stack/native/trunk/src/main/java/javax/xml/soap/SAAJFactoryLoader.java
Modified:
stack/native/trunk/ant-import-tests/build-testsuite.xml
stack/native/trunk/src/main/java/javax/xml/soap/MessageFactory.java
stack/native/trunk/src/main/java/javax/xml/soap/SAAJMetaFactory.java
stack/native/trunk/src/main/java/javax/xml/soap/SOAPConnection.java
stack/native/trunk/src/main/java/javax/xml/soap/SOAPFactory.java
stack/native/trunk/src/main/java/javax/xml/soap/SOAPHeaderElement.java
stack/native/trunk/src/main/java/org/jboss/ws/core/soap/SOAPHeaderElementImpl.java
Log:
Fix JBCTS-312: javax.xml.soap.sig_1.3.javaee
Modified: stack/native/trunk/ant-import-tests/build-testsuite.xml
===================================================================
--- stack/native/trunk/ant-import-tests/build-testsuite.xml 2007-09-05 14:09:02 UTC (rev 4524)
+++ stack/native/trunk/ant-import-tests/build-testsuite.xml 2007-09-05 14:15:50 UTC (rev 4525)
@@ -177,8 +177,8 @@
<classpath location="${tests.output.dir}/resources/jaxws/samples/wssecurityAnnotatedpolicy"/>
</taskdef>
- <wsprovide resourcedestdir="${tests.output.dir}/wsprovide/resources/jaxws/samples/wssecurity" genwsdl="true" sei="org.jboss.test.ws.jaxws.samples.wssecurity.HelloJavaBean"/>
- <wsprovide resourcedestdir="${tests.output.dir}/wsprovide/resources/jaxws/samples/wssecurityAnnotatedpolicy" genwsdl="true" sei="org.jboss.test.ws.jaxws.samples.wssecurityAnnotatedpolicy.HelloJavaBean"/>
+ <!--wsprovide resourcedestdir="${tests.output.dir}/wsprovide/resources/jaxws/samples/wssecurity" genwsdl="true" sei="org.jboss.test.ws.jaxws.samples.wssecurity.HelloJavaBean"/>
+ <wsprovide resourcedestdir="${tests.output.dir}/wsprovide/resources/jaxws/samples/wssecurityAnnotatedpolicy" genwsdl="true" sei="org.jboss.test.ws.jaxws.samples.wssecurityAnnotatedpolicy.HelloJavaBean"/-->
</target>
<target name="tests-compile-generated-resources" depends="servicegen,wstools,wsprovide">
Modified: stack/native/trunk/src/main/java/javax/xml/soap/MessageFactory.java
===================================================================
--- stack/native/trunk/src/main/java/javax/xml/soap/MessageFactory.java 2007-09-05 14:09:02 UTC (rev 4524)
+++ stack/native/trunk/src/main/java/javax/xml/soap/MessageFactory.java 2007-09-05 14:15:50 UTC (rev 4525)
@@ -23,6 +23,7 @@
import java.io.IOException;
import java.io.InputStream;
+import java.lang.reflect.Method;
/**
A factory for creating SOAPMessage objects.
@@ -70,9 +71,12 @@
try
{
String propertyName = "javax.xml.soap.MessageFactory";
- factory = (MessageFactory)SAAJFactoryLoader.loadFactory(propertyName, null);
+
+ Class loaderClass = Class.forName("org.jboss.ws.soap.SAAJFactoryLoader");
+ Method m = loaderClass.getMethod("loadFactory", new Class[] {String.class, String.class});
+ factory = (MessageFactory)m.invoke(null, new Object[] {propertyName, null});
}
- catch (RuntimeException rte)
+ catch (Exception rte)
{
throw new SOAPException(rte);
}
Deleted: stack/native/trunk/src/main/java/javax/xml/soap/SAAJFactoryLoader.java
===================================================================
--- stack/native/trunk/src/main/java/javax/xml/soap/SAAJFactoryLoader.java 2007-09-05 14:09:02 UTC (rev 4524)
+++ stack/native/trunk/src/main/java/javax/xml/soap/SAAJFactoryLoader.java 2007-09-05 14:15:50 UTC (rev 4525)
@@ -1,194 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.xml.soap;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.security.AccessController;
-import java.security.PrivilegedAction;
-import java.util.Properties;
-
-
-// $Id$
-
-/**
- * Load a factory using this ordered lookup procedure
- *
- * <ol>
- * <li>Use the system property
- * <li>Use the properties file "lib/jaxm.properties" in the JRE directory
- * <li>Use the Services API (as detailed in the JAR specification), if available, to determine the classname
- * <li>Use the default factory implementation class
- * </ol>
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 14-Dec-2006
- */
-public class SAAJFactoryLoader
-{
- private SAAJFactoryLoader()
- {
- }
-
- /**
- *
- * @return the factory impl, or null
- */
- public static Object loadFactory(String propertyName, String defaultFactory)
- {
- Object factory = null;
- ClassLoader loader = Thread.currentThread().getContextClassLoader();
-
- // Use the system property
- PrivilegedAction action = new PropertyAccessAction(propertyName);
- String factoryName = (String)AccessController.doPrivileged(action);
- if (factoryName != null)
- {
- try
- {
- //if(log.isDebugEnabled()) log.debug("Load from system property: " + factoryName);
- Class factoryClass = loader.loadClass(factoryName);
- factory = factoryClass.newInstance();
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
- }
- }
-
- // Use the properties file "lib/jaxm.properties" in the JRE directory.
- // This configuration file is in standard java.util.Properties format and contains the fully qualified name of the implementation class with the key being the system property defined above.
- if (factory == null)
- {
- action = new PropertyAccessAction("java.home");
- String javaHome = (String)AccessController.doPrivileged(action);
- File jaxmFile = new File(javaHome + "/lib/jaxm.properties");
- if (jaxmFile.exists())
- {
- try
- {
- action = new PropertyFileAccessAction(jaxmFile.getCanonicalPath());
- Properties jaxmProperties = (Properties)AccessController.doPrivileged(action);
- factoryName = jaxmProperties.getProperty(propertyName);
- if (factoryName != null)
- {
- //if(log.isDebugEnabled()) log.debug("Load from " + jaxmFile + ": " + factoryName);
- Class factoryClass = loader.loadClass(factoryName);
- factory = factoryClass.newInstance();
- }
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
- }
- }
- }
-
- // Use the Services API (as detailed in the JAR specification), if available, to determine the classname.
- if (factory == null)
- {
- String filename = "META-INF/services/" + propertyName;
- InputStream inStream = loader.getResourceAsStream(filename);
- if (inStream != null)
- {
- try
- {
- BufferedReader br = new BufferedReader(new InputStreamReader(inStream, "UTF-8"));
- factoryName = br.readLine();
- br.close();
- if (factoryName != null)
- {
- //if(log.isTraceEnabled()) log.trace("Load from Service API " + filename + ": " + factoryName);
- Class factoryClass = loader.loadClass(factoryName);
- factory = factoryClass.newInstance();
- }
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
- }
- }
- }
-
- // Use the default factory implementation class.
- if (factory == null && defaultFactory != null)
- {
- try
- {
- factoryName = defaultFactory;
- //if(log.isDebugEnabled()) log.debug("Load from default: " + factoryName);
- Class factoryClass = loader.loadClass(factoryName);
- factory = factoryClass.newInstance();
- }
- catch (Throwable t)
- {
- throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
- }
- }
-
- return factory;
- }
-
- private static class PropertyAccessAction implements PrivilegedAction
- {
- private String name;
-
- PropertyAccessAction(String name)
- {
- this.name = name;
- }
-
- public Object run()
- {
- return System.getProperty(name);
- }
- }
-
- private static class PropertyFileAccessAction implements PrivilegedAction
- {
- private String filename;
-
- PropertyFileAccessAction(String filename)
- {
- this.filename = filename;
- }
-
- public Object run()
- {
- try
- {
- InputStream inStream = new FileInputStream(filename);
- Properties props = new Properties();
- props.load(inStream);
- return props;
- }
- catch (IOException ex)
- {
- throw new SecurityException("Cannot load properties: " + filename, ex);
- }
- }
- }
-}
Modified: stack/native/trunk/src/main/java/javax/xml/soap/SAAJMetaFactory.java
===================================================================
--- stack/native/trunk/src/main/java/javax/xml/soap/SAAJMetaFactory.java 2007-09-05 14:09:02 UTC (rev 4524)
+++ stack/native/trunk/src/main/java/javax/xml/soap/SAAJMetaFactory.java 2007-09-05 14:15:50 UTC (rev 4525)
@@ -21,6 +21,8 @@
*/
package javax.xml.soap;
+import java.lang.reflect.Method;
+
// $Id$
/**
@@ -57,8 +59,19 @@
{
String propertyName = "javax.xml.soap.MetaFactory";
String defaultImpl = "org.jboss.ws.core.soap.SAAJMetaFactoryImpl";
- SAAJMetaFactory factory = (SAAJMetaFactory)SAAJFactoryLoader.loadFactory(propertyName, defaultImpl);
-
+
+ SAAJMetaFactory factory = null;
+ try
+ {
+ Class loaderClass = Class.forName("org.jboss.ws.soap.SAAJFactoryLoader");
+ Method m = loaderClass.getMethod("loadFactory", new Class[] {String.class, String.class});
+ factory = (SAAJMetaFactory)m.invoke(null, new Object[] {propertyName, defaultImpl});
+ }
+ catch (Exception e)
+ {
+ throw new SOAPException("Failed to load org.jboss.ws.soap.SAAJFactoryLoader", e);
+ }
+
if (factory == null)
throw new SOAPException("Failed to to determine the implementation class for: " + propertyName);
Modified: stack/native/trunk/src/main/java/javax/xml/soap/SOAPConnection.java
===================================================================
--- stack/native/trunk/src/main/java/javax/xml/soap/SOAPConnection.java 2007-09-05 14:09:02 UTC (rev 4524)
+++ stack/native/trunk/src/main/java/javax/xml/soap/SOAPConnection.java 2007-09-05 14:15:50 UTC (rev 4525)
@@ -21,8 +21,6 @@
*/
package javax.xml.soap;
-import org.jboss.util.NotImplementedException;
-
/** A point-to-point connection that a client can use for sending messages directly to a remote
* party (represented by a URL, for instance).
*
@@ -63,7 +61,10 @@
* @throws SOAPException if there is a SOAP error
* @since SAAJ 1.3
*/
- public abstract SOAPMessage get(Object to) throws SOAPException;
+ public SOAPMessage get(Object to) throws SOAPException
+ {
+ throw new IllegalArgumentException("Should be implemented by concrete implementation of this class");
+ }
/** Closes this SOAPConnection object.
*
Modified: stack/native/trunk/src/main/java/javax/xml/soap/SOAPFactory.java
===================================================================
--- stack/native/trunk/src/main/java/javax/xml/soap/SOAPFactory.java 2007-09-05 14:09:02 UTC (rev 4524)
+++ stack/native/trunk/src/main/java/javax/xml/soap/SOAPFactory.java 2007-09-05 14:15:50 UTC (rev 4525)
@@ -23,10 +23,11 @@
// $Id$
+import org.w3c.dom.Element;
+
import javax.xml.namespace.QName;
+import java.lang.reflect.Method;
-import org.w3c.dom.Element;
-
/** SOAPFactory is a factory for creating various objects that exist in the SOAP XML tree.
*
* SOAPFactory can be used to create XML fragments that will eventually end up in the SOAP part.
@@ -61,9 +62,12 @@
try
{
String propertyName = "javax.xml.soap.SOAPFactory";
- soapFactory = (SOAPFactory)SAAJFactoryLoader.loadFactory(propertyName, null);
+
+ Class loaderClass = Class.forName("org.jboss.ws.soap.SAAJFactoryLoader");
+ Method m = loaderClass.getMethod("loadFactory", new Class[] {String.class, String.class});
+ soapFactory = (SOAPFactory)m.invoke(null, new Object[] {propertyName, null});
}
- catch (RuntimeException rte)
+ catch (Exception rte)
{
throw new SOAPException(rte);
}
@@ -121,7 +125,10 @@
* @throws SOAPException if there is an error in creating the SOAPElement object
* @since SAAJ 1.3
*/
- public abstract SOAPElement createElement(Element domElement) throws SOAPException;
+ public SOAPElement createElement(Element domElement) throws SOAPException
+ {
+ throw new IllegalArgumentException("Should be implemented by concrete implementation of this class");
+ }
/** Create a SOAPElement object initialized with the given local name.
*
@@ -159,7 +166,10 @@
* @throws SOAPException if there is an error in creating the SOAPElement object
* @since SAAJ 1.3
*/
- public abstract SOAPElement createElement(QName qname) throws SOAPException;
+ public SOAPElement createElement(QName qname) throws SOAPException
+ {
+ throw new IllegalArgumentException("Should be implemented by concrete implementation of this class");
+ }
/**
* Creates a new SOAPFault object initialized with the given reasonText and faultCode
Modified: stack/native/trunk/src/main/java/javax/xml/soap/SOAPHeaderElement.java
===================================================================
--- stack/native/trunk/src/main/java/javax/xml/soap/SOAPHeaderElement.java 2007-09-05 14:09:02 UTC (rev 4524)
+++ stack/native/trunk/src/main/java/javax/xml/soap/SOAPHeaderElement.java 2007-09-05 14:15:50 UTC (rev 4525)
@@ -82,7 +82,7 @@
* @throws UnsupportedOperationException if this message does not support the SOAP 1.2 concept of Fault Role
* @since SAAJ 1.3
*/
- public void setRole(String roleURI);
+ public void setRole(String roleURI) throws SOAPException;
/** Sets the actor associated with this SOAPHeaderElement object to the specified actor.
* The default value of an actor is: SOAPConstants.URI_SOAP_ACTOR_NEXT
Modified: stack/native/trunk/src/main/java/org/jboss/ws/core/soap/SOAPHeaderElementImpl.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/core/soap/SOAPHeaderElementImpl.java 2007-09-05 14:09:02 UTC (rev 4524)
+++ stack/native/trunk/src/main/java/org/jboss/ws/core/soap/SOAPHeaderElementImpl.java 2007-09-05 14:15:50 UTC (rev 4525)
@@ -77,7 +77,7 @@
return roleAttr != null ? roleAttr.getValue() : null;
}
- public void setRole(String roleURI)
+ public void setRole(String roleURI) throws SOAPException
{
final SOAPElement header = getParentElement();
final String headerURI = header.getNamespaceURI();
@@ -128,7 +128,16 @@
if (Constants.NS_SOAP11_ENV.equals(headerURI))
setAttributeNS(headerURI, header.getPrefix() + ":" + Constants.SOAP11_ATTR_ACTOR, actorURI);
else
- setRole(actorURI);
+ {
+ try
+ {
+ setRole(actorURI);
+ }
+ catch (SOAPException e)
+ {
+ throw new IllegalArgumentException("Failed to setRole: " + actorURI, e);
+ }
+ }
}
public boolean getMustUnderstand()
Copied: stack/native/trunk/src/main/java/org/jboss/ws/soap/SAAJFactoryLoader.java (from rev 4509, stack/native/trunk/src/main/java/javax/xml/soap/SAAJFactoryLoader.java)
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/soap/SAAJFactoryLoader.java (rev 0)
+++ stack/native/trunk/src/main/java/org/jboss/ws/soap/SAAJFactoryLoader.java 2007-09-05 14:15:50 UTC (rev 4525)
@@ -0,0 +1,194 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.soap;
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.security.AccessController;
+import java.security.PrivilegedAction;
+import java.util.Properties;
+
+
+// $Id$
+
+/**
+ * Load a factory using this ordered lookup procedure
+ *
+ * <ol>
+ * <li>Use the system property
+ * <li>Use the properties file "lib/jaxm.properties" in the JRE directory
+ * <li>Use the Services API (as detailed in the JAR specification), if available, to determine the classname
+ * <li>Use the default factory implementation class
+ * </ol>
+ *
+ * @author Thomas.Diesler(a)jboss.com
+ * @since 14-Dec-2006
+ */
+public class SAAJFactoryLoader
+{
+ private SAAJFactoryLoader()
+ {
+ }
+
+ /**
+ *
+ * @return the factory impl, or null
+ */
+ public static Object loadFactory(String propertyName, String defaultFactory)
+ {
+ Object factory = null;
+ ClassLoader loader = Thread.currentThread().getContextClassLoader();
+
+ // Use the system property
+ PrivilegedAction action = new PropertyAccessAction(propertyName);
+ String factoryName = (String)AccessController.doPrivileged(action);
+ if (factoryName != null)
+ {
+ try
+ {
+ //if(log.isDebugEnabled()) log.debug("Load from system property: " + factoryName);
+ Class factoryClass = loader.loadClass(factoryName);
+ factory = factoryClass.newInstance();
+ }
+ catch (Throwable t)
+ {
+ throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
+ }
+ }
+
+ // Use the properties file "lib/jaxm.properties" in the JRE directory.
+ // This configuration file is in standard java.util.Properties format and contains the fully qualified name of the implementation class with the key being the system property defined above.
+ if (factory == null)
+ {
+ action = new PropertyAccessAction("java.home");
+ String javaHome = (String)AccessController.doPrivileged(action);
+ File jaxmFile = new File(javaHome + "/lib/jaxm.properties");
+ if (jaxmFile.exists())
+ {
+ try
+ {
+ action = new PropertyFileAccessAction(jaxmFile.getCanonicalPath());
+ Properties jaxmProperties = (Properties)AccessController.doPrivileged(action);
+ factoryName = jaxmProperties.getProperty(propertyName);
+ if (factoryName != null)
+ {
+ //if(log.isDebugEnabled()) log.debug("Load from " + jaxmFile + ": " + factoryName);
+ Class factoryClass = loader.loadClass(factoryName);
+ factory = factoryClass.newInstance();
+ }
+ }
+ catch (Throwable t)
+ {
+ throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
+ }
+ }
+ }
+
+ // Use the Services API (as detailed in the JAR specification), if available, to determine the classname.
+ if (factory == null)
+ {
+ String filename = "META-INF/services/" + propertyName;
+ InputStream inStream = loader.getResourceAsStream(filename);
+ if (inStream != null)
+ {
+ try
+ {
+ BufferedReader br = new BufferedReader(new InputStreamReader(inStream, "UTF-8"));
+ factoryName = br.readLine();
+ br.close();
+ if (factoryName != null)
+ {
+ //if(log.isTraceEnabled()) log.trace("Load from Service API " + filename + ": " + factoryName);
+ Class factoryClass = loader.loadClass(factoryName);
+ factory = factoryClass.newInstance();
+ }
+ }
+ catch (Throwable t)
+ {
+ throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
+ }
+ }
+ }
+
+ // Use the default factory implementation class.
+ if (factory == null && defaultFactory != null)
+ {
+ try
+ {
+ factoryName = defaultFactory;
+ //if(log.isDebugEnabled()) log.debug("Load from default: " + factoryName);
+ Class factoryClass = loader.loadClass(factoryName);
+ factory = factoryClass.newInstance();
+ }
+ catch (Throwable t)
+ {
+ throw new IllegalStateException("Failed to load " + propertyName + ": " + factoryName, t);
+ }
+ }
+
+ return factory;
+ }
+
+ private static class PropertyAccessAction implements PrivilegedAction
+ {
+ private String name;
+
+ PropertyAccessAction(String name)
+ {
+ this.name = name;
+ }
+
+ public Object run()
+ {
+ return System.getProperty(name);
+ }
+ }
+
+ private static class PropertyFileAccessAction implements PrivilegedAction
+ {
+ private String filename;
+
+ PropertyFileAccessAction(String filename)
+ {
+ this.filename = filename;
+ }
+
+ public Object run()
+ {
+ try
+ {
+ InputStream inStream = new FileInputStream(filename);
+ Properties props = new Properties();
+ props.load(inStream);
+ return props;
+ }
+ catch (IOException ex)
+ {
+ throw new SecurityException("Cannot load properties: " + filename, ex);
+ }
+ }
+ }
+}
Property changes on: stack/native/trunk/src/main/java/org/jboss/ws/soap/SAAJFactoryLoader.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
17 years, 4 months
JBossWS SVN: r4524 - in framework/trunk/src/test: resources/jaxws/samples/serviceref/servlet-client/WEB-INF and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2007-09-05 10:09:02 -0400 (Wed, 05 Sep 2007)
New Revision: 4524
Added:
framework/trunk/src/test/resources/jaxws/samples/serviceref/servlet-client/WEB-INF/jboss-web.xml
Modified:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/ServletClient.java
framework/trunk/src/test/resources/jaxws/samples/serviceref/servlet-client/WEB-INF/web.xml
Log:
Extend serviceref tests
Modified: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/ServletClient.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/ServletClient.java 2007-09-05 14:06:53 UTC (rev 4523)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/serviceref/ServletClient.java 2007-09-05 14:09:02 UTC (rev 4524)
@@ -32,6 +32,7 @@
import javax.xml.ws.Service;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.BindingProvider;
+import javax.xml.ws.WebServiceRef;
import javax.xml.ws.soap.SOAPBinding;
import org.jboss.logging.Logger;
@@ -41,6 +42,9 @@
// Provide logging
private static Logger log = Logger.getLogger(ServletClient.class);
+ @WebServiceRef(name="service3")
+ TestEndpointService injectedService = null;
+
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
{
String inStr = req.getParameter("echo");
@@ -75,6 +79,12 @@
throw new WebServiceException("Invalid echo return: " + inStr);
}
+ // Test the injected service as well
+ TestEndpoint injectedPort = injectedService.getTestEndpointPort();
+ String outStr = injectedPort.echo("Test injected service");
+ if (outStr.equals("Test injected service") == false)
+ throw new WebServiceException("Invalid echo return on injected service/port: " + inStr);
+
res.getWriter().print(inStr);
}
}
Added: framework/trunk/src/test/resources/jaxws/samples/serviceref/servlet-client/WEB-INF/jboss-web.xml
===================================================================
--- framework/trunk/src/test/resources/jaxws/samples/serviceref/servlet-client/WEB-INF/jboss-web.xml (rev 0)
+++ framework/trunk/src/test/resources/jaxws/samples/serviceref/servlet-client/WEB-INF/jboss-web.xml 2007-09-05 14:09:02 UTC (rev 4524)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 5.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">
+
+<jboss-web>
+ <!--class-loading>
+ <loader-repository>jbossws.samples:loader=IsolatedRepository
+ <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
+ </loader-repository>
+ </class-loading-->
+ <!--service-ref>
+ <service-ref-name>service2</service-ref-name>
+ <wsdl-override>file:/home/hbraun/dev/prj/jbossas/trunk/build/output/jboss-5.0.0.Beta3/server/cts/data/wsdl/WSEjbMultipleClientInje
+ctionTest1.ear/WSEjbMultipleClientInjectionTest1_ejb.jar/HelloService.wsdl</wsdl-override>
+ </service-ref-->
+</jboss-web>
Property changes on: framework/trunk/src/test/resources/jaxws/samples/serviceref/servlet-client/WEB-INF/jboss-web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: framework/trunk/src/test/resources/jaxws/samples/serviceref/servlet-client/WEB-INF/web.xml
===================================================================
--- framework/trunk/src/test/resources/jaxws/samples/serviceref/servlet-client/WEB-INF/web.xml 2007-09-05 14:06:53 UTC (rev 4523)
+++ framework/trunk/src/test/resources/jaxws/samples/serviceref/servlet-client/WEB-INF/web.xml 2007-09-05 14:09:02 UTC (rev 4524)
@@ -30,5 +30,16 @@
<enable-mtom>true</enable-mtom>
</port-component-ref>
</service-ref>
+
+ <service-ref>
+ <service-ref-name>service3</service-ref-name>
+ <service-interface>javax.xml.ws.Service</service-interface>
+ <wsdl-file>WEB-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
+ <service-qname>{http://serviceref.samples.jaxws.ws.test.jboss.org/}TestEndpointService</service-qname>
+ <port-component-ref>
+ <service-endpoint-interface>org.jboss.test.ws.jaxws.samples.serviceref.TestEndpoint</service-endpoint-interface>
+ <enable-mtom>true</enable-mtom>
+ </port-component-ref>
+ </service-ref>
</web-app>
\ No newline at end of file
17 years, 4 months
JBossWS SVN: r4523 - in stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm: common and 4 other directories.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2007-09-05 10:06:53 -0400 (Wed, 05 Sep 2007)
New Revision: 4523
Added:
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/AbstractSerializable.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/ConstantsImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/Constants.java
Modified:
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/AckRequestedImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/CreateSequenceImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/CreateSequenceResponseImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/ProviderImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceAcknowledgementImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceFaultImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/TerminateSequenceImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/AckRequestedImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CloseSequenceImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CloseSequenceResponseImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CreateSequenceImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CreateSequenceResponseImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/ProviderImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceAcknowledgementImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceFaultImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/TerminateSequenceImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/TerminateSequenceResponseImpl.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/Provider.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/protocol/CreateSequence.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/protocol/CreateSequenceResponse.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/protocol/SequenceAcknowledgement.java
stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/protocol/Serializable.java
Log:
refactoring - moving serialization to abstract class + added provider specific constants
Added: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/AbstractSerializable.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/AbstractSerializable.java (rev 0)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/AbstractSerializable.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.extensions.wsrm.common;
+
+import javax.xml.soap.SOAPMessage;
+
+import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
+import org.jboss.ws.extensions.wsrm.spi.protocol.Serializable;
+
+/**
+ * Utility class which should be used by all WS-RM protocol providers.
+ * @author richard.opalka(a)jboss.com
+ * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable
+ */
+public abstract class AbstractSerializable implements Serializable
+{
+
+ protected AbstractSerializable()
+ {
+ // intended to be overriden
+ }
+
+ /*
+ * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
+ */
+ public final void deserializeFrom(SOAPMessage soapMessage)
+ {
+ // TODO: implement deserialization using object set methods
+ if (true) throw new NotImplementedException();
+ validate();
+ }
+
+ /*
+ * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
+ */
+ public final void serializeTo(SOAPMessage soapMessage)
+ {
+ validate();
+ // TODO implement serialization using object instance fields
+ throw new NotImplementedException();
+ }
+
+ public abstract Provider getProvider();
+
+}
Property changes on: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/AbstractSerializable.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/ConstantsImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/ConstantsImpl.java (rev 0)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/ConstantsImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -0,0 +1,336 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.extensions.wsrm.common;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.ws.extensions.wsrm.spi.Constants;
+
+/**
+ * Utility class which should be used by all WS-RM protocol providers.
+ * @author richard.opalka(a)jboss.com
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants
+ */
+public final class ConstantsImpl implements Constants
+{
+ // default namespace prefix
+ private static final String WSRM_PREFIX = "wsrm";
+ // heavily used constants
+ private final QName acceptQName;
+ private final QName ackRequestedQName;
+ private final QName acknowledgementRangeQName;
+ private final QName acksToQName;
+ private final QName closeSequenceQName;
+ private final QName closeSequenceResponseQName;
+ private final QName createSequenceQName;
+ private final QName createSequenceResponseQName;
+ private final QName detailQName;
+ private final QName endpointQName;
+ private final QName expiresQName;
+ private final QName faultCodeQName;
+ private final QName finalQName;
+ private final QName identifierQName;
+ private final QName incompleteSequenceBehaviorQName;
+ private final QName lastMessageNumberQName;
+ private final QName lastMessageQName;
+ private final QName lastMsgNumberQName;
+ private final QName lowerQName;
+ private final QName messageNumberQName;
+ private final QName nackQName;
+ private final QName noneQName;
+ private final QName offerQName;
+ private final QName sequenceAcknowledgementQName;
+ private final QName sequenceFaultQName;
+ private final QName equenceQName;
+ private final QName terminateSequenceQName;
+ private final QName terminateSequenceResponseQName;
+ private final QName upperQName;
+
+ public ConstantsImpl(String namespace)
+ {
+ if ((namespace == null) || (namespace.trim().equals("")))
+ throw new IllegalArgumentException();
+
+ acceptQName = new QName(WSRM_PREFIX, namespace, "Accept");
+ ackRequestedQName = new QName(WSRM_PREFIX, namespace, "AckRequested");
+ acknowledgementRangeQName = new QName(WSRM_PREFIX, namespace, "AcknowledgementRange");
+ acksToQName = new QName(WSRM_PREFIX, namespace, "AcksTo");
+ closeSequenceQName = new QName(WSRM_PREFIX, namespace, "CloseSequence");
+ closeSequenceResponseQName = new QName(WSRM_PREFIX, namespace, "CloseSequenceResponse");
+ createSequenceQName = new QName(WSRM_PREFIX, namespace, "CreateSequence");
+ createSequenceResponseQName = new QName(WSRM_PREFIX, namespace, "CreateSequenceResponse");
+ detailQName = new QName(WSRM_PREFIX, namespace, "Detail");
+ endpointQName = new QName(WSRM_PREFIX, namespace, "Endpoint");
+ expiresQName = new QName(WSRM_PREFIX, namespace, "Expires");
+ faultCodeQName = new QName(WSRM_PREFIX, namespace, "FaultCode");
+ finalQName = new QName(WSRM_PREFIX, namespace, "Final");
+ identifierQName = new QName(WSRM_PREFIX, namespace, "Identifier");
+ incompleteSequenceBehaviorQName = new QName(WSRM_PREFIX, namespace, "IncompleteSequenceBehavior");
+ lastMessageNumberQName = new QName(WSRM_PREFIX, namespace, "LastMessageNumber");
+ lastMessageQName = new QName(WSRM_PREFIX, namespace, "LastMessage");
+ lastMsgNumberQName = new QName(WSRM_PREFIX, namespace, "LastMsgNumber");
+ lowerQName = new QName(WSRM_PREFIX, namespace, "Lower");
+ messageNumberQName = new QName(WSRM_PREFIX, namespace, "MessageNumber");
+ nackQName = new QName(WSRM_PREFIX, namespace, "Nack");
+ noneQName = new QName(WSRM_PREFIX, namespace, "None");
+ offerQName = new QName(WSRM_PREFIX, namespace, "Offer");
+ sequenceAcknowledgementQName = new QName(WSRM_PREFIX, namespace, "SequenceAcknowledgement");
+ sequenceFaultQName = new QName(WSRM_PREFIX, namespace, "SequenceFault");
+ equenceQName = new QName(WSRM_PREFIX, namespace, "Sequence");
+ terminateSequenceQName = new QName(WSRM_PREFIX, namespace, "TerminateSequence");
+ terminateSequenceResponseQName = new QName(WSRM_PREFIX, namespace, "TerminateSequenceResponse");
+ upperQName = new QName(WSRM_PREFIX, namespace, "Upper");
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getAcceptQName()
+ */
+ public final QName getAcceptQName()
+ {
+ return acceptQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getAckRequestedQName()
+ */
+ public final QName getAckRequestedQName()
+ {
+ return ackRequestedQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getAcknowledgementRangeQName()
+ */
+ public final QName getAcknowledgementRangeQName()
+ {
+ return acknowledgementRangeQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getAcksToQName()
+ */
+ public final QName getAcksToQName()
+ {
+ return acksToQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getCloseSequenceQName()
+ */
+ public final QName getCloseSequenceQName()
+ {
+ return closeSequenceQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getCloseSequenceResponseQName()
+ */
+ public final QName getCloseSequenceResponseQName()
+ {
+ return closeSequenceResponseQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getCreateSequenceQName()
+ */
+ public final QName getCreateSequenceQName()
+ {
+ return createSequenceQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getCreateSequenceResponseQName()
+ */
+ public final QName getCreateSequenceResponseQName()
+ {
+ return createSequenceResponseQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getDetailQName()
+ */
+ public final QName getDetailQName()
+ {
+ return detailQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getEndpointQName()
+ */
+ public final QName getEndpointQName()
+ {
+ return endpointQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getExpiresQName()
+ */
+ public final QName getExpiresQName()
+ {
+ return expiresQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getFaultCodeQName()
+ */
+ public final QName getFaultCodeQName()
+ {
+ return faultCodeQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getFinalQName()
+ */
+ public final QName getFinalQName()
+ {
+ return finalQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getIdentifierQName()
+ */
+ public final QName getIdentifierQName()
+ {
+ return identifierQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getIncompleteSequenceBehaviorQName()
+ */
+ public final QName getIncompleteSequenceBehaviorQName()
+ {
+ return incompleteSequenceBehaviorQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getLastMessageNumberQName()
+ */
+ public final QName getLastMessageNumberQName()
+ {
+ return lastMessageNumberQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getLastMessageQName()
+ */
+ public final QName getLastMessageQName()
+ {
+ return lastMessageQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getLastMsgNumberQName()
+ */
+ public final QName getLastMsgNumberQName()
+ {
+ return lastMsgNumberQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getLowerQName()
+ */
+ public final QName getLowerQName()
+ {
+ return lowerQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getMessageNumberQName()
+ */
+ public final QName getMessageNumberQName()
+ {
+ return messageNumberQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getNackQName()
+ */
+ public final QName getNackQName()
+ {
+ return nackQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getNoneQName()
+ */
+ public final QName getNoneQName()
+ {
+ return noneQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getOfferQName()
+ */
+ public final QName getOfferQName()
+ {
+ return offerQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getSequenceAcknowledgementQName()
+ */
+ public final QName getSequenceAcknowledgementQName()
+ {
+ return sequenceAcknowledgementQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getSequenceFaultQName()
+ */
+ public final QName getSequenceFaultQName()
+ {
+ return sequenceFaultQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getSequenceQName()
+ */
+ public final QName getSequenceQName()
+ {
+ return equenceQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getTerminateSequenceQName()
+ */
+ public final QName getTerminateSequenceQName()
+ {
+ return terminateSequenceQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getTerminateSequenceResponseQName()
+ */
+ public final QName getTerminateSequenceResponseQName()
+ {
+ return terminateSequenceResponseQName;
+ }
+
+ /**
+ * @see org.jboss.ws.extensions.wsrm.spi.Constants#getUpperQName()
+ */
+ public final QName getUpperQName()
+ {
+ return upperQName;
+ }
+
+}
Property changes on: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/common/ConstantsImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/AckRequestedImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/AckRequestedImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/AckRequestedImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,17 +21,20 @@
*/
package org.jboss.ws.extensions.wsrm.spec200502;
-import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.AckRequested;
-import javax.xml.soap.SOAPMessage;
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.AckRequested
*/
-final class AckRequestedImpl implements AckRequested
+final class AckRequestedImpl extends AbstractSerializable implements AckRequested
{
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private String identifier;
private long lastMessageNumber;
@@ -119,29 +122,14 @@
return false;
return true;
}
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if (this.identifier == null)
throw new IllegalStateException();
}
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/CreateSequenceImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/CreateSequenceImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/CreateSequenceImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,18 +21,21 @@
*/
package org.jboss.ws.extensions.wsrm.spec200502;
-import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequence;
import org.jboss.ws.extensions.wsrm.spi.protocol.IncompleteSequenceBehavior;
-import javax.xml.soap.SOAPMessage;
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequence
*/
-final class CreateSequenceImpl implements CreateSequence
+final class CreateSequenceImpl extends AbstractSerializable implements CreateSequence
{
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private String acksTo;
private String expires;
private Offer offer;
@@ -169,29 +172,14 @@
return false;
return true;
}
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if (this.acksTo == null)
throw new IllegalStateException();
}
@@ -199,7 +187,7 @@
/*
* @see org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequence.Offer
*/
- private static final class OfferImpl implements CreateSequence.Offer
+ private static class OfferImpl implements CreateSequence.Offer
{
private String duration;
@@ -326,32 +314,6 @@
return true;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
- {
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
- }
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
- {
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
- if (this.identifier == null)
- throw new IllegalStateException();
- }
-
}
}
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/CreateSequenceResponseImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/CreateSequenceResponseImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/CreateSequenceResponseImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,18 +21,21 @@
*/
package org.jboss.ws.extensions.wsrm.spec200502;
-import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequenceResponse;
import org.jboss.ws.extensions.wsrm.spi.protocol.IncompleteSequenceBehavior;
-import javax.xml.soap.SOAPMessage;
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequenceResponse
*/
-final class CreateSequenceResponseImpl implements CreateSequenceResponse
+final class CreateSequenceResponseImpl extends AbstractSerializable implements CreateSequenceResponse
{
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private String identifier;
private String expires;
private Accept accept;
@@ -183,29 +186,14 @@
return false;
return true;
}
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if (this.identifier == null)
throw new IllegalStateException();
}
@@ -213,7 +201,7 @@
/*
* @see org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequenceResponse.Accept
*/
- private static final class AcceptImpl implements CreateSequenceResponse.Accept
+ private static class AcceptImpl implements CreateSequenceResponse.Accept
{
private String acksTo;
@@ -274,32 +262,6 @@
return true;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
- {
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
- }
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
- {
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
- if (this.acksTo == null)
- throw new IllegalStateException();
- }
-
}
}
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/ProviderImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/ProviderImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/ProviderImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,8 +21,10 @@
*/
package org.jboss.ws.extensions.wsrm.spec200502;
+import org.jboss.ws.extensions.wsrm.spi.Constants;
import org.jboss.ws.extensions.wsrm.spi.MessageFactory;
import org.jboss.ws.extensions.wsrm.spi.Provider;
+import org.jboss.ws.extensions.wsrm.common.ConstantsImpl;
/*
* @author richard.opalka(a)jboss.com
@@ -31,7 +33,8 @@
public final class ProviderImpl extends Provider
{
- static final String IMPLEMENTATION_VERSION = "http://schemas.xmlsoap.org/ws/2005/02/rm";
+ private static final String IMPLEMENTATION_VERSION = "http://schemas.xmlsoap.org/ws/2005/02/rm";
+ private static final Constants CONSTANTS = new ConstantsImpl(IMPLEMENTATION_VERSION);
private static final Provider INSTANCE = new ProviderImpl();
private ProviderImpl()
@@ -41,7 +44,7 @@
public static Provider getInstance()
{
- return INSTANCE;
+ return INSTANCE;
}
/*
@@ -54,6 +57,15 @@
}
/*
+ * @see org.jboss.ws.extensions.wsrm.spi.Provider#getConstants()
+ */
+ @Override
+ public Constants getConstants()
+ {
+ return CONSTANTS;
+ }
+
+ /*
* @see org.jboss.ws.extensions.wsrm.spi.Provider#getNamespaceURI()
*/
@Override
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceAcknowledgementImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceAcknowledgementImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceAcknowledgementImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -25,18 +25,20 @@
import java.util.LinkedList;
import java.util.Collections;
-import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.SequenceAcknowledgement;
-import javax.xml.soap.SOAPMessage;
-
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.SequenceAcknowledgement
*/
-final class SequenceAcknowledgementImpl implements SequenceAcknowledgement
+final class SequenceAcknowledgementImpl extends AbstractSerializable implements SequenceAcknowledgement
{
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private final List<Long> nacks = new LinkedList<Long>();
private final List<AcknowledgementRange> acknowledgementRanges = new LinkedList<AcknowledgementRange>();
private String identifier;
@@ -203,29 +205,14 @@
return false;
return true;
}
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if ((this.acknowledgementRanges.size() == 0) && (this.nacks.size() == 0))
throw new IllegalStateException();
}
@@ -240,7 +227,7 @@
"Overlap detected: " + currentRange + " vs. " + newRange);
}
- private static final class AcknowledgementRangeImpl implements SequenceAcknowledgement.AcknowledgementRange
+ private static class AcknowledgementRangeImpl implements SequenceAcknowledgement.AcknowledgementRange
{
private long lower;
@@ -325,39 +312,11 @@
return true;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
- {
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
- }
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
- {
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
public String toString()
{
return "<" + lower + "; " + upper + ">";
}
- private void ensureLegalState()
- {
- if (this.lower == 0)
- throw new IllegalStateException();
- if (this.upper == 0)
- throw new IllegalStateException();
- }
-
}
}
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceFaultImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceFaultImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceFaultImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,18 +21,21 @@
*/
package org.jboss.ws.extensions.wsrm.spec200502;
-import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.SequenceFault;
import org.jboss.ws.extensions.wsrm.spi.protocol.SequenceFaultCode;
-import javax.xml.soap.SOAPMessage;
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.SequenceFault
*/
-final class SequenceFaultImpl implements SequenceFault
+final class SequenceFaultImpl extends AbstractSerializable implements SequenceFault
{
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private SequenceFaultCode faultCode;
private Exception detail;
@@ -125,29 +128,14 @@
return false;
return true;
}
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if (this.faultCode == null)
throw new IllegalStateException();
}
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/SequenceImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,17 +21,20 @@
*/
package org.jboss.ws.extensions.wsrm.spec200502;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.Sequence;
-import javax.xml.soap.SOAPMessage;
-import org.jboss.util.NotImplementedException;
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.Sequence
*/
-final class SequenceImpl implements Sequence
+final class SequenceImpl extends AbstractSerializable implements Sequence
{
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private String identifier;
private long messageNumber;
private boolean isLastMessage;
@@ -139,29 +142,14 @@
return false;
return true;
}
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if (this.identifier == null)
throw new IllegalStateException();
if (this.messageNumber == 0)
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/TerminateSequenceImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/TerminateSequenceImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200502/TerminateSequenceImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,17 +21,20 @@
*/
package org.jboss.ws.extensions.wsrm.spec200502;
-import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.TerminateSequence;
-import javax.xml.soap.SOAPMessage;
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.TerminateSequence
*/
-final class TerminateSequenceImpl implements TerminateSequence
+final class TerminateSequenceImpl extends AbstractSerializable implements TerminateSequence
{
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private String identifier;
TerminateSequenceImpl()
@@ -110,29 +113,14 @@
return false;
return true;
}
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if (this.identifier == null)
throw new IllegalStateException();
}
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/AckRequestedImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/AckRequestedImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/AckRequestedImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,17 +21,20 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.AckRequested;
-import javax.xml.soap.SOAPMessage;
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.AckRequested
*/
-final class AckRequestedImpl implements AckRequested
+final class AckRequestedImpl extends AbstractSerializable implements AckRequested
{
-
+
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private String identifier;
AckRequestedImpl()
@@ -110,29 +113,14 @@
return false;
return true;
}
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if (this.identifier == null)
throw new IllegalStateException();
}
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CloseSequenceImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CloseSequenceImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CloseSequenceImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,17 +21,20 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.CloseSequence;
-import javax.xml.soap.SOAPMessage;
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.CloseSequence
*/
-final class CloseSequenceImpl implements CloseSequence
+final class CloseSequenceImpl extends AbstractSerializable implements CloseSequence
{
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private String identifier;
private long lastMsgNumber;
@@ -119,29 +122,14 @@
return false;
return true;
}
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if (this.identifier == null)
throw new IllegalStateException();
}
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CloseSequenceResponseImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CloseSequenceResponseImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CloseSequenceResponseImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,17 +21,20 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.CloseSequenceResponse;
-import javax.xml.soap.SOAPMessage;
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.CloseSequenceResponse
*/
-final class CloseSequenceResponseImpl implements CloseSequenceResponse
+final class CloseSequenceResponseImpl extends AbstractSerializable implements CloseSequenceResponse
{
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private String identifier;
CloseSequenceResponseImpl()
@@ -94,29 +97,14 @@
return false;
return true;
}
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if (this.identifier == null)
throw new IllegalStateException();
}
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CreateSequenceImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CreateSequenceImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CreateSequenceImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,18 +21,21 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequence;
import org.jboss.ws.extensions.wsrm.spi.protocol.IncompleteSequenceBehavior;
-import javax.xml.soap.SOAPMessage;
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequence
*/
-final class CreateSequenceImpl implements CreateSequence
+final class CreateSequenceImpl extends AbstractSerializable implements CreateSequence
{
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private String acksTo;
private String expires;
private Offer offer;
@@ -170,28 +173,13 @@
return true;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if (this.acksTo == null)
throw new IllegalStateException();
}
@@ -199,7 +187,7 @@
/*
* @see org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequence.Offer
*/
- private static final class OfferImpl implements CreateSequence.Offer
+ private static class OfferImpl implements CreateSequence.Offer
{
private String endpoint;
@@ -354,34 +342,6 @@
return true;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
- {
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
- }
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
- {
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
- if (this.identifier == null)
- throw new IllegalStateException();
- if (this.endpoint == null)
- throw new IllegalStateException();
- }
-
}
}
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CreateSequenceResponseImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CreateSequenceResponseImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/CreateSequenceResponseImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,18 +21,21 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequenceResponse;
import org.jboss.ws.extensions.wsrm.spi.protocol.IncompleteSequenceBehavior;
-import javax.xml.soap.SOAPMessage;
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequenceResponse
*/
-final class CreateSequenceResponseImpl implements CreateSequenceResponse
+final class CreateSequenceResponseImpl extends AbstractSerializable implements CreateSequenceResponse
{
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private String identifier;
private String expires;
private Accept accept;
@@ -197,29 +200,14 @@
return false;
return true;
}
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if (this.identifier == null)
throw new IllegalStateException();
}
@@ -227,7 +215,7 @@
/*
* @see org.jboss.ws.extensions.wsrm.spi.protocol.CreateSequenceResponse.Accept
*/
- private static final class AcceptImpl implements CreateSequenceResponse.Accept
+ private static class AcceptImpl implements CreateSequenceResponse.Accept
{
private String acksTo;
@@ -288,32 +276,6 @@
return true;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
- {
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
- }
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
- {
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
- if (this.acksTo == null)
- throw new IllegalStateException();
- }
-
}
}
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/ProviderImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/ProviderImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/ProviderImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,6 +21,8 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
+import org.jboss.ws.extensions.wsrm.common.ConstantsImpl;
+import org.jboss.ws.extensions.wsrm.spi.Constants;
import org.jboss.ws.extensions.wsrm.spi.MessageFactory;
import org.jboss.ws.extensions.wsrm.spi.Provider;
@@ -31,7 +33,8 @@
public final class ProviderImpl extends Provider
{
- static final String IMPLEMENTATION_VERSION = "http://docs.oasis-open.org/ws-rx/wsrm/200702";
+ private static final String IMPLEMENTATION_VERSION = "http://docs.oasis-open.org/ws-rx/wsrm/200702";
+ private static final Constants CONSTANTS = new ConstantsImpl(IMPLEMENTATION_VERSION);
private static final Provider INSTANCE = new ProviderImpl();
private ProviderImpl()
@@ -41,7 +44,7 @@
public static Provider getInstance()
{
- return INSTANCE;
+ return INSTANCE;
}
/*
@@ -52,6 +55,15 @@
{
return MessageFactoryImpl.getInstance();
}
+
+ /*
+ * @see org.jboss.ws.extensions.wsrm.spi.Provider#getConstants()
+ */
+ @Override
+ public Constants getConstants()
+ {
+ return CONSTANTS;
+ }
/*
* @see org.jboss.ws.extensions.wsrm.spi.Provider#getNamespaceURI()
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceAcknowledgementImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceAcknowledgementImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceAcknowledgementImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -25,18 +25,20 @@
import java.util.LinkedList;
import java.util.Collections;
-import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.SequenceAcknowledgement;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
-import javax.xml.soap.SOAPMessage;
-
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.SequenceAcknowledgement
*/
-final class SequenceAcknowledgementImpl implements SequenceAcknowledgement
+final class SequenceAcknowledgementImpl extends AbstractSerializable implements SequenceAcknowledgement
{
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private final List<Long> nacks = new LinkedList<Long>();
private final List<AcknowledgementRange> acknowledgementRanges = new LinkedList<AcknowledgementRange>();
private String identifier;
@@ -225,29 +227,14 @@
return false;
return true;
}
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if ((this.acknowledgementRanges.size() == 0) && (this.nacks.size() == 0) && (!this.isNone))
throw new IllegalStateException();
}
@@ -262,7 +249,7 @@
"Overlap detected: " + currentRange + " vs. " + newRange);
}
- private static final class AcknowledgementRangeImpl implements SequenceAcknowledgement.AcknowledgementRange
+ private static class AcknowledgementRangeImpl implements SequenceAcknowledgement.AcknowledgementRange
{
private long lower;
@@ -347,39 +334,11 @@
return true;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
- {
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
- }
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
- {
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
public String toString()
{
return "<" + lower + "; " + upper + ">";
}
- private void ensureLegalState()
- {
- if (this.lower == 0)
- throw new IllegalStateException();
- if (this.upper == 0)
- throw new IllegalStateException();
- }
-
}
}
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceFaultImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceFaultImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceFaultImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,18 +21,21 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.SequenceFault;
import org.jboss.ws.extensions.wsrm.spi.protocol.SequenceFaultCode;
-import javax.xml.soap.SOAPMessage;
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.SequenceFault
*/
-final class SequenceFaultImpl implements SequenceFault
+final class SequenceFaultImpl extends AbstractSerializable implements SequenceFault
{
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private SequenceFaultCode faultCode;
private Exception detail;
@@ -126,28 +129,13 @@
return true;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if (this.faultCode == null)
throw new IllegalStateException();
}
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/SequenceImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,17 +21,20 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.Sequence;
-import javax.xml.soap.SOAPMessage;
-import org.jboss.util.NotImplementedException;
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.Sequence
*/
-final class SequenceImpl implements Sequence
+final class SequenceImpl extends AbstractSerializable implements Sequence
{
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private String identifier;
private long messageNumber;
@@ -135,29 +138,14 @@
return false;
return true;
}
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if (this.identifier == null)
throw new IllegalStateException();
if (this.messageNumber == 0)
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/TerminateSequenceImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/TerminateSequenceImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/TerminateSequenceImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,17 +21,20 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.TerminateSequence;
-import javax.xml.soap.SOAPMessage;
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.TerminateSequence
*/
-final class TerminateSequenceImpl implements TerminateSequence
+final class TerminateSequenceImpl extends AbstractSerializable implements TerminateSequence
{
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private String identifier;
private long lastMsgNumber;
@@ -119,29 +122,14 @@
return false;
return true;
}
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if (this.identifier == null)
throw new IllegalStateException();
}
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/TerminateSequenceResponseImpl.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/TerminateSequenceResponseImpl.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spec200702/TerminateSequenceResponseImpl.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -21,17 +21,20 @@
*/
package org.jboss.ws.extensions.wsrm.spec200702;
-import org.jboss.util.NotImplementedException;
+import org.jboss.ws.extensions.wsrm.common.AbstractSerializable;
+import org.jboss.ws.extensions.wsrm.spi.Provider;
import org.jboss.ws.extensions.wsrm.spi.protocol.TerminateSequenceResponse;
-import javax.xml.soap.SOAPMessage;
/*
* @author richard.opalka(a)jboss.com
* @see org.jboss.ws.extensions.wsrm.spi.protocol.TerminateSequenceResponse
*/
-final class TerminateSequenceResponseImpl implements TerminateSequenceResponse
+final class TerminateSequenceResponseImpl extends AbstractSerializable implements TerminateSequenceResponse
{
+ // provider used by de/serialization framework
+ private static final Provider PROVIDER = ProviderImpl.getInstance();
+ // internal fields
private String identifier;
TerminateSequenceResponseImpl()
@@ -95,28 +98,13 @@
return true;
}
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#deserializeFrom(javax.xml.soap.SOAPMessage)
- */
- public void deserializeFrom(SOAPMessage soapMessage)
+ public Provider getProvider()
{
- // TODO: implement deserialization using object set methods
- if (true) throw new NotImplementedException();
- ensureLegalState();
+ return PROVIDER;
}
-
- /*
- * @see org.jboss.ws.extensions.wsrm.spi.protocol.Serializable#serializeTo(javax.xml.soap.SOAPMessage)
- */
- public void serializeTo(SOAPMessage soapMessage)
+
+ public void validate()
{
- ensureLegalState();
- // TODO implement serialization using object instance fields
- throw new NotImplementedException();
- }
-
- private void ensureLegalState()
- {
if (this.identifier == null)
throw new IllegalStateException();
}
Added: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/Constants.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/Constants.java (rev 0)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/Constants.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -0,0 +1,208 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ws.extensions.wsrm.spi;
+
+import javax.xml.namespace.QName;
+
+/**
+ * WS-RM protocol elements SPI facade. Each WS-RM provider must implement this interface.
+ *
+ * @author richard.opalka(a)jboss.com
+ */
+public interface Constants
+{
+
+ /**
+ * getter
+ * @return <b>LastMessage</b> QName
+ */
+ QName getLastMessageQName();
+
+ /**
+ * getter
+ * @return <b>CreateSequence</b> QName
+ */
+ QName getCreateSequenceQName();
+
+ /**
+ * getter
+ * @return <b>AcksTo</b> QName
+ */
+ QName getAcksToQName();
+
+ /**
+ * getter
+ * @return <b>Expires</b> QName
+ */
+ QName getExpiresQName();
+
+ /**
+ * getter
+ * @return <b>Offer</b> QName
+ */
+ QName getOfferQName();
+
+ /**
+ * getter
+ * @return <b>Identifier</b> QName
+ */
+ QName getIdentifierQName();
+
+ /**
+ * getter
+ * @return <b>Endpoint</b> QName
+ */
+ QName getEndpointQName();
+
+ /**
+ * getter
+ * @return <b>IncompleteSequenceBehavior</b> QName
+ */
+ QName getIncompleteSequenceBehaviorQName();
+
+ /**
+ * getter
+ * @return <b>CreateSequenceResponse</b> QName
+ */
+ QName getCreateSequenceResponseQName();
+
+ /**
+ * getter
+ * @return <b>Accept</b> QName
+ */
+ QName getAcceptQName();
+
+ /**
+ * getter
+ * @return <b>CloseSequence</b> QName
+ */
+ QName getCloseSequenceQName();
+
+ /**
+ * getter
+ * @return <b>LastMessageNumber</b> QName
+ */
+ QName getLastMessageNumberQName();
+
+ /**
+ * getter
+ * @return <b>CloseSequenceResponse</b> QName
+ */
+ QName getCloseSequenceResponseQName();
+
+ /**
+ * getter
+ * @return <b>TerminateSequence</b> QName
+ */
+ QName getTerminateSequenceQName();
+
+ /**
+ * getter
+ * @return <b>LastMsgNumber</b> QName
+ */
+ QName getLastMsgNumberQName();
+
+ /**
+ * getter
+ * @return <b>TerminateSequenceResponse</b> QName
+ */
+ QName getTerminateSequenceResponseQName();
+
+ /**
+ * getter
+ * @return <b>Sequence</b> QName
+ */
+ QName getSequenceQName();
+
+ /**
+ * getter
+ * @return <b>MessageNumber</b> QName
+ */
+ QName getMessageNumberQName();
+
+ /**
+ * getter
+ * @return <b>AckRequested</b> QName
+ */
+ QName getAckRequestedQName();
+
+ /**
+ * getter
+ * @return <b>SequenceAcknowledgement</b> QName
+ */
+ QName getSequenceAcknowledgementQName();
+
+ /**
+ * getter
+ * @return <b>AcknowledgementRange</b> QName
+ */
+ QName getAcknowledgementRangeQName();
+
+ /**
+ * getter
+ * @return <b>Upper</b> QName
+ */
+ QName getUpperQName();
+
+ /**
+ * getter
+ * @return <b>Lower</b> QName
+ */
+ QName getLowerQName();
+
+ /**
+ * getter
+ * @return <b>None</b> QName
+ */
+ QName getNoneQName();
+
+ /**
+ * getter
+ * @return <b>Final</b> QName
+ */
+ QName getFinalQName();
+
+ /**
+ * getter
+ * @return <b>Nack</b> QName
+ */
+ QName getNackQName();
+
+ /**
+ * getter
+ * @return <b>SequenceFault</b> QName
+ */
+ QName getSequenceFaultQName();
+
+ /**
+ * getter
+ * @return <b>FaultCode</b> QName
+ */
+ QName getFaultCodeQName();
+
+ /**
+ * getter
+ * @return <b>Detail</b> QName
+ */
+ QName getDetailQName();
+
+}
Property changes on: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/Constants.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/Provider.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/Provider.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/Provider.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -38,10 +38,12 @@
{
REGISTERED_PROVIDERS.put(
org.jboss.ws.extensions.wsrm.spec200702.ProviderImpl.getInstance().getNamespaceURI(),
- org.jboss.ws.extensions.wsrm.spec200702.ProviderImpl.getInstance());
+ org.jboss.ws.extensions.wsrm.spec200702.ProviderImpl.getInstance()
+ );
REGISTERED_PROVIDERS.put(
org.jboss.ws.extensions.wsrm.spec200502.ProviderImpl.getInstance().getNamespaceURI(),
- org.jboss.ws.extensions.wsrm.spec200502.ProviderImpl.getInstance());
+ org.jboss.ws.extensions.wsrm.spec200502.ProviderImpl.getInstance()
+ );
}
/**
@@ -65,12 +67,18 @@
public abstract MessageFactory getMessageFactory();
/**
+ * Returns WS-RM provider specific constants
+ * @return constants
+ */
+ public abstract Constants getConstants();
+
+ /**
* Gets WS-RM provider by <b>wsrmNamespace</b>
* @param namespace associated with the WS-RM provider
* @return WS-RM provider instance
* @throws IllegalArgumentException if specified <b>wsrmNamespace</b> has no associated WS-RM provider
*/
- public static Provider getInstance(String wsrmNamespace)
+ public static final Provider getInstance(String wsrmNamespace)
{
if (!REGISTERED_PROVIDERS.keySet().contains(wsrmNamespace))
throw new IllegalArgumentException("No WS-RM provider registered for namespace " + wsrmNamespace);
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/protocol/CreateSequence.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/protocol/CreateSequence.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/protocol/CreateSequence.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -106,7 +106,7 @@
* This element, if present, enables an RM Source to offer a corresponding Sequence for the reliable
* exchange of messages Transmitted from RM Destination to RM Source.
*/
- interface Offer extends Serializable
+ interface Offer
{
/**
* The RM Source MUST set the value of this element to an absolute URI (conformant with
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/protocol/CreateSequenceResponse.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/protocol/CreateSequenceResponse.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/protocol/CreateSequenceResponse.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -119,7 +119,7 @@
* <b>CreateSequence</b> that did contain a child Offer, then the RM Source MAY immediately reclaim
* any resources associated with the unused offered Sequence.</p>
*/
- interface Accept extends Serializable
+ interface Accept
{
/**
* <p>The RM Destination MUST include this element, of type <b>wsa:EndpointReferenceType</b> (as
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/protocol/SequenceAcknowledgement.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/protocol/SequenceAcknowledgement.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/protocol/SequenceAcknowledgement.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -139,7 +139,7 @@
* Destination MUST NOT include this element if a sibling <b>Nack</b> or <b>None</b> element is also present as
* a child of <b>SequenceAcknowledgement</b>.
*/
- interface AcknowledgementRange extends Serializable
+ interface AcknowledgementRange
{
/**
* The RM Destination MUST set the value of this attribute equal to the message number of the
Modified: stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/protocol/Serializable.java
===================================================================
--- stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/protocol/Serializable.java 2007-09-04 15:28:06 UTC (rev 4522)
+++ stack/native/branches/ropalka/trunk/src/main/java/org/jboss/ws/extensions/wsrm/spi/protocol/Serializable.java 2007-09-05 14:06:53 UTC (rev 4523)
@@ -30,6 +30,7 @@
*/
public interface Serializable
{
+
/**
* Serialize object instance to SOAP message
* @param soapMessage
@@ -41,4 +42,10 @@
* @param soapMessage
*/
void deserializeFrom(SOAPMessage soapMessage);
+
+ /**
+ * Validate object state if everything is all right
+ */
+ void validate();
+
}
17 years, 4 months