Package net.officefloor.web.route
Interface WebServicer
-
public interface WebServicerServicer for web route.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classWebServicer.WebRouteMatchEnumResult of matching.
-
Field Summary
Fields Modifier and Type Field Description static WebServicerNO_MATCH
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static WebServicergetBestMatch(HttpMethod method, java.lang.String path, int index, HttpArgument headPathParameter, ServerHttpConnection connection, ManagedFunctionContext<?,Indexed> context, WebRouteNode[] nodes)Obtains the bestWebServicerfor theWebRouteNodeinstances.WebServicer.WebRouteMatchEnumgetMatchResult()Obtains theWebServicer.WebRouteMatchEnum.static booleanisMatch(WebServicer result)Convenience method to indicate if a match.voidservice(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:
trueif 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 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.
-
-