| java.lang.Object org.apache.cxf.ws.addressing.ContextUtils
ContextUtils | final public class ContextUtils (Code) | | Holder for utility methods relating to contexts.
|
Method Summary | |
public static void | applyReferenceParam(EndpointReferenceType toEpr, JAXBElement<String> el) | public static String | generateUUID() | public static AttributedURIType | getAction(Message message) Construct the Action URI. | public static AttributedURIType | getAttributedURI(String uri) Helper method to get an attributed URI. | public static Conduit | getConduit(Conduit conduit, Message message) | public static JAXBContext | getJAXBContext() Retrieve a JAXBContext for marshalling and unmarshalling JAXB generated
types. | public static String | getMAPProperty(boolean isRequestor, boolean isProviderContext, boolean isOutbound) Get appropriate property name for message addressing properties. | public static EndpointReferenceType | getNoneEndpointReference() | public static RelatesToType | getRelatesTo(String uri) Helper method to get a RealtesTo instance. | public 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 propogation of the Action property). | public static boolean | isFault(Message message) Determine if message is fault. | public static boolean | isGenericAddress(EndpointReferenceType ref) Helper method to determine if an EPR address is generic (either null,
none or anonymous). | public static boolean | isOutbound(Message message) Determine if message is outbound. | public static boolean | isRequestor(Message message) Determine if current messaging role is that of requestor. | public static void | propogateReceivedMAPs(AddressingProperties inMAPs, Exchange exchange) Propogate inbound MAPs onto full reponse & fault messages. | public static void | rebaseResponse(EndpointReferenceType reference, AddressingProperties inMAPs, Message inMessage) | public static boolean | retrieveAsyncPostResponseDispatch(Message message) Retrieve indication that an async post-response service invocation
is required. | public static String | retrieveMAPFaultName(Message message) Retrieve MAP fault name from the message. | public static String | retrieveMAPFaultReason(Message message) Retrieve MAP fault reason from the message. | public static AddressingPropertiesImpl | retrieveMAPs(Message message, boolean isProviderContext, boolean isOutbound) | public static AddressingPropertiesImpl | retrieveMAPs(Message message, boolean isProviderContext, boolean isOutbound, boolean warnIfMissing) | public static boolean | retrievePartialResponseSent(Message message) Retrieve indication that a partial response has been sent. | public static void | setJAXBContext(JAXBContext ctx) Set the encapsulated JAXBContext (used by unit tests). | public static void | storeMAPFaultName(String faultName, Message message) Store bad MAP fault name in the message. | public static void | storeMAPFaultReason(String reason, Message message) Store MAP fault reason in the message. | public static void | storeMAPs(AddressingProperties maps, Message message, boolean isOutbound) Store MAPs in the message. | public static void | storeMAPs(AddressingProperties maps, Message message, boolean isOutbound, boolean isRequestor) Store MAPs in the message. | public static void | storeMAPs(AddressingProperties maps, Message message, boolean isOutbound, boolean isRequestor, boolean isProviderContext) Store MAPs in the message. | public static void | storePartialResponseSent(Message message) Store an indication that a partial response has been sent. |
WSA_OBJECT_FACTORY | final public static ObjectFactory WSA_OBJECT_FACTORY(Code) | | |
applyReferenceParam | public static void applyReferenceParam(EndpointReferenceType toEpr, JAXBElement<String> el)(Code) | | |
generateUUID | public static String generateUUID()(Code) | | a generated UUID |
getAction | public static AttributedURIType getAction(Message message)(Code) | | Construct the Action URI.
Parameters: message - the current message the Action URI |
getAttributedURI | public static AttributedURIType getAttributedURI(String uri)(Code) | | Helper method to get an attributed URI.
Parameters: uri - the URI an AttributedURIType encapsulating the URI |
getConduit | public static Conduit getConduit(Conduit conduit, Message message)(Code) | | Retreive Conduit from Exchange if not already available
Parameters: conduit - the current value for the Conduit Parameters: message - the current message the Conduit if available |
getJAXBContext | public static JAXBContext getJAXBContext() throws JAXBException(Code) | | Retrieve a JAXBContext for marshalling and unmarshalling JAXB generated
types.
a JAXBContext |
getMAPProperty | public static String getMAPProperty(boolean isRequestor, boolean isProviderContext, boolean isOutbound)(Code) | | Get appropriate property name for message addressing properties.
Parameters: isProviderContext - true if the binding provider request context available to the client application as opposed to the message context visible to handlers Parameters: isRequestor - true iff the current messaging role is that ofrequestor Parameters: isOutbound - true iff the message is outbound the property name to use when caching the MAPs in the context |
getNoneEndpointReference | public static EndpointReferenceType getNoneEndpointReference()(Code) | | |
getRelatesTo | public static RelatesToType getRelatesTo(String uri)(Code) | | Helper method to get a RealtesTo instance.
Parameters: uri - the related URI a RelatesToType encapsulating the URI |
hasEmptyAction | public static boolean hasEmptyAction(AddressingProperties maps)(Code) | | Helper method to determine if an MAPs Action is empty (a null action
is considered empty, whereas a zero length action suppresses
the propogation of the Action property).
Parameters: ref - the MAPs Action under test true iff the Action is empty |
isFault | public static boolean isFault(Message message)(Code) | | Determine if message is fault.
Parameters: message - the current Message true iff the message is a fault |
isGenericAddress | public static boolean isGenericAddress(EndpointReferenceType ref)(Code) | | Helper method to determine if an EPR address is generic (either null,
none or anonymous).
Parameters: ref - the EPR under test true iff the address is generic |
isOutbound | public static boolean isOutbound(Message message)(Code) | | Determine if message is outbound.
Parameters: message - the current Message true iff the message direction is outbound |
isRequestor | public static boolean isRequestor(Message message)(Code) | | Determine if current messaging role is that of requestor.
Parameters: message - the current Message true iff the current messaging role is that of requestor |
propogateReceivedMAPs | public static void propogateReceivedMAPs(AddressingProperties inMAPs, Exchange exchange)(Code) | | Propogate inbound MAPs onto full reponse & fault messages.
Parameters: inMAPs - the inbound MAPs Parameters: exchange - the current Exchange |
rebaseResponse | public static void rebaseResponse(EndpointReferenceType reference, AddressingProperties inMAPs, Message inMessage)(Code) | | Rebase response on replyTo
Parameters: reference - the replyTo reference Parameters: inMAPs - the inbound MAPs Parameters: inMessage - the current message |
retrieveAsyncPostResponseDispatch | public static boolean retrieveAsyncPostResponseDispatch(Message message)(Code) | | Retrieve indication that an async post-response service invocation
is required.
Parameters: message - the current message |
retrieveMAPFaultName | public static String retrieveMAPFaultName(Message message)(Code) | | Retrieve MAP fault name from the message.
Parameters: message - the current message |
retrieveMAPFaultReason | public static String retrieveMAPFaultReason(Message message)(Code) | | Retrieve MAP fault reason from the message.
Parameters: message - the current message |
retrieveMAPs | public static AddressingPropertiesImpl retrieveMAPs(Message message, boolean isProviderContext, boolean isOutbound)(Code) | | Parameters: message - the current message Parameters: isProviderContext - true if the binding provider request contextavailable to the client application as opposed to the message contextvisible to handlers Parameters: isOutbound - true iff the message is outbound the current addressing properties |
retrieveMAPs | public static AddressingPropertiesImpl retrieveMAPs(Message message, boolean isProviderContext, boolean isOutbound, boolean warnIfMissing)(Code) | | Parameters: message - the current message Parameters: isProviderContext - true if the binding provider request contextavailable to the client application as opposed to the message contextvisible to handlers Parameters: isOutbound - true iff the message is outbound Parameters: warnIfMissing - log a warning message if properties cannot be retrieved the current addressing properties |
retrievePartialResponseSent | public static boolean retrievePartialResponseSent(Message message)(Code) | | Retrieve indication that a partial response has been sent.
Parameters: message - the current message |
setJAXBContext | public static void setJAXBContext(JAXBContext ctx) throws JAXBException(Code) | | Set the encapsulated JAXBContext (used by unit tests).
Parameters: ctx - JAXBContext |
storeMAPFaultName | public static void storeMAPFaultName(String faultName, Message message)(Code) | | Store bad MAP fault name in the message.
Parameters: faultName - the fault name to store Parameters: message - the current message |
storeMAPFaultReason | public static void storeMAPFaultReason(String reason, Message message)(Code) | | Store MAP fault reason in the message.
Parameters: reason - the fault reason to store Parameters: message - the current message |
storeMAPs | public static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound)(Code) | | Store MAPs in the message.
Parameters: message - the current message Parameters: isOutbound - true iff the message is outbound |
storeMAPs | public static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound, boolean isRequestor)(Code) | | Store MAPs in the message.
Parameters: maps - the MAPs to store Parameters: message - the current message Parameters: isOutbound - true iff the message is outbound Parameters: isRequestor - true iff the current messaging role is that ofrequestor Parameters: handler - true if HANDLER scope, APPLICATION scope otherwise |
storeMAPs | public static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound, boolean isRequestor, boolean isProviderContext)(Code) | | Store MAPs in the message.
Parameters: maps - the MAPs to store Parameters: message - the current message Parameters: isOutbound - true iff the message is outbound Parameters: isRequestor - true iff the current messaging role is that ofrequestor Parameters: handler - true if HANDLER scope, APPLICATION scope otherwise Parameters: isProviderContext - true if the binding provider request context |
storePartialResponseSent | public static void storePartialResponseSent(Message message)(Code) | | Store an indication that a partial response has been sent.
Relavant if *both* the replyTo & faultTo are decoupled,
and a fault occurs, then we would already have sent the
partial response (pre-dispatch) for the replyTo, so
no need to send again.
Parameters: message - the current message |
|
|