B - Concrete builder typepublic abstract class AbstractNavigationURLBuilder<B extends NavigationURLBuilder<B>> extends Object implements NavigationURLBuilder<B>
NavigationURLBuilder implementation.| Constructor and Description |
|---|
AbstractNavigationURLBuilder(String path)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
B |
encodeQueryParameters(boolean encode)
Set whether to URL-encode the query parameter names and values, using the
UTF-8 charset. |
<T> B |
withPathParameter(T pathParameter)
Add a URL path parameter value to be included in the navigation URL.
|
<T> B |
withQueryParameter(String name,
List<T> values)
Add query parameter values to be included in the navigation URL.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithQueryParameterpublic AbstractNavigationURLBuilder(String path)
path - The navigation pathpublic <T> B withQueryParameter(String name, List<T> values)
NavigationURLBuilder
If one or more values was previously associated to given parameter name, the given
values will be added to the existing values set.
withQueryParameter in interface NavigationURLBuilder<B extends NavigationURLBuilder<B>>T - Parameter typename - The parameter name (not null)values - The parameter valuespublic <T> B withPathParameter(T pathParameter)
NavigationURLBuilderwithPathParameter in interface NavigationURLBuilder<B extends NavigationURLBuilder<B>>T - Parameter typepathParameter - The parameter value (not null)public B encodeQueryParameters(boolean encode)
NavigationURLBuilderUTF-8 charset.
Default is true.
encodeQueryParameters in interface NavigationURLBuilder<B extends NavigationURLBuilder<B>>encode - Whether to URL-encode the query parameterCopyright © 2020 The Holon Platform. All rights reserved.