org.codegist.crest.interceptor
Class RequestInterceptorAdapter

java.lang.Object
  extended by org.codegist.crest.interceptor.RequestInterceptorAdapter
All Implemented Interfaces:
RequestInterceptor
Direct Known Subclasses:
AuthentificationInterceptor, EmptyRequestInterceptor

public class RequestInterceptorAdapter
extends Object
implements RequestInterceptor

Simple RequestInterceptor adapter.

Author:
Laurent Gilles (laurent.gilles@codegist.org)
See Also:
RequestInterceptor

Constructor Summary
RequestInterceptorAdapter()
           
 
Method Summary
 void afterParamsInjectionHandle(HttpRequest.Builder builder, RequestContext context)
          Called after parameters have been injected into the request.
 void beforeParamsInjectionHandle(HttpRequest.Builder builder, RequestContext context)
          Called after general parameter have been added to the request, but before parameters are injected into it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestInterceptorAdapter

public RequestInterceptorAdapter()
Method Detail

beforeParamsInjectionHandle

public void beforeParamsInjectionHandle(HttpRequest.Builder builder,
                                        RequestContext context)
                                 throws Exception
Description copied from interface: RequestInterceptor
Called after general parameter have been added to the request, but before parameters are injected into it.

Specified by:
beforeParamsInjectionHandle in interface RequestInterceptor
Parameters:
builder - The current http request being build
context - The current request context
Throws:
Exception

afterParamsInjectionHandle

public void afterParamsInjectionHandle(HttpRequest.Builder builder,
                                       RequestContext context)
                                throws Exception
Description copied from interface: RequestInterceptor
Called after parameters have been injected into the request.

Specified by:
afterParamsInjectionHandle in interface RequestInterceptor
Parameters:
builder - The current http request being build
context - The current request context
Throws:
Exception


Copyright © 2011. All Rights Reserved.