Class RequestResponseUtils


  • public class RequestResponseUtils
    extends Object
    • Constructor Detail

      • RequestResponseUtils

        public RequestResponseUtils()
    • Method Detail

      • createRequestMessageFromPropertyBag

        public static org.apache.qpid.proton.message.Message createRequestMessageFromPropertyBag​(String operation,
                                                                                                 Map propertyBag,
                                                                                                 Duration timeout)
      • createRequestMessageFromPropertyBag

        public static org.apache.qpid.proton.message.Message createRequestMessageFromPropertyBag​(String operation,
                                                                                                 Map propertyBag,
                                                                                                 Duration timeout,
                                                                                                 String associatedLinkName)
      • createRequestMessageFromValueBody

        public static org.apache.qpid.proton.message.Message createRequestMessageFromValueBody​(String operation,
                                                                                               Object valueBody,
                                                                                               Duration timeout)
      • getResponseStatusCode

        public static int getResponseStatusCode​(org.apache.qpid.proton.message.Message responseMessage)
      • getResponseErrorCondition

        public static org.apache.qpid.proton.amqp.Symbol getResponseErrorCondition​(org.apache.qpid.proton.message.Message responseMessage)
      • getResponseStatusDescription

        public static String getResponseStatusDescription​(org.apache.qpid.proton.message.Message responseMessage)
      • getResponseBody

        public static Map getResponseBody​(org.apache.qpid.proton.message.Message responseMessage)
      • genereateExceptionFromResponse

        public static Exception genereateExceptionFromResponse​(org.apache.qpid.proton.message.Message responseMessage)
      • generateExceptionFromError

        public static Exception generateExceptionFromError​(org.apache.qpid.proton.amqp.Symbol errorCondition,
                                                           String exceptionMessage)