Package net.officefloor.web.route
Interface WebServicer
public interface WebServicer
Servicer for web route.
- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumResult of matching. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic WebServicergetBestMatch(HttpMethod method, String path, int index, HttpArgument headPathParameter, ServerHttpConnection connection, ManagedFunctionContext<?, Indexed> context, WebRouteNode[] nodes) Obtains the bestWebServicerfor theWebRouteNodeinstances.Obtains theWebServicer.WebRouteMatchEnum.static booleanisMatch(WebServicer result) Convenience method to indicate if a match.voidservice(ServerHttpConnection connection) Services theServerHttpConnection.
-
Field Details
-
NO_MATCH
-
-
Method Details
-
getMatchResult
WebServicer.WebRouteMatchEnum getMatchResult()Obtains theWebServicer.WebRouteMatchEnum.- Returns:
WebServicer.WebRouteMatchEnum.
-
service
Services theServerHttpConnection.- Parameters:
connection-ServerHttpConnection.
-
isMatch
Convenience method to indicate if a match.- Parameters:
result-WebServicer.- Returns:
trueif a match.
-
getBestMatch
static WebServicer getBestMatch(HttpMethod method, String path, int index, HttpArgument headPathParameter, ServerHttpConnection connection, ManagedFunctionContext<?, Indexed> context, WebRouteNode[] nodes) Obtains the bestWebServicerfor theWebRouteNodeinstances.- Parameters:
method-HttpMethod.path- Path.index- Index within the path.headPathParameter- HeadHttpArgument.connection-ServerHttpConnection.context-ManagedFunctionContext.nodes-WebRouteNodeinstances to match on.- Returns:
- Best
WebServicer.
-