| java.lang.Object org.objectweb.celtix.bus.ws.addressing.ContextUtils
ContextUtils | final public class ContextUtils (Code) | | Holder for utility methods relating to contexts.
|
Method Summary | |
public static String | generateUUID() | public static AttributedURIType | getAction(MessageContext context) Construct the Action URI. | public static AttributedURIType | getAttributedURI(String uri) Helper method to get an attributed URI. | public static String | getCorrelationIDProperty(boolean isOutbound) Get appropriate context property name for correlation ID. | 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 context property name for message addressing properties. | 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 | isGenericAddress(EndpointReferenceType ref) Helper method to determine if an EPR address is generic (either null,
none or anonymous). | public static boolean | isOneway(MessageContext context) Determine if context indicates current invocation is oneway. | public static boolean | isOutbound(MessageContext context) Determine if context indicates message is outbound. | public static boolean | isRequestor(MessageContext context) Determine if context indicates current messaging role is that of
requestor. | public static void | rebaseTransport(AddressingProperties inMAPs, MessageContext context, ServerBinding serverBinding, ServerTransport serverTransport) | public static String | retrieveCorrelationID(MessageContext context, boolean isOutbound) Retrieve correlation ID from the context. | public static String | retrieveMAPFaultName(MessageContext context) Retrieve MAP fault name from the context. | public static String | retrieveMAPFaultReason(MessageContext context) Retrieve MAP fault reason from the context. | public static AddressingPropertiesImpl | retrieveMAPs(MessageContext context, boolean isProviderContext, boolean isOutbound) | public static EndpointReferenceType | retrieveReplyTo(MessageContext context) Retrieve ReplyTo EPR from the context. | public static EndpointReferenceType | retrieveTo(MessageContext context) Retrieve To EPR from the context. | public static boolean | retrieveUsingAddressing(MessageContext context) | public static void | setJAXBContext(JAXBContext ctx) Set the encapsulated JAXBContext (used by unit tests). | public static void | storeCorrelationID(RelatesToType id, boolean isOutbound, MessageContext context) | public static void | storeCorrelationID(AttributedURIType id, boolean isOutbound, MessageContext context) | protected static void | storeCorrelationID(String id, boolean isOutbound, MessageContext context) | public static void | storeMAPFaultName(String faultName, MessageContext context) Store bad MAP fault name in the context. | public static void | storeMAPFaultReason(String reason, MessageContext context) Store MAP fault reason in the context. | public static void | storeMAPs(AddressingProperties maps, MessageContext context, boolean isOutbound) Store MAPs in the context. | public static void | storeMAPs(AddressingProperties maps, MessageContext context, boolean isOutbound, boolean isRequestor, boolean handler) Store MAPs in the context. | public static void | storeMAPs(AddressingProperties maps, MessageContext context, boolean isOutbound, boolean isRequestor, boolean handler, boolean isProviderContext) Store MAPs in the context. | public static void | storeReplyTo(EndpointReferenceType replyTo, MessageContext context) | public static void | storeTo(EndpointReferenceType to, MessageContext context) | public static void | storeUsingAddressing(boolean override, MessageContext context) |
WSA_OBJECT_FACTORY | final public static ObjectFactory WSA_OBJECT_FACTORY(Code) | | |
generateUUID | public static String generateUUID()(Code) | | a generated UUID |
getAction | public static AttributedURIType getAction(MessageContext context)(Code) | | Construct the Action URI.
Parameters: context - the message context 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 |
getCorrelationIDProperty | public static String getCorrelationIDProperty(boolean isOutbound)(Code) | | Get appropriate context property name for correlation ID.
Parameters: isOutbound - true iff the message is outbound the property name to use when caching the correlation ID in the context |
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 context 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 |
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 |
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 |
isOneway | public static boolean isOneway(MessageContext context)(Code) | | Determine if context indicates current invocation is oneway.
Parameters: context - the current MessageContext true iff the current invocation is oneway |
isOutbound | public static boolean isOutbound(MessageContext context)(Code) | | Determine if context indicates message is outbound.
Parameters: context - the current MessageContext true iff the message direction is outbound |
isRequestor | public static boolean isRequestor(MessageContext context)(Code) | | Determine if context indicates current messaging role is that of
requestor.
Parameters: context - the current MessageContext true iff the current messaging role is that of requestor |
retrieveCorrelationID | public static String retrieveCorrelationID(MessageContext context, boolean isOutbound)(Code) | | Retrieve correlation ID from the context.
Parameters: context - the message context Parameters: isOutbound - true if message is outbound |
retrieveMAPFaultName | public static String retrieveMAPFaultName(MessageContext context)(Code) | | Retrieve MAP fault name from the context.
Parameters: context - the message context |
retrieveMAPFaultReason | public static String retrieveMAPFaultReason(MessageContext context)(Code) | | Retrieve MAP fault reason from the context.
Parameters: context - the message context |
retrieveMAPs | public static AddressingPropertiesImpl retrieveMAPs(MessageContext context, boolean isProviderContext, boolean isOutbound)(Code) | | Parameters: context - the message context 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 |
retrieveReplyTo | public static EndpointReferenceType retrieveReplyTo(MessageContext context)(Code) | | Retrieve ReplyTo EPR from the context.
Parameters: context - the message context |
retrieveTo | public static EndpointReferenceType retrieveTo(MessageContext context)(Code) | | Retrieve To EPR from the context.
Parameters: context - the message context |
retrieveUsingAddressing | public static boolean retrieveUsingAddressing(MessageContext context)(Code) | | Retrieve UsingAddressing override flag from the context
Parameters: override - true if UsingAddressing should be overridden Parameters: context - the message context |
setJAXBContext | public static void setJAXBContext(JAXBContext ctx) throws JAXBException(Code) | | Set the encapsulated JAXBContext (used by unit tests).
Parameters: ctx - JAXBContext |
storeCorrelationID | public static void storeCorrelationID(RelatesToType id, boolean isOutbound, MessageContext context)(Code) | | Store correlation ID in the context
Parameters: id - the correlation ID Parameters: isOutbound - true if message is outbound Parameters: context - the message context |
storeCorrelationID | public static void storeCorrelationID(AttributedURIType id, boolean isOutbound, MessageContext context)(Code) | | Store correlation ID in the context
Parameters: id - the correlation ID Parameters: isOutbound - true if message is outbound Parameters: context - the message context |
storeCorrelationID | protected static void storeCorrelationID(String id, boolean isOutbound, MessageContext context)(Code) | | Store correlation ID in the context
Parameters: id - the correlation ID Parameters: isOutbound - true if message is outbound Parameters: context - the message context |
storeMAPFaultName | public static void storeMAPFaultName(String faultName, MessageContext context)(Code) | | Store bad MAP fault name in the context.
Parameters: faultName - the fault name to store Parameters: context - the message context |
storeMAPFaultReason | public static void storeMAPFaultReason(String reason, MessageContext context)(Code) | | Store MAP fault reason in the context.
Parameters: reason - the fault reason to store Parameters: context - the message context |
storeMAPs | public static void storeMAPs(AddressingProperties maps, MessageContext context, boolean isOutbound)(Code) | | Store MAPs in the context.
Parameters: context - the message context Parameters: isOutbound - true iff the message is outbound |
storeMAPs | public static void storeMAPs(AddressingProperties maps, MessageContext context, boolean isOutbound, boolean isRequestor, boolean handler)(Code) | | Store MAPs in the context.
Parameters: maps - the MAPs to store Parameters: context - the message context 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, MessageContext context, boolean isOutbound, boolean isRequestor, boolean handler, boolean isProviderContext)(Code) | | Store MAPs in the context.
Parameters: maps - the MAPs to store Parameters: context - the message context 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 |
storeReplyTo | public static void storeReplyTo(EndpointReferenceType replyTo, MessageContext context)(Code) | | Store ReplyTo EPR in the context
Parameters: replyTo - the ReplyTo EPR Parameters: context - the message context |
storeTo | public static void storeTo(EndpointReferenceType to, MessageContext context)(Code) | | Store To EPR in the context
Parameters: to - the To EPR Parameters: context - the message context |
storeUsingAddressing | public static void storeUsingAddressing(boolean override, MessageContext context)(Code) | | Store UsingAddressing override flag in the context
Parameters: override - true if UsingAddressing should be overridden Parameters: context - the message context |
|
|