Package net.officefloor.web.route
Class ParameterWebRouteNode
- java.lang.Object
-
- net.officefloor.web.route.ParameterWebRouteNode
-
- All Implemented Interfaces:
WebRouteNode
public class ParameterWebRouteNode extends java.lang.Object implements WebRouteNode
WebRouteNode
for a path parameter.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.officefloor.web.route.WebRouteNode
WebRouteNode.WebRouteResultEnum
-
-
Constructor Summary
Constructors Constructor Description ParameterWebRouteNode(StaticWebRouteNode[] nodes, LeafWebRouteNode leafNode)
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
-
ParameterWebRouteNode
public ParameterWebRouteNode(StaticWebRouteNode[] nodes, LeafWebRouteNode leafNode)
Instantiate.- Parameters:
nodes
- FurtherStaticWebRouteNode
instances.leafNode
-LeafWebRouteNode
should the parameter finish the path. May benull
if parameter is always embedded in middle of the path.
-
-
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
.
-
-