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
WebRouteNodefor 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 WebServicerhandle(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- FurtherStaticWebRouteNodeinstances.leafNode-LeafWebRouteNodeshould the parameter finish the path. May benullif 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: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.
-
-