Package net.officefloor.web
Class InterceptFunction
- java.lang.Object
-
- net.officefloor.web.InterceptFunction
-
- All Implemented Interfaces:
ManagedFunction<None,None>,ManagedFunctionFactory<None,None>
public class InterceptFunction extends java.lang.Object implements ManagedFunctionFactory<None,None>, ManagedFunction<None,None>
ManagedFunctionto trigger the interception before routing.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description InterceptFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedFunction<None,None>createManagedFunction()Creates theManagedFunction.voidexecute(ManagedFunctionContext<None,None> context)Executes the function.
-
-
-
Method Detail
-
createManagedFunction
public ManagedFunction<None,None> createManagedFunction() throws java.lang.Throwable
Description copied from interface:ManagedFunctionFactoryCreates theManagedFunction.- Specified by:
createManagedFunctionin interfaceManagedFunctionFactory<None,None>- Returns:
ManagedFunction.- Throws:
java.lang.Throwable- If fails to create theManagedFunction.
-
execute
public void execute(ManagedFunctionContext<None,None> context) throws java.lang.Throwable
Description copied from interface:ManagedFunctionExecutes the function.- Specified by:
executein interfaceManagedFunction<None,None>- Parameters:
context-ManagedFunctionContextfor theManagedFunction.- Throws:
java.lang.Throwable- Indicating failure of theManagedFunction.
-
-