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 newUriRouterContextbuild from provided values.matchedUri(String matchedUri) Set thematchedUrivalue.originalUri(URI originalUri) Set theoriginalUrivalue (only first UriRouterContext is expected to have that value set).remainingUri(String remainingUri) Set theremainingUrivalue.templateVariable(String name, String value) Add the givenname:valuepair in thevariablesmap.templateVariables(Map<String, String> variables) Set thevariablesvalue. 
- 
Method Details
- 
matchedUri
Set thematchedUrivalue.- Parameters:
 matchedUri- matched uri- Returns:
 - this builder
 
 - 
remainingUri
Set theremainingUrivalue.- Parameters:
 remainingUri- remaining uri- Returns:
 - this builder
 
 - 
originalUri
Set theoriginalUrivalue (only first UriRouterContext is expected to have that value set).- Parameters:
 originalUri- original uri- Returns:
 - this builder
 
 - 
templateVariables
Set thevariablesvalue.- Parameters:
 variables- matched variables- Returns:
 - this builder
 
 - 
templateVariable
Add the givenname:valuepair in thevariablesmap.- Parameters:
 name- matched variable namevalue- matched variable value- Returns:
 - this builder
 
 - 
build
Returns a newUriRouterContextbuild from provided values.- Returns:
 - a new 
UriRouterContext. 
 
 -