Class HttpClientResponseSOAP11Decoder

    • Field Detail

      • log

        private final org.slf4j.Logger log
        Logger.
      • bodyHandler

        private MessageHandler bodyHandler
        Message handler to use in processing the message body.
    • Constructor Detail

      • HttpClientResponseSOAP11Decoder

        public HttpClientResponseSOAP11Decoder()
    • Method Detail

      • getBodyHandler

        public MessageHandler getBodyHandler()
        Get the configured body handler MessageHandler.
        Returns:
        Returns the bodyHandler.
      • setBodyHandler

        public void setBodyHandler​(MessageHandler newBodyHandler)
        Set the configured body handler MessageHandler.
        Parameters:
        newBodyHandler - The bodyHandler to set.
      • processSuccessResponse

        protected void processSuccessResponse​(org.apache.http.HttpResponse httpResponse,
                                              SOAP11Context soapContext)
                                       throws MessageDecodingException,
                                              IOException
        Process a successful response, i.e. one where the HTTP response code was 200.
        Parameters:
        httpResponse - the HTTP client response
        soapContext - the SOAP11Context instance
        Throws:
        MessageDecodingException - if message can not be unmarshalled
        IOException - if there is a problem with the response entity input stream
      • buildFaultException

        protected MessageDecodingException buildFaultException​(org.apache.http.HttpResponse response)
                                                        throws MessageDecodingException,
                                                               IOException
        Build an exception by processing a fault response, i.e. one where the HTTP response code was 500.
        Parameters:
        response - the HTTP client response
        Returns:
        the message decoding exception representing the SOAP fault
        Throws:
        MessageDecodingException - if message can not be unmarshalled
        IOException - if there is a problem with the response entity input stream
      • getFault

        protected Fault getFault​(Envelope soapMessage)
        Return the Fault element from the SOAP message, if any.
        Parameters:
        soapMessage - the SOAP 1.1. Envelope being processed
        Returns:
        the first Fault element found, or null