Package net.officefloor.web.route
Class LeafWebRouteNode
- java.lang.Object
-
- net.officefloor.web.route.LeafWebRouteNode
-
- All Implemented Interfaces:
WebRouteNode
public class LeafWebRouteNode extends java.lang.Object implements WebRouteNode
LeafWebRouteNode
that services theHttpRequest
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.officefloor.web.route.WebRouteNode
WebRouteNode.WebRouteResultEnum
-
-
Constructor Summary
Constructors Constructor Description LeafWebRouteNode(java.lang.String[] allowedMethods, java.util.Map<HttpMethod.HttpMethodEnum,LeafWebRouteHandling> handlers, boolean isWildcardOnlyMatch)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebServicer
handle(HttpMethod method, java.lang.String path, int index, HttpArgument headPathArgument, ServerHttpConnection connection, ManagedFunctionContext<?,Indexed> context)
Attempts to handle the path.
-
-
-
Constructor Detail
-
LeafWebRouteNode
public LeafWebRouteNode(java.lang.String[] allowedMethods, java.util.Map<HttpMethod.HttpMethodEnum,LeafWebRouteHandling> handlers, boolean isWildcardOnlyMatch)
Instantiate.- Parameters:
allowedMethods
- AllowedHttpMethod
names.handlers
-LeafWebRouteHandling
instances by theirHttpMethod
.isWildcardOnlyMatch
- Indicates matching all paths.
-
-
Method Detail
-
handle
public WebServicer handle(HttpMethod method, java.lang.String path, int index, HttpArgument headPathArgument, ServerHttpConnection connection, ManagedFunctionContext<?,Indexed> context)
Description copied from interface:WebRouteNode
Attempts to handle the path.- Specified by:
handle
in interfaceWebRouteNode
- Parameters:
method
-HttpMethod
.path
- Path.index
- Index into the path.headPathArgument
- HeadHttpArgument
from the path.connection
-ServerHttpConnection
.context
-ManagedFunctionContext
.- Returns:
WebServicer
.
-
-