|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 java.lang.String |
NATIVE_VERSION
|
Constructor Summary | |
---|---|
VersionTransformer()
Constructor. |
Method Summary | |
---|---|
static org.apache.cxf.ws.addressing.AttributedURIType |
convert(org.apache.cxf.ws.addressing.v200408.AttributedURI exposed)
Convert from 2004/08 AttributedURI to 2005/08 AttributedURI. |
static org.apache.cxf.ws.addressing.AttributedURIType |
convert(org.apache.cxf.ws.addressing.v200403.AttributedURI exposed)
Convert from 2004/03 AttributedURI to 2005/08 AttributedURI. |
static org.apache.cxf.ws.addressing.v200408.AttributedURI |
convert(org.apache.cxf.ws.addressing.AttributedURIType internal)
Convert from 2005/08 AttributedURI to 2004/08 AttributedURI. |
static org.apache.cxf.ws.addressing.v200408.EndpointReferenceType |
convert(org.apache.cxf.ws.addressing.EndpointReferenceType internal)
Convert from 2005/08 EndpointReferenceType to 2004/08 EndpointReferenceType. |
static org.apache.cxf.ws.addressing.EndpointReferenceType |
convert(org.apache.cxf.ws.addressing.v200408.EndpointReferenceType exposed)
Convert from 2004/08 EndpointReferenceType to 2005/08 EndpointReferenceType. |
static org.apache.cxf.ws.addressing.EndpointReferenceType |
convert(org.apache.cxf.ws.addressing.v200403.EndpointReferenceType exposed)
Convert from 2004/03 EndpointReferenceType to 2005/08 EndpointReferenceType. |
static org.apache.cxf.ws.addressing.v200408.ReferenceParametersType |
convert(org.apache.cxf.ws.addressing.ReferenceParametersType internal)
Convert from 2005/08 ReferenceParametersType to 2004/08 ReferenceParametersType. |
static org.apache.cxf.ws.addressing.ReferenceParametersType |
convert(org.apache.cxf.ws.addressing.v200408.ReferenceParametersType exposed)
Convert from 2004/08 ReferenceParametersType to 2005/08 ReferenceParametersType. |
static org.apache.cxf.ws.addressing.v200408.Relationship |
convert(org.apache.cxf.ws.addressing.RelatesToType internal)
Convert from 2005/08 RelatesToType to 2004/08 Relationship. |
static org.apache.cxf.ws.addressing.RelatesToType |
convert(org.apache.cxf.ws.addressing.v200408.Relationship exposed)
Convert from 2004/08 Relationship to 2005/08 RelatesToType. |
static org.apache.cxf.ws.addressing.RelatesToType |
convert(org.apache.cxf.ws.addressing.v200403.Relationship exposed)
Convert from 2004/03 Relationship to 2005/08 RelatesToType. |
static org.apache.cxf.ws.addressing.v200403.AttributedURI |
convertTo200403(org.apache.cxf.ws.addressing.AttributedURIType internal)
Convert from 2005/08 AttributedURI to 2004/03 AttributedURI. |
static org.apache.cxf.ws.addressing.v200403.EndpointReferenceType |
convertTo200403(org.apache.cxf.ws.addressing.EndpointReferenceType internal)
Convert from 2005/08 EndpointReferenceType to 2004/03 EndpointReferenceType. |
static org.apache.cxf.ws.addressing.v200403.Relationship |
convertTo200403(org.apache.cxf.ws.addressing.RelatesToType internal)
Convert from 2005/08 RelatesToType to 2004/03 Relationship. |
static org.apache.cxf.ws.addressing.EndpointReferenceType |
convertToInternal(javax.xml.ws.EndpointReference external)
Convert from EndpointReference to CXF internal 2005/08 EndpointReferenceType |
static javax.xml.bind.JAXBContext |
getExposedJAXBContext(java.lang.String exposedURI)
|
boolean |
isSupported(java.lang.String namespace)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String NATIVE_VERSION
Constructor Detail |
---|
public VersionTransformer()
Method Detail |
---|
public boolean isSupported(java.lang.String namespace)
namespace
- a namspace URI to consider
public static org.apache.cxf.ws.addressing.v200408.AttributedURI convert(org.apache.cxf.ws.addressing.AttributedURIType internal)
internal
- the 2005/08 AttributedURIType
public static org.apache.cxf.ws.addressing.v200403.AttributedURI convertTo200403(org.apache.cxf.ws.addressing.AttributedURIType internal)
internal
- the 2005/08 AttributedURIType
public static org.apache.cxf.ws.addressing.AttributedURIType convert(org.apache.cxf.ws.addressing.v200408.AttributedURI exposed)
exposed
- the 2004/08 AttributedURI
public static org.apache.cxf.ws.addressing.AttributedURIType convert(org.apache.cxf.ws.addressing.v200403.AttributedURI exposed)
exposed
- the 2004/03 AttributedURI
public static org.apache.cxf.ws.addressing.v200408.EndpointReferenceType convert(org.apache.cxf.ws.addressing.EndpointReferenceType internal)
internal
- the 2005/08 EndpointReferenceType
public static org.apache.cxf.ws.addressing.v200403.EndpointReferenceType convertTo200403(org.apache.cxf.ws.addressing.EndpointReferenceType internal)
internal
- the 2005/08 EndpointReferenceType
public static org.apache.cxf.ws.addressing.EndpointReferenceType convert(org.apache.cxf.ws.addressing.v200408.EndpointReferenceType exposed)
exposed
- the 2004/08 EndpointReferenceType
public static org.apache.cxf.ws.addressing.EndpointReferenceType convert(org.apache.cxf.ws.addressing.v200403.EndpointReferenceType exposed)
exposed
- the 2004/03 EndpointReferenceType
public static org.apache.cxf.ws.addressing.EndpointReferenceType convertToInternal(javax.xml.ws.EndpointReference external)
external
- the javax.xml.ws.EndpointReference
public static org.apache.cxf.ws.addressing.v200408.ReferenceParametersType convert(org.apache.cxf.ws.addressing.ReferenceParametersType internal)
internal
- the 2005/08 ReferenceParametersType
public static org.apache.cxf.ws.addressing.ReferenceParametersType convert(org.apache.cxf.ws.addressing.v200408.ReferenceParametersType exposed)
exposed
- the 2004/08 ReferenceParametersType
public static org.apache.cxf.ws.addressing.v200408.Relationship convert(org.apache.cxf.ws.addressing.RelatesToType internal)
internal
- the 2005/08 RelatesToType
public static org.apache.cxf.ws.addressing.v200403.Relationship convertTo200403(org.apache.cxf.ws.addressing.RelatesToType internal)
internal
- the 2005/08 RelatesToType
public static org.apache.cxf.ws.addressing.RelatesToType convert(org.apache.cxf.ws.addressing.v200408.Relationship exposed)
exposed
- the 2004/08 Relationship
public static org.apache.cxf.ws.addressing.RelatesToType convert(org.apache.cxf.ws.addressing.v200403.Relationship exposed)
exposed
- the 2004/03 Relationship
public static javax.xml.bind.JAXBContext getExposedJAXBContext(java.lang.String exposedURI) throws javax.xml.bind.JAXBException
exposedURI
- specifies the version WS-Addressing
javax.xml.bind.JAXBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |