|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.ws.addressing.VersionTransformer
public class VersionTransformer
This class is responsible for transforming between the native WS-Addressing schema version (i.e. 2005/08) and exposed version (currently may be 2005/08 or 2004/08).
The native version is that used throughout the stack, were the WS-A types are represented via the JAXB generated types for the 2005/08 schema.
The exposed version is that used when the WS-A 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.
The motivation for using different native and exposed types is usually to facilitate a WS-* standard based on an earlier version of WS-Adressing (for example WS-RM depends on the 2004/08 version).
Nested Class Summary | |
---|---|
static class |
VersionTransformer.Names200403
Holder for 2004/03 Names |
static class |
VersionTransformer.Names200408
Holder for 2004/08 Names |
Field Summary | |
---|---|
protected static String |
NATIVE_VERSION
|
Constructor Summary | |
---|---|
protected |
VersionTransformer()
Constructor. |
Method Summary | |
---|---|
static AttributedURIType |
convert(AttributedURI exposed)
Convert from 2004/08 AttributedURI to 2005/08 AttributedURI. |
static AttributedURIType |
convert(AttributedURI exposed)
Convert from 2004/03 AttributedURI to 2005/08 AttributedURI. |
static AttributedURI |
convert(AttributedURIType internal)
Convert from 2005/08 AttributedURI to 2004/08 AttributedURI. |
static EndpointReferenceType |
convert(EndpointReferenceType internal)
Convert from 2005/08 EndpointReferenceType to 2004/08 EndpointReferenceType. |
static EndpointReferenceType |
convert(EndpointReferenceType exposed)
Convert from 2004/08 EndpointReferenceType to 2005/08 EndpointReferenceType. |
static EndpointReferenceType |
convert(EndpointReferenceType exposed)
Convert from 2004/03 EndpointReferenceType to 2005/08 EndpointReferenceType. |
static ReferenceParametersType |
convert(ReferenceParametersType internal)
Convert from 2005/08 ReferenceParametersType to 2004/08 ReferenceParametersType. |
static ReferenceParametersType |
convert(ReferenceParametersType exposed)
Convert from 2004/08 ReferenceParametersType to 2005/08 ReferenceParametersType. |
static Relationship |
convert(RelatesToType internal)
Convert from 2005/08 RelatesToType to 2004/08 Relationship. |
static RelatesToType |
convert(Relationship exposed)
Convert from 2004/08 Relationship to 2005/08 RelatesToType. |
static RelatesToType |
convert(Relationship exposed)
Convert from 2004/03 Relationship to 2005/08 RelatesToType. |
static AttributedURI |
convertTo200403(AttributedURIType internal)
Convert from 2005/08 AttributedURI to 2004/03 AttributedURI. |
static EndpointReferenceType |
convertTo200403(EndpointReferenceType internal)
Convert from 2005/08 EndpointReferenceType to 2004/03 EndpointReferenceType. |
static Relationship |
convertTo200403(RelatesToType internal)
Convert from 2005/08 RelatesToType to 2004/03 Relationship. |
static EndpointReferenceType |
convertToNative(Object exposed)
Converts a version specific EndpointReferenceType to the native version used internally by CXF |
static JAXBContext |
getExposedJAXBContext(String exposedURI)
|
static Class<?> |
getExposedReferenceType(String exposedURI)
Gets the Class representing the EndpointReferenceType that is used for the specific WS-Addressing version |
static boolean |
isSupported(String namespace)
|
static EndpointReferenceType |
parseEndpointReference(Element ref)
Parse an EndpointReferenceType from a DOM element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String NATIVE_VERSION
Constructor Detail |
---|
protected VersionTransformer()
Method Detail |
---|
public static boolean isSupported(String namespace)
namespace
- a namspace URI to consider
public static AttributedURI convert(AttributedURIType internal)
internal
- the 2005/08 AttributedURIType
public static AttributedURI convertTo200403(AttributedURIType internal)
internal
- the 2005/08 AttributedURIType
public static AttributedURIType convert(AttributedURI exposed)
exposed
- the 2004/08 AttributedURI
public static AttributedURIType convert(AttributedURI exposed)
exposed
- the 2004/03 AttributedURI
public static EndpointReferenceType convert(EndpointReferenceType internal)
internal
- the 2005/08 EndpointReferenceType
public static EndpointReferenceType convertTo200403(EndpointReferenceType internal)
internal
- the 2005/08 EndpointReferenceType
public static EndpointReferenceType convert(EndpointReferenceType exposed)
exposed
- the 2004/08 EndpointReferenceType
public static EndpointReferenceType convert(EndpointReferenceType exposed)
exposed
- the 2004/03 EndpointReferenceType
public static ReferenceParametersType convert(ReferenceParametersType internal)
internal
- the 2005/08 ReferenceParametersType
public static ReferenceParametersType convert(ReferenceParametersType exposed)
exposed
- the 2004/08 ReferenceParametersType
public static Relationship convert(RelatesToType internal)
internal
- the 2005/08 RelatesToType
public static Relationship convertTo200403(RelatesToType internal)
internal
- the 2005/08 RelatesToType
public static RelatesToType convert(Relationship exposed)
exposed
- the 2004/08 Relationship
public static RelatesToType convert(Relationship exposed)
exposed
- the 2004/03 Relationship
public static EndpointReferenceType parseEndpointReference(Element ref) throws JAXBException
ref
-
JAXBException
public static EndpointReferenceType convertToNative(Object exposed)
exposed
- public static Class<?> getExposedReferenceType(String exposedURI)
exposedURI
- public static JAXBContext getExposedJAXBContext(String exposedURI) throws JAXBException
exposedURI
- specifies the version WS-Addressing
JAXBException
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |