public final class RMContextUtils extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
RMContextUtils()
Prevents instantiation.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureExposedVersion(AddressingProperties maps)
Ensures the appropriate version of WS-Addressing is used.
|
static String |
generateUUID() |
static String |
getRMPropertiesKey(boolean outbound) |
static boolean |
isRMProtocolMessage(String action)
Checks if the action String belongs to an RM protocol message.
|
static boolean |
isServerSide(Message message)
Determine if message is currently being processed on server side.
|
static AddressingPropertiesImpl |
retrieveMAPs(Message message,
boolean isProviderContext,
boolean isOutbound)
Retrieves the addressing properties from the current message.
|
static RMProperties |
retrieveRMProperties(Message message,
boolean outbound)
Retrieve the RM properties from the current message.
|
static void |
storeMAPs(AddressingProperties maps,
Message message,
boolean isOutbound,
boolean isRequestor)
Store MAPs in the message.
|
static void |
storeRMProperties(Message message,
RMProperties rmps,
boolean outbound)
Store the RM properties in the current message.
|
public static String generateUUID()
public static boolean isServerSide(Message message)
message - the current Messagepublic static boolean isRMProtocolMessage(String action)
action - the actionpublic static RMProperties retrieveRMProperties(Message message, boolean outbound)
message - the current messageoutbound - true iff the message direction is outboundpublic static void storeRMProperties(Message message, RMProperties rmps, boolean outbound)
message - the current messagermps - the RM propertiesoutbound - iff the message direction is outboundpublic 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 iff the message is outboundpublic static void storeMAPs(AddressingProperties maps, Message message, boolean isOutbound, boolean isRequestor)
maps - the MAPs to storemessage - the current messageisOutbound - true iff the message is outboundisRequestor - true iff the current messaging role is that of
requestorhandler - true if HANDLER scope, APPLICATION scope otherwisepublic static void ensureExposedVersion(AddressingProperties maps)
maps - the addressing propertiespublic static String getRMPropertiesKey(boolean outbound)
Apache CXF