com.sun.xml.ws.rm
Enum RmVersion

java.lang.Object
  extended by java.lang.Enum<RmVersion>
      extended by com.sun.xml.ws.rm.RmVersion
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RmVersion>

public enum RmVersion
extends java.lang.Enum<RmVersion>

This enumeration contains all currently supported WS-ReliableMessaging versions. The used reliable messaging version affects the WS-ReliableMessaging Policy assertions displayed int the web service's WSDL, XML namespace of RM protocol element being created as well as RM protocol message processing logic.

See Also:
WSRM200502, WSRM200702

Enum Constant Summary
WSRM200502
           This value represents the outdated and obsolete WS-ReliableMessaging v1.0 protocol.
WSRM200702
           This value represents the version of WS-ReliableMessaging protocol standardized by OASIS organization.
 
Field Summary
 java.lang.String ackRequestedAction
          Action constants
 java.lang.String closeSequenceAction
           
 java.lang.String closeSequenceResponseAction
           
 java.lang.String createSequenceAction
           
 javax.xml.namespace.QName createSequenceRefusedFaultCode
           
 java.lang.String createSequenceResponseAction
           
 javax.xml.namespace.QName invalidAcknowledgementFaultCode
           
 java.lang.String lastAction
           
 javax.xml.namespace.QName lastMessageNumberExceededFaultCode
           
 java.lang.String makeConnectionAction
           
 javax.xml.namespace.QName messageNumberRolloverFaultCode
           
 java.lang.String namespaceUri
          General constants
 java.lang.String policyNamespaceUri
           
 java.lang.String sequenceAcknowledgementAction
           
 javax.xml.namespace.QName sequenceClosedFaultCode
           
 javax.xml.namespace.QName sequenceTerminatedFaultCode
          Fault codes
 java.lang.String terminateSequenceAction
           
 java.lang.String terminateSequenceResponseAction
           
 javax.xml.namespace.QName unknownSequenceFaultCode
           
 java.lang.String wsrmFaultAction
           
 javax.xml.namespace.QName wsrmRequiredFaultCode
           
 
Method Summary
 javax.xml.bind.Unmarshaller createUnmarshaller(com.sun.xml.ws.api.addressing.AddressingVersion av)
          Creates JAXB Unmarshaller that is able to unmarshall Rm protocol elements for given WS-RM version.
 com.sun.xml.bind.api.JAXBRIContext getJaxbContext(com.sun.xml.ws.api.addressing.AddressingVersion av)
          Returns JAXB context that is intitialized based on a given addressing version.
 boolean isRmAction(java.lang.String wsaAction)
          TODO javadoc
 boolean isRmFault(java.lang.String wsaAction)
          TODO javadoc
 boolean isRmProtocolRequest(java.lang.String wsaAction)
          TODO javadoc
 boolean isRmProtocolResponse(java.lang.String wsaAction)
          TODO javadoc
static RmVersion valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RmVersion[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

WSRM200502

public static final RmVersion WSRM200502

This value represents the outdated and obsolete WS-ReliableMessaging v1.0 protocol.

You may want to choose this version for your WS endpoints to ensure maximum backward compatibility with clients running on older systems, such as Metro 1.0 or .NET 3.0

See Also:
RmVersion

WSRM200702

public static final RmVersion WSRM200702

This value represents the version of WS-ReliableMessaging protocol standardized by OASIS organization. This is currently the most up-to-date version.

You should primarily use this version for your WS endpoints. It is compatible with clients running on Metro 1.3 or .NET 3.5 and later.

See Also:
RmVersion
Field Detail

namespaceUri

public final java.lang.String namespaceUri
General constants


policyNamespaceUri

public final java.lang.String policyNamespaceUri

ackRequestedAction

public final java.lang.String ackRequestedAction
Action constants


createSequenceAction

public final java.lang.String createSequenceAction

createSequenceResponseAction

public final java.lang.String createSequenceResponseAction

closeSequenceAction

public final java.lang.String closeSequenceAction

closeSequenceResponseAction

public final java.lang.String closeSequenceResponseAction

lastAction

public final java.lang.String lastAction

makeConnectionAction

public final java.lang.String makeConnectionAction

sequenceAcknowledgementAction

public final java.lang.String sequenceAcknowledgementAction

wsrmFaultAction

public final java.lang.String wsrmFaultAction

terminateSequenceAction

public final java.lang.String terminateSequenceAction

terminateSequenceResponseAction

public final java.lang.String terminateSequenceResponseAction

sequenceTerminatedFaultCode

public final javax.xml.namespace.QName sequenceTerminatedFaultCode
Fault codes


unknownSequenceFaultCode

public final javax.xml.namespace.QName unknownSequenceFaultCode

invalidAcknowledgementFaultCode

public final javax.xml.namespace.QName invalidAcknowledgementFaultCode

messageNumberRolloverFaultCode

public final javax.xml.namespace.QName messageNumberRolloverFaultCode

lastMessageNumberExceededFaultCode

public final javax.xml.namespace.QName lastMessageNumberExceededFaultCode

createSequenceRefusedFaultCode

public final javax.xml.namespace.QName createSequenceRefusedFaultCode

sequenceClosedFaultCode

public final javax.xml.namespace.QName sequenceClosedFaultCode

wsrmRequiredFaultCode

public final javax.xml.namespace.QName wsrmRequiredFaultCode
Method Detail

values

public static final RmVersion[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(RmVersion c : RmVersion.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static RmVersion valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

isRmAction

public boolean isRmAction(java.lang.String wsaAction)
TODO javadoc

Returns:

isRmProtocolRequest

public boolean isRmProtocolRequest(java.lang.String wsaAction)
TODO javadoc

Returns:

isRmProtocolResponse

public boolean isRmProtocolResponse(java.lang.String wsaAction)
TODO javadoc

Returns:

isRmFault

public boolean isRmFault(java.lang.String wsaAction)
TODO javadoc

Returns:

createUnmarshaller

public javax.xml.bind.Unmarshaller createUnmarshaller(com.sun.xml.ws.api.addressing.AddressingVersion av)
                                               throws RxRuntimeException
Creates JAXB Unmarshaller that is able to unmarshall Rm protocol elements for given WS-RM version.

As JAXB unmarshallers are not thread-safe, this method should be used to create a new Unmarshaller instance whenever there is a chance that the same instance might be invoked concurrently from multiple threads. On th other hand, it is prudent to cache or pool Unmarshaller instances if possible as constructing a new Unmarshaller instance is rather expensive.

For additional information see this blog entry.

Returns:
created JAXB unmarshaller
Throws:
RxRuntimeException - in case the creation of unmarshaller failed

getJaxbContext

public com.sun.xml.bind.api.JAXBRIContext getJaxbContext(com.sun.xml.ws.api.addressing.AddressingVersion av)
Returns JAXB context that is intitialized based on a given addressing version.

Parameters:
av - addressing version used to initialize JAXB context
Returns:
JAXB context that is intitialized based on a given addressing version.