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
EaseUriRouterContextconstruction. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UriRouterContextbuild()Returns a newUriRouterContextbuild from provided values.UriRouterContext.BuildermatchedUri(String matchedUri)Set thematchedUrivalue.UriRouterContext.BuilderoriginalUri(URI originalUri)Set theoriginalUrivalue (only first UriRouterContext is expected to have that value set).UriRouterContext.BuilderremainingUri(String remainingUri)Set theremainingUrivalue.UriRouterContext.BuildertemplateVariable(String name, String value)Add the givenname:valuepair in thevariablesmap.UriRouterContext.BuildertemplateVariables(Map<String,String> variables)Set thevariablesvalue. 
 - 
 
- 
- 
Method Detail
- 
matchedUri
public UriRouterContext.Builder matchedUri(String matchedUri)
Set thematchedUrivalue.- Parameters:
 matchedUri- matched uri- Returns:
 - this builder
 
 
- 
remainingUri
public UriRouterContext.Builder remainingUri(String remainingUri)
Set theremainingUrivalue.- Parameters:
 remainingUri- remaining uri- Returns:
 - this builder
 
 
- 
originalUri
public UriRouterContext.Builder originalUri(URI originalUri)
Set theoriginalUrivalue (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 thevariablesvalue.- Parameters:
 variables- matched variables- Returns:
 - this builder
 
 
- 
templateVariable
public UriRouterContext.Builder templateVariable(String name, String value)
Add the givenname:valuepair in thevariablesmap.- Parameters:
 name- matched variable namevalue- matched variable value- Returns:
 - this builder
 
 
- 
build
public UriRouterContext build()
Returns a newUriRouterContextbuild from provided values.- Returns:
 - a new 
UriRouterContext. 
 
 - 
 
 -