- All Implemented Interfaces:
Serializable,Comparable<RmRuntimeVersion>
- See Also:
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis value represents the outdated and obsolete WS-ReliableMessaging v1.0 protocol.This value represents the version of WS-ReliableMessaging protocol standardized by OASIS organization. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionjakarta.xml.bind.UnmarshallercreateUnmarshaller(com.sun.xml.ws.api.addressing.AddressingVersion av) Creates JAXBUnmarshallerthat is able to unmarshall protocol elements for given WS-RM version.static RmRuntimeVersionforProtocolVersion(RmProtocolVersion protocolVersion) static RmRuntimeVersionProvides a default reliable messaging version value.org.glassfish.jaxb.runtime.api.JAXBRIContextgetJaxbContext(com.sun.xml.ws.api.addressing.AddressingVersion av) Returns JAXB context that is intitialized based on a given addressing version.toString()static RmRuntimeVersionReturns the enum constant of this type with the specified name.static RmRuntimeVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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:
-
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:
-
-
Field Details
-
protocolVersion
General constants
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forProtocolVersion
-
getDefault
Provides a default reliable messaging version value.- Returns:
- a default reliable messaging version value. Currently returns
WSRM200702. - See Also:
-
createUnmarshaller
public jakarta.xml.bind.Unmarshaller createUnmarshaller(com.sun.xml.ws.api.addressing.AddressingVersion av) throws RxRuntimeException Creates JAXBUnmarshallerthat is able to unmarshall protocol elements for given WS-RM version.As JAXB unmarshallers are not thread-safe, this method should be used to create a new
Unmarshallerinstance 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 poolUnmarshallerinstances if possible as constructing a newUnmarshallerinstance 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 org.glassfish.jaxb.runtime.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.
-
toString
- Overrides:
toStringin classEnum<RmRuntimeVersion>
-