groovyx.net.http
Class ContentEncoding.RequestInterceptor

java.lang.Object
  extended by groovyx.net.http.ContentEncoding.RequestInterceptor
All Implemented Interfaces:
org.apache.http.HttpRequestInterceptor
Enclosing class:
ContentEncoding

protected class ContentEncoding.RequestInterceptor
extends Object
implements org.apache.http.HttpRequestInterceptor

Request interceptor that adds the correct Accept header to the outgoing request.

Author:
Tom Nichols

Constructor Summary
protected ContentEncoding.RequestInterceptor()
           
 
Method Summary
 void process(org.apache.http.HttpRequest req, 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

ContentEncoding.RequestInterceptor

protected ContentEncoding.RequestInterceptor()
Method Detail

process

public void process(org.apache.http.HttpRequest req,
                    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 © 2008-2012. All Rights Reserved.