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