Package net.officefloor.web
Class InitialiseHttpRequestStateFunction
- java.lang.Object
-
- net.officefloor.web.InitialiseHttpRequestStateFunction
-
- All Implemented Interfaces:
ManagedFunction<InitialiseHttpRequestStateFunction.InitialiseHttpRequestStateDependencies,None>
,ManagedFunctionFactory<InitialiseHttpRequestStateFunction.InitialiseHttpRequestStateDependencies,None>
public class InitialiseHttpRequestStateFunction extends java.lang.Object implements ManagedFunctionFactory<InitialiseHttpRequestStateFunction.InitialiseHttpRequestStateDependencies,None>, ManagedFunction<InitialiseHttpRequestStateFunction.InitialiseHttpRequestStateDependencies,None>
ManagedFunction
to initialise theHttpRequestState
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InitialiseHttpRequestStateFunction.InitialiseHttpRequestStateDependencies
Dependency keys.
-
Constructor Summary
Constructors Constructor Description InitialiseHttpRequestStateFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedFunction<InitialiseHttpRequestStateFunction.InitialiseHttpRequestStateDependencies,None>
createManagedFunction()
Creates theManagedFunction
.void
execute(ManagedFunctionContext<InitialiseHttpRequestStateFunction.InitialiseHttpRequestStateDependencies,None> context)
Executes the function.
-
-
-
Method Detail
-
createManagedFunction
public ManagedFunction<InitialiseHttpRequestStateFunction.InitialiseHttpRequestStateDependencies,None> createManagedFunction() throws java.lang.Throwable
Description copied from interface:ManagedFunctionFactory
Creates theManagedFunction
.- Specified by:
createManagedFunction
in interfaceManagedFunctionFactory<InitialiseHttpRequestStateFunction.InitialiseHttpRequestStateDependencies,None>
- Returns:
ManagedFunction
.- Throws:
java.lang.Throwable
- If fails to create theManagedFunction
.
-
execute
public void execute(ManagedFunctionContext<InitialiseHttpRequestStateFunction.InitialiseHttpRequestStateDependencies,None> context) throws java.lang.Throwable
Description copied from interface:ManagedFunction
Executes the function.- Specified by:
execute
in interfaceManagedFunction<InitialiseHttpRequestStateFunction.InitialiseHttpRequestStateDependencies,None>
- Parameters:
context
-ManagedFunctionContext
for theManagedFunction
.- Throws:
java.lang.Throwable
- Indicating failure of theManagedFunction
.
-
-