|
||||||||||
| 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(org.apache.cxf.service.model.Extensible ext)
|
static org.apache.cxf.ws.addressing.AttributedURIType |
getAction(org.apache.cxf.message.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 org.apache.cxf.transport.Conduit |
getConduit(org.apache.cxf.transport.Conduit conduit,
org.apache.cxf.message.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(org.apache.cxf.ws.addressing.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(org.apache.cxf.message.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(org.apache.cxf.message.Message message)
Determine if message is outbound. |
static boolean |
isRequestor(org.apache.cxf.message.Message message)
Determine if current messaging role is that of requestor. |
static void |
propogateReceivedMAPs(org.apache.cxf.ws.addressing.AddressingProperties inMAPs,
org.apache.cxf.message.Exchange exchange)
Propogate inbound MAPs onto full reponse & fault messages. |
static void |
rebaseResponse(org.apache.cxf.ws.addressing.EndpointReferenceType reference,
org.apache.cxf.ws.addressing.AddressingProperties inMAPs,
org.apache.cxf.message.Message inMessage)
Rebase response on replyTo |
static boolean |
retrieveAsyncPostResponseDispatch(org.apache.cxf.message.Message message)
Retrieve indication that an async post-response service invocation is required. |
static boolean |
retrieveDeferredUncorrelatedMessageAbort(org.apache.cxf.message.Message message)
Retrieve indication that a deferred uncorrelated message abort should occur. |
static boolean |
retrieveDeferUncorrelatedMessageAbort(org.apache.cxf.message.Message message)
Retrieve indication that a deferred uncorrelated message abort is supported |
static java.lang.String |
retrieveMAPFaultName(org.apache.cxf.message.Message message)
Retrieve MAP fault name from the message. |
static java.lang.String |
retrieveMAPFaultReason(org.apache.cxf.message.Message message)
Retrieve MAP fault reason from the message. |
static AddressingPropertiesImpl |
retrieveMAPs(org.apache.cxf.message.Message message,
boolean isProviderContext,
boolean isOutbound)
|
static AddressingPropertiesImpl |
retrieveMAPs(org.apache.cxf.message.Message message,
boolean isProviderContext,
boolean isOutbound,
boolean warnIfMissing)
|
static boolean |
retrievePartialResponseSent(org.apache.cxf.message.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(org.apache.cxf.message.Message message)
Store indication that a deferred uncorrelated message abort should occur |
static void |
storeDeferUncorrelatedMessageAbort(org.apache.cxf.message.Message message)
Store indication that a deferred uncorrelated message abort is supported |
static void |
storeMAPFaultName(java.lang.String faultName,
org.apache.cxf.message.Message message)
Store bad MAP fault name in the message. |
static void |
storeMAPFaultReason(java.lang.String reason,
org.apache.cxf.message.Message message)
Store MAP fault reason in the message. |
static void |
storeMAPs(org.apache.cxf.ws.addressing.AddressingProperties maps,
org.apache.cxf.message.Message message,
boolean isOutbound)
Store MAPs in the message. |
static void |
storeMAPs(org.apache.cxf.ws.addressing.AddressingProperties maps,
org.apache.cxf.message.Message message,
boolean isOutbound,
boolean isRequestor)
Store MAPs in the message. |
static void |
storeMAPs(org.apache.cxf.ws.addressing.AddressingProperties maps,
org.apache.cxf.message.Message message,
boolean isOutbound,
boolean isRequestor,
boolean isProviderContext)
Store MAPs in the message. |
static void |
storePartialResponseSent(org.apache.cxf.message.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(org.apache.cxf.message.Message message)
message - the current Message
public static boolean isFault(org.apache.cxf.message.Message message)
message - the current Message
public static boolean isRequestor(org.apache.cxf.message.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(org.apache.cxf.ws.addressing.AddressingProperties maps,
org.apache.cxf.message.Message message,
boolean isOutbound)
message - the current messageisOutbound - true if the message is outbound
public static void storeMAPs(org.apache.cxf.ws.addressing.AddressingProperties maps,
org.apache.cxf.message.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 otherwise
public static void storeMAPs(org.apache.cxf.ws.addressing.AddressingProperties maps,
org.apache.cxf.message.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 context
public static AddressingPropertiesImpl retrieveMAPs(org.apache.cxf.message.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(org.apache.cxf.message.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(org.apache.cxf.ws.addressing.AddressingProperties maps)
ref - the MAPs Action under test
public static void rebaseResponse(org.apache.cxf.ws.addressing.EndpointReferenceType reference,
org.apache.cxf.ws.addressing.AddressingProperties inMAPs,
org.apache.cxf.message.Message inMessage)
reference - the replyTo referenceinMAPs - the inbound MAPsinMessage - the current message
public static void propogateReceivedMAPs(org.apache.cxf.ws.addressing.AddressingProperties inMAPs,
org.apache.cxf.message.Exchange exchange)
inMAPs - the inbound MAPsexchange - the current Exchange
public static void storeMAPFaultName(java.lang.String faultName,
org.apache.cxf.message.Message message)
faultName - the fault name to storemessage - the current messagepublic static java.lang.String retrieveMAPFaultName(org.apache.cxf.message.Message message)
message - the current message
public static void storeMAPFaultReason(java.lang.String reason,
org.apache.cxf.message.Message message)
reason - the fault reason to storemessage - the current messagepublic static java.lang.String retrieveMAPFaultReason(org.apache.cxf.message.Message message)
message - the current messagepublic static void storePartialResponseSent(org.apache.cxf.message.Message message)
message - the current messagepublic static boolean retrievePartialResponseSent(org.apache.cxf.message.Message message)
message - the current messagepublic static void storeDeferUncorrelatedMessageAbort(org.apache.cxf.message.Message message)
message - the current messagepublic static boolean retrieveDeferUncorrelatedMessageAbort(org.apache.cxf.message.Message message)
message - the current messagepublic static void storeDeferredUncorrelatedMessageAbort(org.apache.cxf.message.Message message)
message - the current messagepublic static boolean retrieveDeferredUncorrelatedMessageAbort(org.apache.cxf.message.Message message)
message - the current messagepublic static boolean retrieveAsyncPostResponseDispatch(org.apache.cxf.message.Message message)
message - the current message
public 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.JAXBExceptionpublic static java.lang.String generateUUID()
public static org.apache.cxf.transport.Conduit getConduit(org.apache.cxf.transport.Conduit conduit,
org.apache.cxf.message.Message message)
conduit - the current value for the Conduitmessage - the current message
public static org.apache.cxf.ws.addressing.AttributedURIType getAction(org.apache.cxf.message.Message message)
message - the current message
public static java.lang.String getAction(org.apache.cxf.service.model.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 | |||||||||