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 Object
implements ManagedFunctionFactory<None,None>, ManagedFunction<None,None>
ManagedFunction to trigger the interception before routing.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates theManagedFunction.voidexecute(ManagedFunctionContext<None, None> context) Executes the function.
-
Constructor Details
-
InterceptFunction
public InterceptFunction()
-
-
Method Details
-
createManagedFunction
Description copied from interface:ManagedFunctionFactoryCreates theManagedFunction.- Specified by:
createManagedFunctionin interfaceManagedFunctionFactory<None,None> - Returns:
ManagedFunction.- Throws:
Throwable- If fails to create theManagedFunction.
-
execute
Description copied from interface:ManagedFunctionExecutes the function.- Specified by:
executein interfaceManagedFunction<None,None> - Parameters:
context-ManagedFunctionContextfor theManagedFunction.- Throws:
Throwable- Indicating failure of theManagedFunction.
-