Package net.officefloor.web.route
Class LeafWebRouteNode
java.lang.Object
net.officefloor.web.route.LeafWebRouteNode
- All Implemented Interfaces:
WebRouteNode
Leaf
WebRouteNode that services the HttpRequest.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.officefloor.web.route.WebRouteNode
WebRouteNode.WebRouteResultEnum -
Constructor Summary
ConstructorsConstructorDescriptionLeafWebRouteNode(String[] allowedMethods, Map<HttpMethod.HttpMethodEnum, LeafWebRouteHandling> handlers, boolean isWildcardOnlyMatch) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionhandle(HttpMethod method, String path, int index, HttpArgument headPathArgument, ServerHttpConnection connection, ManagedFunctionContext<?, Indexed> context) Attempts to handle the path.
-
Constructor Details
-
LeafWebRouteNode
public LeafWebRouteNode(String[] allowedMethods, Map<HttpMethod.HttpMethodEnum, LeafWebRouteHandling> handlers, boolean isWildcardOnlyMatch) Instantiate.- Parameters:
allowedMethods- AllowedHttpMethodnames.handlers-LeafWebRouteHandlinginstances by theirHttpMethod.isWildcardOnlyMatch- Indicates matching all paths.
-
-
Method Details
-
handle
public WebServicer handle(HttpMethod method, String path, int index, HttpArgument headPathArgument, ServerHttpConnection connection, ManagedFunctionContext<?, Indexed> context) Description copied from interface:WebRouteNodeAttempts to handle the path.- Specified by:
handlein interfaceWebRouteNode- Parameters:
method-HttpMethod.path- Path.index- Index into the path.headPathArgument- HeadHttpArgumentfrom the path.connection-ServerHttpConnection.context-ManagedFunctionContext.- Returns:
WebServicer.
-