Package org.apache.cxf.ws.rm
Class RMContextUtils
java.lang.Object
org.apache.cxf.ws.rm.RMContextUtils
Holder for utility methods relating to contexts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic ProtocolVariationgetProtocolVariation(org.apache.cxf.message.Message message) static StringgetRMPropertiesKey(boolean outbound) static booleanisRMProtocolMessage(String action) Checks if the action String belongs to an RM protocol message.static booleanisServerSide(org.apache.cxf.message.Message message) Determine if message is currently being processed on server side.static org.apache.cxf.ws.addressing.AddressingPropertiesretrieveMAPs(org.apache.cxf.message.Message message, boolean isProviderContext, boolean isOutbound) Retrieves the addressing properties from the current message.static RMPropertiesretrieveRMProperties(org.apache.cxf.message.Message message, boolean outbound) Retrieve the RM properties from the current message.static voidsetProtocolVariation(org.apache.cxf.message.Message message, ProtocolVariation protocol) static voidstoreMAPs(org.apache.cxf.ws.addressing.AddressingProperties maps, org.apache.cxf.message.Message message, boolean isOutbound, boolean isRequestor) Store MAPs in the message.static voidstoreRMProperties(org.apache.cxf.message.Message message, RMProperties rmps, boolean outbound) Store the RM properties in the current message.
-
Constructor Details
-
RMContextUtils
protected RMContextUtils()Prevents instantiation.
-
-
Method Details
-
generateUUID
- Returns:
- a generated UUID
-
isServerSide
public static boolean isServerSide(org.apache.cxf.message.Message message) Determine if message is currently being processed on server side.- Parameters:
message- the current Message- Returns:
- true if message is currently being processed on server side
-
isRMProtocolMessage
Checks if the action String belongs to an RM protocol message.- Parameters:
action- the action- Returns:
- true if the action is not one of the RM protocol actions.
-
retrieveRMProperties
public static RMProperties retrieveRMProperties(org.apache.cxf.message.Message message, boolean outbound) Retrieve the RM properties from the current message.- Parameters:
message- the current messageoutbound- true if the message direction is outbound- Returns:
- the RM properties
-
storeRMProperties
public static void storeRMProperties(org.apache.cxf.message.Message message, RMProperties rmps, boolean outbound) Store the RM properties in the current message.- Parameters:
message- the current messagermps- the RM propertiesoutbound- if the message direction is outbound
-
retrieveMAPs
public static org.apache.cxf.ws.addressing.AddressingProperties retrieveMAPs(org.apache.cxf.message.Message message, boolean isProviderContext, boolean isOutbound) Retrieves the addressing properties from the current message.- Parameters:
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- Returns:
- the current addressing properties
-
storeMAPs
public 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.- Parameters:
maps- the MAPs to storemessage- the current messageisOutbound- true if the message is outboundisRequestor- true if the current messaging role is that of requestor
-
getRMPropertiesKey
-
getProtocolVariation
-
setProtocolVariation
public static void setProtocolVariation(org.apache.cxf.message.Message message, ProtocolVariation protocol)
-