org.jasig.portlet.emailpreview.dao.exchange
Class SoapHttpRequestHeaderInterceptor

java.lang.Object
  extended by org.jasig.portlet.emailpreview.dao.exchange.SoapHttpRequestHeaderInterceptor
All Implemented Interfaces:
org.apache.http.HttpRequestInterceptor

public class SoapHttpRequestHeaderInterceptor
extends Object
implements org.apache.http.HttpRequestInterceptor

Interceptor to remove Content-Length and Transfer-Encoding headers from the request. SAAJ and other SOAP implementations set these headers themselves, and HttpClient throws an exception if they have been set.

Author:
James Wennmacher, jwennmacher@unicon.net

Constructor Summary
SoapHttpRequestHeaderInterceptor()
           
 
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

SoapHttpRequestHeaderInterceptor

public SoapHttpRequestHeaderInterceptor()
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


Copyright © 2013 Jasig. All Rights Reserved.