|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cxf.ws.addressing.ContextUtils
public final class ContextUtils
Holder for utility methods relating to contexts.
Field Summary | |
---|---|
static org.apache.cxf.ws.addressing.ObjectFactory |
WSA_OBJECT_FACTORY
|
Method Summary | |
---|---|
static void |
applyReferenceParam(org.apache.cxf.ws.addressing.EndpointReferenceType toEpr,
javax.xml.bind.JAXBElement<java.lang.String> el)
|
static java.lang.String |
generateUUID()
|
static java.lang.String |
getAction(Extensible ext)
|
static org.apache.cxf.ws.addressing.AttributedURIType |
getAction(Message message)
Construct the Action URI. |
static org.apache.cxf.ws.addressing.AttributedURIType |
getAttributedURI(java.lang.String uri)
Helper method to get an attributed URI. |
static Conduit |
getConduit(Conduit conduit,
Message message)
Retreive Conduit from Exchange if not already available |
static javax.xml.bind.JAXBContext |
getJAXBContext()
Retrieve a JAXBContext for marshalling and unmarshalling JAXB generated types. |
static java.lang.String |
getMAPProperty(boolean isRequestor,
boolean isProviderContext,
boolean isOutbound)
Get appropriate property name for message addressing properties. |
static org.apache.cxf.ws.addressing.EndpointReferenceType |
getNoneEndpointReference()
|
static org.apache.cxf.ws.addressing.RelatesToType |
getRelatesTo(java.lang.String uri)
Helper method to get a RealtesTo instance. |
static boolean |
hasEmptyAction(AddressingProperties maps)
Helper method to determine if an MAPs Action is empty (a null action is considered empty, whereas a zero length action suppresses the propagation of the Action property). |
static boolean |
isFault(Message message)
Determine if message is fault. |
static boolean |
isGenericAddress(org.apache.cxf.ws.addressing.EndpointReferenceType ref)
Helper method to determine if an EPR address is generic (either null, none or anonymous). |
static boolean |
isOutbound(Message message)
Determine if message is outbound. |
static boolean |
isRequestor(Message message)
Determine if current messaging role is that of requestor. |
static void |
propogateReceivedMAPs(AddressingProperties inMAPs,
Exchange exchange)
Propogate inbound MAPs onto full reponse & fault messages. |
static void |
rebaseResponse(org.apache.cxf.ws.addressing.EndpointReferenceType reference,
AddressingProperties inMAPs,
Message inMessage)
Rebase response on replyTo |
static boolean |
retrieveAsyncPostResponseDispatch(Message message)
Retrieve indication that an async post-response service invocation is required. |
static boolean |
retrieveDeferredUncorrelatedMessageAbort(Message message)
Retrieve indication that a deferred uncorrelated message abort should occur. |
static boolean |
retrieveDeferUncorrelatedMessageAbort(Message message)
Retrieve indication that a deferred uncorrelated message abort is supported |
static java.lang.String |
retrieveMAPFaultName(Message message)
Retrieve MAP fault name from the message. |
static java.lang.String |
retrieveMAPFaultReason(Message message)
Retrieve MAP fault reason from the message. |
static AddressingPropertiesImpl |
retrieveMAPs(Message message,
boolean isProviderContext,
boolean isOutbound)
|
static AddressingPropertiesImpl |
retrieveMAPs(Message message,
boolean isProviderContext,
boolean isOutbound,
boolean warnIfMissing)
|
static boolean |
retrievePartialResponseSent(Message message)
Retrieve indication that a partial response has been sent. |
static void |
setJAXBContext(javax.xml.bind.JAXBContext ctx)
Set the encapsulated JAXBContext (used by unit tests). |
static void |
storeDeferredUncorrelatedMessageAbort(Message message)
Store indication that a deferred uncorrelated message abort should occur |
static void |
storeDeferUncorrelatedMessageAbort(Message message)
Store indication that a deferred uncorrelated message abort is supported |
static void |
storeMAPFaultName(java.lang.String faultName,
Message message)
Store bad MAP fault name in the message. |
static void |
storeMAPFaultReason(java.lang.String reason,
Message message)
Store MAP fault reason in the message. |
static void |
storeMAPs(AddressingProperties maps,
Message message,
boolean isOutbound)
Store MAPs in the message. |
static void |
storeMAPs(AddressingProperties maps,
Message message,
boolean isOutbound,
boolean isRequestor)
Store MAPs in the message. |
static void |
storeMAPs(AddressingProperties maps,
Message message,
boolean isOutbound,
boolean isRequestor,
boolean isProviderContext)
Store MAPs in the message. |
static void |
storePartialResponseSent(Message message)
Store an indication that a partial response has been sent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.cxf.ws.addressing.ObjectFactory WSA_OBJECT_FACTORY
Method Detail |
---|
public static boolean isOutbound(Message message)
message
- the current Message
public static boolean isFault(Message message)
message
- the current Message
public static boolean isRequestor(Message message)
message
- the current Message
public static java.lang.String getMAPProperty(boolean isRequestor, boolean isProviderContext, boolean isOutbound)
isProviderContext
- true if the binding provider request context
available to the client application as opposed to the message context
visible to handlersisRequestor
- true if the current messaging role is that of
requestorisOutbound
- true if the message is outbound
public static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound)
message
- the current messageisOutbound
- true if the message is outboundpublic static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound, boolean isRequestor)
maps
- the MAPs to storemessage
- the current messageisOutbound
- true if the message is outboundisRequestor
- true if the current messaging role is that of
requestorhandler
- true if HANDLER scope, APPLICATION scope otherwisepublic static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound, boolean isRequestor, boolean isProviderContext)
maps
- the MAPs to storemessage
- the current messageisOutbound
- true if the message is outboundisRequestor
- true if the current messaging role is that of
requestorhandler
- true if HANDLER scope, APPLICATION scope otherwiseisProviderContext
- true if the binding provider request contextpublic static AddressingPropertiesImpl retrieveMAPs(Message message, boolean isProviderContext, boolean isOutbound)
message
- the current messageisProviderContext
- true if the binding provider request context
available to the client application as opposed to the message context
visible to handlersisOutbound
- true if the message is outbound
public static AddressingPropertiesImpl retrieveMAPs(Message message, boolean isProviderContext, boolean isOutbound, boolean warnIfMissing)
message
- the current messageisProviderContext
- true if the binding provider request context
available to the client application as opposed to the message context
visible to handlersisOutbound
- true if the message is outboundwarnIfMissing
- log a warning message if properties cannot be retrieved
public static org.apache.cxf.ws.addressing.AttributedURIType getAttributedURI(java.lang.String uri)
uri
- the URI
public static org.apache.cxf.ws.addressing.RelatesToType getRelatesTo(java.lang.String uri)
uri
- the related URI
public static boolean isGenericAddress(org.apache.cxf.ws.addressing.EndpointReferenceType ref)
ref
- the EPR under test
public static boolean hasEmptyAction(AddressingProperties maps)
ref
- the MAPs Action under test
public static void rebaseResponse(org.apache.cxf.ws.addressing.EndpointReferenceType reference, AddressingProperties inMAPs, Message inMessage)
reference
- the replyTo referenceinMAPs
- the inbound MAPsinMessage
- the current messagepublic static void propogateReceivedMAPs(AddressingProperties inMAPs, Exchange exchange)
inMAPs
- the inbound MAPsexchange
- the current Exchangepublic static void storeMAPFaultName(java.lang.String faultName, Message message)
faultName
- the fault name to storemessage
- the current messagepublic static java.lang.String retrieveMAPFaultName(Message message)
message
- the current messagepublic static void storeMAPFaultReason(java.lang.String reason, Message message)
reason
- the fault reason to storemessage
- the current messagepublic static java.lang.String retrieveMAPFaultReason(Message message)
message
- the current messagepublic static void storePartialResponseSent(Message message)
message
- the current messagepublic static boolean retrievePartialResponseSent(Message message)
message
- the current messagepublic static void storeDeferUncorrelatedMessageAbort(Message message)
message
- the current messagepublic static boolean retrieveDeferUncorrelatedMessageAbort(Message message)
message
- the current messagepublic static void storeDeferredUncorrelatedMessageAbort(Message message)
message
- the current messagepublic static boolean retrieveDeferredUncorrelatedMessageAbort(Message message)
message
- the current messagepublic static boolean retrieveAsyncPostResponseDispatch(Message message)
message
- the current messagepublic static javax.xml.bind.JAXBContext getJAXBContext() throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public static void setJAXBContext(javax.xml.bind.JAXBContext ctx) throws javax.xml.bind.JAXBException
ctx
- JAXBContext
javax.xml.bind.JAXBException
public static java.lang.String generateUUID()
public static Conduit getConduit(Conduit conduit, Message message)
conduit
- the current value for the Conduitmessage
- the current message
public static org.apache.cxf.ws.addressing.AttributedURIType getAction(Message message)
message
- the current message
public static java.lang.String getAction(Extensible ext)
public static org.apache.cxf.ws.addressing.EndpointReferenceType getNoneEndpointReference()
public static void applyReferenceParam(org.apache.cxf.ws.addressing.EndpointReferenceType toEpr, javax.xml.bind.JAXBElement<java.lang.String> el)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |