Class AbstractServerSideRequestInterceptor
java.lang.Object
org.distributeme.core.interceptor.AbstractServerSideRequestInterceptor
- All Implemented Interfaces:
ServerSideRequestInterceptor
- Direct Known Subclasses:
ServerSideSlowDownInterceptor
public class AbstractServerSideRequestInterceptor
extends Object
implements ServerSideRequestInterceptor
Base, doing nothing, implementation of the ClientSideRequestInterceptor meant for extension.
- Version:
- $Id: $Id
- Author:
- lrosenberg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafterServantCall(ServerSideCallContext context, InterceptionContext iContext) Called after the service actually processed the request.beforeServantCall(ServerSideCallContext context, InterceptionContext iContext) Called before any real processing happens on the server side.
-
Constructor Details
-
AbstractServerSideRequestInterceptor
public AbstractServerSideRequestInterceptor()
-
-
Method Details
-
beforeServantCall
public InterceptorResponse beforeServantCall(ServerSideCallContext context, InterceptionContext iContext) Called before any real processing happens on the server side.- Specified by:
beforeServantCallin interfaceServerSideRequestInterceptor- Parameters:
context- aServerSideCallContextobject.iContext- aInterceptionContextobject.- Returns:
- a
InterceptorResponseobject.
-
afterServantCall
public InterceptorResponse afterServantCall(ServerSideCallContext context, InterceptionContext iContext) Called after the service actually processed the request. Allows to inspect or modify the answer.- Specified by:
afterServantCallin interfaceServerSideRequestInterceptor- Parameters:
context- aServerSideCallContextobject.iContext- aInterceptionContextobject.- Returns:
- a
InterceptorResponseobject.
-