Package org.apache.cxf.ws.rm
Class RMContextUtils
- java.lang.Object
-
- org.apache.cxf.ws.rm.RMContextUtils
-
public final class RMContextUtils extends Object
Holder for utility methods relating to contexts.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRMContextUtils()Prevents instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgenerateUUID()static 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.
-
-
-
Method Detail
-
generateUUID
public static String 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
public static boolean isRMProtocolMessage(String action)
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
public static String getRMPropertiesKey(boolean outbound)
-
getProtocolVariation
public static ProtocolVariation getProtocolVariation(org.apache.cxf.message.Message message)
-
setProtocolVariation
public static void setProtocolVariation(org.apache.cxf.message.Message message, ProtocolVariation protocol)
-
-