Package net.officefloor.web.route
Class StaticWebRouteNode
- java.lang.Object
-
- net.officefloor.web.route.StaticWebRouteNode
-
- All Implemented Interfaces:
WebRouteNode
public class StaticWebRouteNode extends java.lang.Object implements WebRouteNode
WebRouteNode
for static characters.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.officefloor.web.route.WebRouteNode
WebRouteNode.WebRouteResultEnum
-
-
Constructor Summary
Constructors Constructor Description StaticWebRouteNode(char[] characters, WebRouteNode[] nodes)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
getInitialCharacter()
Obtains the initialCharacter
.WebServicer
handle(HttpMethod method, java.lang.String path, int index, HttpArgument headPathParameter, ServerHttpConnection connection, ManagedFunctionContext<?,Indexed> context)
Attempts to handle the path.
-
-
-
Constructor Detail
-
StaticWebRouteNode
public StaticWebRouteNode(char[] characters, WebRouteNode[] nodes)
Instantiate.- Parameters:
characters
- Static characters.nodes
- FurtherWebRouteNode
instances.
-
-
Method Detail
-
getInitialCharacter
public char getInitialCharacter()
Obtains the initialCharacter
.- Returns:
- Initial
Character
.
-
handle
public WebServicer handle(HttpMethod method, java.lang.String path, int index, HttpArgument headPathParameter, 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.headPathParameter
- HeadHttpArgument
from the path.connection
-ServerHttpConnection
.context
-ManagedFunctionContext
.- Returns:
WebServicer
.
-
-