Package net.officefloor.web
Class HttpRouter
- java.lang.Object
-
- net.officefloor.web.HttpRouter
-
public class HttpRouter extends java.lang.ObjectRoutes theServerHttpConnection.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description HttpRouter(WebRouter router, int nonHandledFlowIndex)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureRoutes(java.util.List<HttpRouteSectionSource.RouteInput> routes, ManagedFunctionTypeBuilder<?,Indexed> function)Configures theManagedFunctionTypeBuilderwith theFlowinstances for routing.java.lang.Objectroute(ServerHttpConnection connection, ManagedFunctionContext<?,Indexed> context)Routes theServerHttpConnection.
-
-
-
Method Detail
-
configureRoutes
public void configureRoutes(java.util.List<HttpRouteSectionSource.RouteInput> routes, ManagedFunctionTypeBuilder<?,Indexed> function)
Configures theManagedFunctionTypeBuilderwith theFlowinstances for routing.- Parameters:
routes-ListofHttpRouteSectionSource.RouteInputinstances for the application.function-ManagedFunctionTypeBuilderto be configured with theFlowinstances.
-
route
public java.lang.Object route(ServerHttpConnection connection, ManagedFunctionContext<?,Indexed> context)
Routes theServerHttpConnection.- Parameters:
connection-ServerHttpConnection.context-ManagedFunctionContext.- Returns:
- Argument for the next
ManagedFunction.
-
-