Package net.officefloor.web
Class HttpHandleRedirectFunction
- java.lang.Object
-
- net.officefloor.web.HttpHandleRedirectFunction
-
- All Implemented Interfaces:
ManagedFunction<HttpHandleRedirectFunction.HttpHandleRedirectDependencies,Indexed>,ManagedFunctionFactory<HttpHandleRedirectFunction.HttpHandleRedirectDependencies,Indexed>
@PrivateSource public class HttpHandleRedirectFunction extends java.lang.Object implements ManagedFunctionFactory<HttpHandleRedirectFunction.HttpHandleRedirectDependencies,Indexed>, ManagedFunction<HttpHandleRedirectFunction.HttpHandleRedirectDependencies,Indexed>
ManagedFunctionto handle the redirect.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpHandleRedirectFunction.HttpHandleRedirectDependenciesDependency keys.
-
Constructor Summary
Constructors Constructor Description HttpHandleRedirectFunction(HttpRouter router)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedFunction<HttpHandleRedirectFunction.HttpHandleRedirectDependencies,Indexed>createManagedFunction()================= ManagedFunctionFactory ==================voidexecute(ManagedFunctionContext<HttpHandleRedirectFunction.HttpHandleRedirectDependencies,Indexed> context)==================== ManagedFunction ======================
-
-
-
Constructor Detail
-
HttpHandleRedirectFunction
public HttpHandleRedirectFunction(HttpRouter router)
Instantiate.- Parameters:
router-HttpRouter.
-
-
Method Detail
-
createManagedFunction
public ManagedFunction<HttpHandleRedirectFunction.HttpHandleRedirectDependencies,Indexed> createManagedFunction() throws java.lang.Throwable
================= ManagedFunctionFactory ==================- Specified by:
createManagedFunctionin interfaceManagedFunctionFactory<HttpHandleRedirectFunction.HttpHandleRedirectDependencies,Indexed>- Returns:
ManagedFunction.- Throws:
java.lang.Throwable- If fails to create theManagedFunction.
-
execute
public void execute(ManagedFunctionContext<HttpHandleRedirectFunction.HttpHandleRedirectDependencies,Indexed> context) throws java.lang.Throwable
==================== ManagedFunction ======================- Specified by:
executein interfaceManagedFunction<HttpHandleRedirectFunction.HttpHandleRedirectDependencies,Indexed>- Parameters:
context-ManagedFunctionContextfor theManagedFunction.- Throws:
java.lang.Throwable- Indicating failure of theManagedFunction.
-
-