Interface RouteParams
public sealed interface RouteParams
Parameters extracted from a
Request-
Method Summary
Modifier and TypeMethodDescriptionstatic RouteParamsget(HttpExchange exchange) param(int pos) Retrieves a positional parameter.Retrieves a named parameter.default voidset(HttpExchange exchange)
-
Method Details
-
param
Retrieves a positional parameter.- Parameters:
pos- The position of the parameter.- Returns:
- The parameter, if there is one.
-
param
Retrieves a named parameter.- Parameters:
name- The name of the parameter.- Returns:
- The parameter, if there is one.
-
get
-
set
-