|
||||||||||
| 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 String |
ACTION
|
static org.apache.cxf.ws.addressing.ObjectFactory |
WSA_OBJECT_FACTORY
|
| Method Summary | |
|---|---|
static void |
applyReferenceParam(org.apache.cxf.ws.addressing.EndpointReferenceType toEpr,
Object el)
|
static org.apache.cxf.transport.Destination |
createDecoupledDestination(org.apache.cxf.message.Exchange exchange,
org.apache.cxf.ws.addressing.EndpointReferenceType reference)
|
static org.apache.cxf.message.Message |
createMessage(org.apache.cxf.message.Exchange exchange)
Create a Binding specific Message. |
static String |
generateUUID()
|
static 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(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 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(String uri)
Helper method to get a RealtesTo instance. |
static org.apache.cxf.binding.soap.model.SoapOperationInfo |
getSoapOperationInfo(org.apache.cxf.service.model.BindingOperationInfo bindingOpInfo)
|
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 |
isNoneAddress(org.apache.cxf.ws.addressing.EndpointReferenceType ref)
Helper method to determine if an EPR address is none. |
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 String |
retrieveMAPFaultName(org.apache.cxf.message.Message message)
Retrieve MAP fault name from the message. |
static 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(String faultName,
org.apache.cxf.message.Message message)
Store bad MAP fault name in the message. |
static void |
storeMAPFaultReason(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
public static final String ACTION
| 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 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(String uri)
uri - the URI
public static org.apache.cxf.ws.addressing.RelatesToType getRelatesTo(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 isNoneAddress(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 org.apache.cxf.transport.Destination createDecoupledDestination(org.apache.cxf.message.Exchange exchange,
org.apache.cxf.ws.addressing.EndpointReferenceType reference)
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(String faultName,
org.apache.cxf.message.Message message)
faultName - the fault name to storemessage - the current messagepublic static String retrieveMAPFaultName(org.apache.cxf.message.Message message)
message - the current message
public static void storeMAPFaultReason(String reason,
org.apache.cxf.message.Message message)
reason - the fault reason to storemessage - the current messagepublic static 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 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 org.apache.cxf.binding.soap.model.SoapOperationInfo getSoapOperationInfo(org.apache.cxf.service.model.BindingOperationInfo bindingOpInfo)
public static 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,
Object el)
public static org.apache.cxf.message.Message createMessage(org.apache.cxf.message.Exchange exchange)
message - the current message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||