Spring Web Services Framework

org.springframework.ws.transport.http
Class HttpComponentsMessageSender.RemoveSoapHeadersInterceptor

java.lang.Object
  extended by 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 Summary
HttpComponentsMessageSender.RemoveSoapHeadersInterceptor()
           
 
Method Summary
 void process(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpComponentsMessageSender.RemoveSoapHeadersInterceptor

public HttpComponentsMessageSender.RemoveSoapHeadersInterceptor()
Method Detail

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

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.