|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.ws.rm.RMContextUtils
public final class RMContextUtils
Holder for utility methods relating to contexts.
Constructor Summary | |
---|---|
protected |
RMContextUtils()
Prevents instantiation. |
Method Summary | |
---|---|
static String |
generateUUID()
|
static ProtocolVariation |
getProtocolVariation(Message message)
|
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 AddressingProperties |
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 |
setProtocolVariation(Message message,
ProtocolVariation protocol)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected RMContextUtils()
Method Detail |
---|
public static String generateUUID()
public static boolean isServerSide(Message message)
message
- the current Message
public static boolean isRMProtocolMessage(String action)
action
- the action
public static RMProperties retrieveRMProperties(Message message, boolean outbound)
message
- the current messageoutbound
- true if the message direction is outbound
public static void storeRMProperties(Message message, RMProperties rmps, boolean outbound)
message
- the current messagermps
- the RM propertiesoutbound
- if the message direction is outboundpublic static AddressingProperties 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 if the message is outbound
public static void storeMAPs(AddressingProperties maps, 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 otherwisepublic static String getRMPropertiesKey(boolean outbound)
public static ProtocolVariation getProtocolVariation(Message message)
public static void setProtocolVariation(Message message, ProtocolVariation protocol)
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |