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 Details

    • RMContextUtils

      protected RMContextUtils()
      Prevents instantiation.
  • Method Details

    • 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 message
      outbound - 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 message
      rmps - the RM properties
      outbound - 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 message
      isProviderContext - true if the binding provider request context available to the client application as opposed to the message context visible to handlers
      isOutbound - 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 store
      message - the current message
      isOutbound - true if the message is outbound
      isRequestor - 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)