Package org.forgerock.http.routing
Class UriRouterContext.Builder
java.lang.Object
org.forgerock.http.routing.UriRouterContext.Builder
- Enclosing class:
- UriRouterContext
Ease
UriRouterContext
construction.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a newUriRouterContext
build from provided values.matchedUri
(String matchedUri) Set thematchedUri
value.originalUri
(URI originalUri) Set theoriginalUri
value (only first UriRouterContext is expected to have that value set).remainingUri
(String remainingUri) Set theremainingUri
value.templateVariable
(String name, String value) Add the givenname
:value
pair in thevariables
map.templateVariables
(Map<String, String> variables) Set thevariables
value.
-
Method Details
-
matchedUri
Set thematchedUri
value.- Parameters:
matchedUri
- matched uri- Returns:
- this builder
-
remainingUri
Set theremainingUri
value.- Parameters:
remainingUri
- remaining uri- Returns:
- this builder
-
originalUri
Set theoriginalUri
value (only first UriRouterContext is expected to have that value set).- Parameters:
originalUri
- original uri- Returns:
- this builder
-
templateVariables
Set thevariables
value.- Parameters:
variables
- matched variables- Returns:
- this builder
-
templateVariable
Add the givenname
:value
pair in thevariables
map.- Parameters:
name
- matched variable namevalue
- matched variable value- Returns:
- this builder
-
build
Returns a newUriRouterContext
build from provided values.- Returns:
- a new
UriRouterContext
.
-