Package net.officefloor.web
Class HttpRouteFunction
java.lang.Object
net.officefloor.web.HttpRouteFunction
- All Implemented Interfaces:
ManagedFunction<HttpRouteFunction.HttpRouteDependencies,,Indexed> ManagedFunctionFactory<HttpRouteFunction.HttpRouteDependencies,Indexed>
public class HttpRouteFunction
extends Object
implements ManagedFunctionFactory<HttpRouteFunction.HttpRouteDependencies,Indexed>, ManagedFunction<HttpRouteFunction.HttpRouteDependencies,Indexed>
ManagedFunction to route the HttpRequest.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDependency keys. -
Constructor Summary
ConstructorsConstructorDescriptionHttpRouteFunction(HttpEscalationHandler escalationHandler, int handleRedirectFlowIndex, HttpRouter router) Instantiate. -
Method Summary
-
Constructor Details
-
HttpRouteFunction
public HttpRouteFunction(HttpEscalationHandler escalationHandler, int handleRedirectFlowIndex, HttpRouter router) Instantiate.- Parameters:
escalationHandler-HttpEscalationHandler. May benull.handleRedirectFlowIndex-Flowindex to handle a redirect.router-HttpRouter.
-
-
Method Details
-
createManagedFunction
Description copied from interface:ManagedFunctionFactoryCreates theManagedFunction.- Specified by:
createManagedFunctionin interfaceManagedFunctionFactory<HttpRouteFunction.HttpRouteDependencies,Indexed> - Returns:
ManagedFunction.
-
execute
public void execute(ManagedFunctionContext<HttpRouteFunction.HttpRouteDependencies, Indexed> context) throws ExceptionDescription copied from interface:ManagedFunctionExecutes the function.- Specified by:
executein interfaceManagedFunction<HttpRouteFunction.HttpRouteDependencies,Indexed> - Parameters:
context-ManagedFunctionContextfor theManagedFunction.- Throws:
Exception
-