org.codegist.crest.interceptor
Class RequestInterceptorAdapter
java.lang.Object
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
RequestInterceptorAdapter
public RequestInterceptorAdapter()
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 buildcontext
- 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 buildcontext
- The current request context
- Throws:
Exception
Copyright © 2011. All Rights Reserved.