public static class UriRouterContext.Builder extends Object
UriRouterContext
construction.Modifier and Type | Method and Description |
---|---|
UriRouterContext |
build()
Returns a new
UriRouterContext build from provided values. |
UriRouterContext.Builder |
matchedUri(String matchedUri)
Set the
matchedUri value. |
UriRouterContext.Builder |
originalUri(URI originalUri)
Set the
originalUri value (only first UriRouterContext is expected to have that value set). |
UriRouterContext.Builder |
remainingUri(String remainingUri)
Set the
remainingUri value. |
UriRouterContext.Builder |
templateVariable(String name,
String value)
Add the given
name :value pair in the variables map. |
UriRouterContext.Builder |
templateVariables(Map<String,String> variables)
Set the
variables value. |
public UriRouterContext.Builder matchedUri(String matchedUri)
matchedUri
value.matchedUri
- matched uripublic UriRouterContext.Builder remainingUri(String remainingUri)
remainingUri
value.remainingUri
- remaining uripublic UriRouterContext.Builder originalUri(URI originalUri)
originalUri
value (only first UriRouterContext is expected to have that value set).originalUri
- original uripublic UriRouterContext.Builder templateVariables(Map<String,String> variables)
variables
value.variables
- matched variablespublic UriRouterContext.Builder templateVariable(String name, String value)
name
:value
pair in the variables
map.name
- matched variable namevalue
- matched variable valuepublic UriRouterContext build()
UriRouterContext
build from provided values.UriRouterContext
.Copyright © 2010-2018, ForgeRock All Rights Reserved.