Package net.officefloor.web.route
Class StaticWebRouteNode
java.lang.Object
net.officefloor.web.route.StaticWebRouteNode
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptioncharObtains the initialCharacter.handle(HttpMethod method, String path, int index, HttpArgument headPathParameter, ServerHttpConnection connection, ManagedFunctionContext<?, Indexed> context) Attempts to handle the path.
-
Constructor Details
-
StaticWebRouteNode
Instantiate.- Parameters:
characters- Static characters.nodes- FurtherWebRouteNodeinstances.
-
-
Method Details
-
getInitialCharacter
public char getInitialCharacter()Obtains the initialCharacter.- Returns:
- Initial
Character.
-
handle
public WebServicer handle(HttpMethod method, 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.
-