Class HttpComponentsMessageSender.RemoveSoapHeadersInterceptor

java.lang.Object
org.springframework.ws.transport.http.HttpComponentsMessageSender.RemoveSoapHeadersInterceptor
All Implemented Interfaces:
org.apache.http.HttpRequestInterceptor
Enclosing class:
HttpComponentsMessageSender

public static class HttpComponentsMessageSender.RemoveSoapHeadersInterceptor extends Object implements org.apache.http.HttpRequestInterceptor
HttpClient HttpRequestInterceptor implementation that removes Content-Length and Transfer-Encoding headers from the request. Necessary, because some SAAJ and other SOAP implementations set these headers themselves, and HttpClient throws an exception if they have been set.
  • Constructor Details

    • RemoveSoapHeadersInterceptor

      public RemoveSoapHeadersInterceptor()
  • Method Details

    • process

      public void process(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException, IOException
      Specified by:
      process in interface org.apache.http.HttpRequestInterceptor
      Throws:
      org.apache.http.HttpException
      IOException