Apache CXF API

org.apache.cxf.ws.rm
Class VersionTransformer

java.lang.Object
  extended by org.apache.cxf.ws.rm.VersionTransformer

public final class VersionTransformer
extends Object

This class is responsible for transforming between the native WS-ReliableMessaging schema version (currently http://docs.oasis-open.org/ws-rx/wsrm/200702) and exposed version (which may be the 200702 namespace, the http://schemas.xmlsoap.org/ws/2005/02/rm namespace using the old http://schemas.xmlsoap.org/ws/2004/08/addressing WS-Addressing namespace, or 2005/02 namespace with the newer http://www.w3.org/2005/08/addressing WS-Addressing namespace).

The native version is that used throughout the stack, where the WS-RM types are represented via the JAXB generated types.

The exposed version is that used when the WS-RM types are externalized, i.e. are encoded in the headers of outgoing messages. For outgoing requests, the exposed version is determined from configuration. For outgoing responses, the exposed version is determined by the exposed version of the corresponding request.


Method Summary
static AcceptType convert(AcceptType exposed)
          Convert 200502 AcceptType with 200408 WS-Addressing namespace to internal form.
static AcceptType convert(AcceptType exposed)
          Convert 200502 AcceptType with 200508 WS-Addressing namespace to internal form.
static AckRequestedType convert(AckRequestedType exposed)
          Convert 200502 wsrm:SequenceAcknowledgement with 200508 WS-Addressing namespace to internal form.
static AckRequestedType convert(AckRequestedType exposed)
          Convert 200502 wsrm:SequenceAcknowledgement with 200408 WS-Addressing namespace to internal form.
static CreateSequenceResponseType convert(CreateSequenceResponseType exposed)
          Convert 200502 wsrm:CreateSequenceResponseType with 200508 WS-Addressing namespace to internal form.
static CreateSequenceResponseType convert(CreateSequenceResponseType exposed)
          Convert 200502 wsrm:CreateSequenceResponseType with 200408 WS-Addressing namespace to internal form.
static CreateSequenceType convert(CreateSequenceType exposed)
          Convert 200502 wsrm:CreateSequenceType with 200508 WS-Addressing namespace to internal form.
static CreateSequenceType convert(CreateSequenceType exposed)
          Convert 200502 wsrm:CreateSequenceType with 200408 WS-Addressing namespace to internal form.
static Expires convert(Expires exposed)
          Convert 200502 Expires with 200408 WS-Addressing namespace to internal form.
static Expires convert(Expires exposed)
          Convert 200502 Expires with 200508 WS-Addressing namespace to internal form.
static Identifier convert(Identifier exposed)
          Convert 200502 wsrm:Identifier with 200508 WS-Addressing namespace to internal form.
static Identifier convert(Identifier exposed)
          Convert 200502 wsrm:Identifier with 200408 WS-Addressing namespace to internal form.
static OfferType convert(OfferType exposed)
          Convert 200502 OfferType with 200408 WS-Addressing namespace to internal form.
static OfferType convert(OfferType exposed)
          Convert 200502 Expires with 200508 WS-Addressing namespace to internal form.
static SequenceAcknowledgement convert(SequenceAcknowledgement exposed)
          Convert 200502 wsrm:SequenceAcknowledgement with 200508 WS-Addressing namespace to internal form.
static SequenceAcknowledgement convert(SequenceAcknowledgement exposed)
          Convert 200502 wsrm:SequenceAcknowledgement with 200408 WS-Addressing namespace to internal form.
static SequenceType convert(SequenceType exposed)
          Convert 200502 wsrm:SequenceType with 200408 WS-Addressing namespace to internal form.
static SequenceType convert(SequenceType exposed)
          Convert 200502 wsrm:SequenceType with 200508 WS-Addressing namespace to internal form.
static TerminateSequenceType convert(TerminateSequenceType exposed)
          Convert 200502 TerminateSequenceType with 200508 WS-Addressing namespace to internal form.
static TerminateSequenceType convert(TerminateSequenceType exposed)
          Convert 200502 TerminateSequenceType with 200408 WS-Addressing namespace to internal form.
static AckRequestedType convert200502(AckRequestedType internal)
          Convert wsrm:SequenceAcknowledgement to 200502 version with 200408 WS-Addressing namespace.
static CreateSequenceResponseType convert200502(CreateSequenceResponseType internal)
          Convert wsrm:CreateSequenceResponseType to 200502 version with 200408 WS-Addressing namespace.
static CreateSequenceType convert200502(CreateSequenceType internal)
          Convert CreateSequenceType to 200502 version with 200408 WS-Addressing namespace.
static Identifier convert200502(Identifier internal)
          Convert wsrm:Identifier to 200502 version with 200408 WS-Addressing namespace.
static SequenceAcknowledgement convert200502(SequenceAcknowledgement internal)
          Convert wsrm:SequenceAcknowledgement to 200502 version with 200408 WS-Addressing namespace.
static SequenceType convert200502(SequenceType internal)
          Convert wsrm:SequenceType to 200502 version with 200408 WS-Addressing namespace.
static TerminateSequenceType convert200502(TerminateSequenceType internal)
          Convert TerminateSequenceType to 200502 version with 200408 WS-Addressing namespace.
static AckRequestedType convert200502wsa15(AckRequestedType internal)
          Convert wsrm:SequenceAcknowledgement to 200502 version with 200508 WS-Addressing namespace.
static CreateSequenceResponseType convert200502wsa15(CreateSequenceResponseType internal)
          Convert wsrm:CreateSequenceResponseType to 200502 version with 200508 WS-Addressing namespace.
static CreateSequenceType convert200502wsa15(CreateSequenceType internal)
          Convert CreateSequenceType to 200502 version with 200508 WS-Addressing namespace.
static Identifier convert200502wsa15(Identifier internal)
          Convert wsrm:Identifier to 200502 version with 200508 WS-Addressing namespace.
static SequenceAcknowledgement convert200502wsa15(SequenceAcknowledgement internal)
          Convert wsrm:SequenceAcknowledgement to 200502 version with 200508 WS-Addressing namespace.
static SequenceType convert200502wsa15(SequenceType internal)
          Convert wsrm:SequenceType to 200502 version with 200508 WS-Addressing namespace.
static TerminateSequenceType convert200502wsa15(TerminateSequenceType internal)
          Convert TerminateSequenceType to 200502 version with 200508 WS-Addressing namespace.
static boolean isSupported(String uri)
          Check if a namespace URI represents a supported version of WS-ReliableMessaging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isSupported

public static boolean isSupported(String uri)
Check if a namespace URI represents a supported version of WS-ReliableMessaging.

Parameters:
uri -
Returns:
true if supported, false if not

convert200502wsa15

public static CreateSequenceType convert200502wsa15(CreateSequenceType internal)
Convert CreateSequenceType to 200502 version with 200508 WS-Addressing namespace.

Parameters:
internal - (non-null)
Returns:
converted

convert200502

public static CreateSequenceType convert200502(CreateSequenceType internal)
Convert CreateSequenceType to 200502 version with 200408 WS-Addressing namespace.

Parameters:
internal - (non-null)
Returns:
converted

convert200502wsa15

public static Identifier convert200502wsa15(Identifier internal)
Convert wsrm:Identifier to 200502 version with 200508 WS-Addressing namespace.

Parameters:
internal - (may be null)
Returns:
converted (null if internal is null)

convert200502

public static Identifier convert200502(Identifier internal)
Convert wsrm:Identifier to 200502 version with 200408 WS-Addressing namespace.

Parameters:
internal - (may be null)
Returns:
converted (null if internal is null)

convert

public static Identifier convert(Identifier exposed)
Convert 200502 wsrm:Identifier with 200508 WS-Addressing namespace to internal form.

Parameters:
exposed - (may be null)
Returns:
converted (null if exposed is null)

convert

public static Identifier convert(Identifier exposed)
Convert 200502 wsrm:Identifier with 200408 WS-Addressing namespace to internal form.

Parameters:
exposed - (may be null)
Returns:
converted (null if exposed is null)

convert

public static CreateSequenceType convert(CreateSequenceType exposed)
Convert 200502 wsrm:CreateSequenceType with 200508 WS-Addressing namespace to internal form.

Parameters:
exposed - (may be null)
Returns:
converted (null if exposed is null)

convert

public static CreateSequenceType convert(CreateSequenceType exposed)
Convert 200502 wsrm:CreateSequenceType with 200408 WS-Addressing namespace to internal form.

Parameters:
exposed - (may be null)
Returns:
converted (null if exposed is null)

convert

public static CreateSequenceResponseType convert(CreateSequenceResponseType exposed)
Convert 200502 wsrm:CreateSequenceResponseType with 200508 WS-Addressing namespace to internal form.

Parameters:
exposed - (may be null)
Returns:
converted (null if exposed is null)

convert

public static CreateSequenceResponseType convert(CreateSequenceResponseType exposed)
Convert 200502 wsrm:CreateSequenceResponseType with 200408 WS-Addressing namespace to internal form.

Parameters:
exposed - (may be null)
Returns:
converted (null if exposed is null)

convert200502wsa15

public static CreateSequenceResponseType convert200502wsa15(CreateSequenceResponseType internal)
Convert wsrm:CreateSequenceResponseType to 200502 version with 200508 WS-Addressing namespace.

Parameters:
internal - (non-null)
Returns:
converted

convert200502

public static CreateSequenceResponseType convert200502(CreateSequenceResponseType internal)
Convert wsrm:CreateSequenceResponseType to 200502 version with 200408 WS-Addressing namespace.

Parameters:
internal - (non-null)
Returns:
converted

convert200502wsa15

public static SequenceType convert200502wsa15(SequenceType internal)
Convert wsrm:SequenceType to 200502 version with 200508 WS-Addressing namespace.

Parameters:
internal - (non-null)
Returns:
converted

convert

public static SequenceType convert(SequenceType exposed)
Convert 200502 wsrm:SequenceType with 200408 WS-Addressing namespace to internal form.

Parameters:
exposed - (non-null)
Returns:
converted

convert

public static SequenceType convert(SequenceType exposed)
Convert 200502 wsrm:SequenceType with 200508 WS-Addressing namespace to internal form.

Parameters:
exposed - (non-null)
Returns:
converted

convert

public static Expires convert(Expires exposed)
Convert 200502 Expires with 200408 WS-Addressing namespace to internal form.

Parameters:
exposed - (may be null)
Returns:
converted (null if internal is null)

convert

public static Expires convert(Expires exposed)
Convert 200502 Expires with 200508 WS-Addressing namespace to internal form.

Parameters:
exposed - (may be null)
Returns:
converted (null if internal is null)

convert

public static AcceptType convert(AcceptType exposed)
Convert 200502 AcceptType with 200408 WS-Addressing namespace to internal form.

Parameters:
exposed - (may be null)
Returns:
converted (null if internal is null)

convert

public static AcceptType convert(AcceptType exposed)
Convert 200502 AcceptType with 200508 WS-Addressing namespace to internal form.

Parameters:
exposed - (may be null)
Returns:
converted (null if internal is null)

convert

public static OfferType convert(OfferType exposed)
Convert 200502 OfferType with 200408 WS-Addressing namespace to internal form.

Parameters:
exposed - (may be null)
Returns:
converted (null if internal is null)

convert

public static OfferType convert(OfferType exposed)
Convert 200502 Expires with 200508 WS-Addressing namespace to internal form.

Parameters:
exposed - (may be null)
Returns:
converted (null if internal is null)

convert200502

public static SequenceType convert200502(SequenceType internal)
Convert wsrm:SequenceType to 200502 version with 200408 WS-Addressing namespace.

Parameters:
internal - (non-null)
Returns:
converted

convert200502

public static TerminateSequenceType convert200502(TerminateSequenceType internal)
Convert TerminateSequenceType to 200502 version with 200408 WS-Addressing namespace.

Parameters:
internal - (non-null)
Returns:
converted

convert200502wsa15

public static TerminateSequenceType convert200502wsa15(TerminateSequenceType internal)
Convert TerminateSequenceType to 200502 version with 200508 WS-Addressing namespace.

Parameters:
internal - (non-null)
Returns:
converted

convert200502wsa15

public static SequenceAcknowledgement convert200502wsa15(SequenceAcknowledgement internal)
Convert wsrm:SequenceAcknowledgement to 200502 version with 200508 WS-Addressing namespace.

Parameters:
internal - (non-null)
Returns:
converted

convert200502

public static SequenceAcknowledgement convert200502(SequenceAcknowledgement internal)
Convert wsrm:SequenceAcknowledgement to 200502 version with 200408 WS-Addressing namespace.

Parameters:
internal - (non-null)
Returns:
converted

convert

public static SequenceAcknowledgement convert(SequenceAcknowledgement exposed)
Convert 200502 wsrm:SequenceAcknowledgement with 200508 WS-Addressing namespace to internal form.

Parameters:
exposed - (non-null)
Returns:
converted

convert

public static SequenceAcknowledgement convert(SequenceAcknowledgement exposed)
Convert 200502 wsrm:SequenceAcknowledgement with 200408 WS-Addressing namespace to internal form.

Parameters:
exposed - (non-null)
Returns:
converted

convert200502wsa15

public static AckRequestedType convert200502wsa15(AckRequestedType internal)
Convert wsrm:SequenceAcknowledgement to 200502 version with 200508 WS-Addressing namespace.

Parameters:
internal - (non-null)
Returns:
converted

convert200502

public static AckRequestedType convert200502(AckRequestedType internal)
Convert wsrm:SequenceAcknowledgement to 200502 version with 200408 WS-Addressing namespace.

Parameters:
internal - (non-null)
Returns:
converted

convert

public static AckRequestedType convert(AckRequestedType exposed)
Convert 200502 wsrm:SequenceAcknowledgement with 200508 WS-Addressing namespace to internal form.

Parameters:
exposed - (non-null)
Returns:
converted

convert

public static AckRequestedType convert(AckRequestedType exposed)
Convert 200502 wsrm:SequenceAcknowledgement with 200408 WS-Addressing namespace to internal form.

Parameters:
exposed - (non-null)
Returns:
converted

convert

public static TerminateSequenceType convert(TerminateSequenceType exposed)
Convert 200502 TerminateSequenceType with 200508 WS-Addressing namespace to internal form.

Parameters:
exposed - (non-null)
Returns:
converted

convert

public static TerminateSequenceType convert(TerminateSequenceType exposed)
Convert 200502 TerminateSequenceType with 200408 WS-Addressing namespace to internal form.

Parameters:
exposed - (non-null)
Returns:
converted

Apache CXF API

Apache CXF