Package jadex.micro.tutorial
Class SpamInterceptorD4
- java.lang.Object
-
- jadex.micro.tutorial.SpamInterceptorD4
-
- All Implemented Interfaces:
IServiceInvocationInterceptor
public class SpamInterceptorD4 extends java.lang.Object implements IServiceInvocationInterceptor
Simple interceptor that refuses messages of spammers.
-
-
Constructor Summary
Constructors Constructor Description SpamInterceptorD4()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>
execute(ServiceInvocationContext context)
Execute the interceptor.boolean
isApplicable(ServiceInvocationContext context)
Test if the interceptor is applicable.
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(ServiceInvocationContext context)
Test if the interceptor is applicable.- Specified by:
isApplicable
in interfaceIServiceInvocationInterceptor
- Returns:
- True, if applicable.
-
execute
public IFuture<java.lang.Void> execute(ServiceInvocationContext context)
Execute the interceptor.- Specified by:
execute
in interfaceIServiceInvocationInterceptor
- Parameters:
context
- The invocation context.
-
-