public final class NavigationParameterUtils extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
static String |
decodeParameter(String nameOrValue)
Decode given parameter name or value from a URL representation, using the
ENCODE_DECODE_CHARSET charset. |
static Map<String,List<String>> |
decodeParameters(Map<String,List<String>> parameters)
Decode given parameter names and values map from a URL representation, using the
ENCODE_DECODE_CHARSET
charset. |
static List<String> |
decodeParameterValues(List<String> values)
Decode given parameter values from a URL representation, using the
ENCODE_DECODE_CHARSET charset. |
static String |
encodeParameter(String nameOrValue)
Encode given parameter name or value to obtain a URL-safe representation, using the
ENCODE_DECODE_CHARSET charset. |
static Map<String,List<String>> |
encodeParameters(Map<String,List<String>> parameters)
Encode given parameter names and values map to obtain a URL-safe representation, using the
ENCODE_DECODE_CHARSET charset. |
static List<String> |
encodeParameterValues(List<String> values)
Encode given parameter values to obtain a URL-safe representation, using the
ENCODE_DECODE_CHARSET
charset. |
static Map<String,List<String>> |
getQueryParameters(String queryPart)
Get the given URI query part as a map of query parameter name and values.
|
static <T> List<String> |
serializePathParameters(List<T> parameters)
Serialize given path parameters.
|
static Map<String,List<String>> |
serializeQueryParameters(Map<String,Object> parameters)
Serialize given query parameters.
|
public static String encodeParameter(String nameOrValue)
ENCODE_DECODE_CHARSET charset.nameOrValue - The parameter name or value to encodeInvalidNavigationParameterException - If an encoding error occurspublic static List<String> encodeParameterValues(List<String> values)
ENCODE_DECODE_CHARSET
charset.values - The parameter values to encodeInvalidNavigationParameterException - If an encoding error occurspublic static Map<String,List<String>> encodeParameters(Map<String,List<String>> parameters)
ENCODE_DECODE_CHARSET charset.parameters - The parameter names and values map to encodeInvalidNavigationParameterException - If an encoding error occurspublic static String decodeParameter(String nameOrValue)
ENCODE_DECODE_CHARSET charset.nameOrValue - The parameter name or value to decodeInvalidNavigationParameterException - If a decoding error occurspublic static List<String> decodeParameterValues(List<String> values)
ENCODE_DECODE_CHARSET charset.values - The parameter values to decodeInvalidNavigationParameterException - If a decoding error occurspublic static Map<String,List<String>> decodeParameters(Map<String,List<String>> parameters)
ENCODE_DECODE_CHARSET
charset.parameters - The parameter names and values map to decodeInvalidNavigationParameterException - If a decoding error occurspublic static Map<String,List<String>> serializeQueryParameters(Map<String,Object> parameters)
parameters - The query parameterspublic static <T> List<String> serializePathParameters(List<T> parameters)
T - Parameter value typeparameters - The path parameters valuespublic static Map<String,List<String>> getQueryParameters(String queryPart)
queryPart - The query part (excluding the ? character)Copyright © 2020 The Holon Platform. All rights reserved.