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
WebRouteNodefor 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 chargetInitialCharacter()Obtains the initialCharacter.WebServicerhandle(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- FurtherWebRouteNodeinstances.
-
-
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:WebRouteNodeAttempts to handle the path.- Specified by:
handlein interfaceWebRouteNode- Parameters:
method-HttpMethod.path- Path.index- Index into the path.headPathParameter- HeadHttpArgumentfrom the path.connection-ServerHttpConnection.context-ManagedFunctionContext.- Returns:
WebServicer.
-
-