org.codegist.crest.interceptor
Class CompositeRequestInterceptor
java.lang.Object
org.codegist.crest.interceptor.CompositeRequestInterceptor
- All Implemented Interfaces:
- RequestInterceptor
public class CompositeRequestInterceptor
- extends Object
- implements RequestInterceptor
Simple composite request interceptor that delegate notifications to a predefined list of interceptors.
- Author:
- Laurent Gilles (laurent.gilles@codegist.org)
CompositeRequestInterceptor
public CompositeRequestInterceptor(RequestInterceptor... interceptors)
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
getInterceptors
public RequestInterceptor[] getInterceptors()
Copyright © 2011. All Rights Reserved.