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>
ManagedFunction
to handle the redirect.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpHandleRedirectFunction.HttpHandleRedirectDependencies
Dependency 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 ==================void
execute(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:
createManagedFunction
in 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:
execute
in interfaceManagedFunction<HttpHandleRedirectFunction.HttpHandleRedirectDependencies,Indexed>
- Parameters:
context
-ManagedFunctionContext
for theManagedFunction
.- Throws:
java.lang.Throwable
- Indicating failure of theManagedFunction
.
-
-