Class MoskitoJourneyInterceptor
java.lang.Object
org.distributeme.core.interceptor.moskito.MoskitoJourneyInterceptor
- All Implemented Interfaces:
ClientSideRequestInterceptor,ServerSideRequestInterceptor
public class MoskitoJourneyInterceptor
extends Object
implements ClientSideRequestInterceptor, ServerSideRequestInterceptor
This interceptor supports moskito journeys over the network, it transmits server side call trace back to the client.
- 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.afterServiceCall(ClientSideCallContext context, InterceptionContext iContext) Called immediately after service call, but before anything is returned to the caller.beforeServantCall(ServerSideCallContext context, InterceptionContext iContext) Called before any real processing happens on the server side.beforeServiceCall(ClientSideCallContext context, InterceptionContext iContext) Called after client side processing but before the actual call is performed.
-
Constructor Details
-
MoskitoJourneyInterceptor
public MoskitoJourneyInterceptor()
-
-
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.
-
beforeServiceCall
public InterceptorResponse beforeServiceCall(ClientSideCallContext context, InterceptionContext iContext) Called after client side processing but before the actual call is performed.- Specified by:
beforeServiceCallin interfaceClientSideRequestInterceptor- Parameters:
context- aClientSideCallContextobject.iContext- aInterceptionContextobject.- Returns:
- a
InterceptorResponseobject.
-
afterServiceCall
public InterceptorResponse afterServiceCall(ClientSideCallContext context, InterceptionContext iContext) Called immediately after service call, but before anything is returned to the caller. This interceptor can be used to inspect or modify the answer from server.- Specified by:
afterServiceCallin interfaceClientSideRequestInterceptor- Parameters:
context- aClientSideCallContextobject.iContext- aInterceptionContextobject.- Returns:
- a
InterceptorResponseobject.
-