Package net.officefloor.web.route
Interface WebServicer
-
public interface WebServicer
Servicer for web route.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
WebServicer.WebRouteMatchEnum
Result of matching.
-
Field Summary
Fields Modifier and Type Field Description static WebServicer
NO_MATCH
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static WebServicer
getBestMatch(HttpMethod method, java.lang.String path, int index, HttpArgument headPathParameter, ServerHttpConnection connection, ManagedFunctionContext<?,Indexed> context, WebRouteNode[] nodes)
Obtains the bestWebServicer
for theWebRouteNode
instances.WebServicer.WebRouteMatchEnum
getMatchResult()
Obtains theWebServicer.WebRouteMatchEnum
.static boolean
isMatch(WebServicer result)
Convenience method to indicate if a match.void
service(ServerHttpConnection connection)
Services theServerHttpConnection
.
-
-
-
Field Detail
-
NO_MATCH
static final WebServicer NO_MATCH
-
-
Method Detail
-
getMatchResult
WebServicer.WebRouteMatchEnum getMatchResult()
Obtains theWebServicer.WebRouteMatchEnum
.- Returns:
WebServicer.WebRouteMatchEnum
.
-
service
void service(ServerHttpConnection connection)
Services theServerHttpConnection
.- Parameters:
connection
-ServerHttpConnection
.
-
isMatch
static boolean isMatch(WebServicer result)
Convenience method to indicate if a match.- Parameters:
result
-WebServicer
.- Returns:
true
if a match.
-
getBestMatch
static WebServicer getBestMatch(HttpMethod method, java.lang.String path, int index, HttpArgument headPathParameter, ServerHttpConnection connection, ManagedFunctionContext<?,Indexed> context, WebRouteNode[] nodes)
Obtains the bestWebServicer
for theWebRouteNode
instances.- Parameters:
method
-HttpMethod
.path
- Path.index
- Index within the path.headPathParameter
- HeadHttpArgument
.connection
-ServerHttpConnection
.context
-ManagedFunctionContext
.nodes
-WebRouteNode
instances to match on.- Returns:
- Best
WebServicer
.
-
-