|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequestInterceptor
Interceptors are notified before and after the parameters have been added to the request.
They can be used to cancel a request from being fired by returning false, or arbitrary modify the request.
If implementor declares a constructor with a Map argument, it will be called with the user custom properties.
InterfaceContext.getProperties()
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. |
Method Detail |
---|
void beforeParamsInjectionHandle(HttpRequest.Builder builder, RequestContext context) throws Exception
builder
- The current http request being buildcontext
- The current request context
Exception
void afterParamsInjectionHandle(HttpRequest.Builder builder, RequestContext context) throws Exception
builder
- The current http request being buildcontext
- The current request context
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |