Package net.officefloor.web
Class HttpRouter
java.lang.Object
net.officefloor.web.HttpRouter
Routes the
ServerHttpConnection.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureRoutes(List<HttpRouteSectionSource.RouteInput> routes, ManagedFunctionTypeBuilder<?, Indexed> function) Configures theManagedFunctionTypeBuilderwith theFlowinstances for routing.route(ServerHttpConnection connection, ManagedFunctionContext<?, Indexed> context) Routes theServerHttpConnection.
-
Constructor Details
-
Method Details
-
configureRoutes
public void configureRoutes(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
Routes theServerHttpConnection.- Parameters:
connection-ServerHttpConnection.context-ManagedFunctionContext.- Returns:
- Argument for the next
ManagedFunction.
-