Package net.officefloor.web
Class HttpRouter
- java.lang.Object
-
- net.officefloor.web.HttpRouter
-
public class HttpRouter extends java.lang.Object
Routes 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 void
configureRoutes(java.util.List<HttpRouteSectionSource.RouteInput> routes, ManagedFunctionTypeBuilder<?,Indexed> function)
Configures theManagedFunctionTypeBuilder
with theFlow
instances for routing.java.lang.Object
route(ServerHttpConnection connection, ManagedFunctionContext<?,Indexed> context)
Routes theServerHttpConnection
.
-
-
-
Method Detail
-
configureRoutes
public void configureRoutes(java.util.List<HttpRouteSectionSource.RouteInput> routes, ManagedFunctionTypeBuilder<?,Indexed> function)
Configures theManagedFunctionTypeBuilder
with theFlow
instances for routing.- Parameters:
routes
-List
ofHttpRouteSectionSource.RouteInput
instances for the application.function
-ManagedFunctionTypeBuilder
to be configured with theFlow
instances.
-
route
public java.lang.Object route(ServerHttpConnection connection, ManagedFunctionContext<?,Indexed> context)
Routes theServerHttpConnection
.- Parameters:
connection
-ServerHttpConnection
.context
-ManagedFunctionContext
.- Returns:
- Argument for the next
ManagedFunction
.
-
-