public static enum DefaultUriBuilderFactory.EncodingMode extends java.lang.Enum<DefaultUriBuilderFactory.EncodingMode>
Enum Constant and Description |
---|
NONE
No encoding should be applied.
|
TEMPLATE_AND_VALUES
Pre-encode the URI template first, then strictly encode URI variables
when expanded, with the following rules:
For the URI template replace only non-ASCII and illegal
(within a given URI component type) characters with escaped octets.
|
URI_COMPONENT
Expand URI variables first, and then encode the resulting URI
component values, replacing only non-ASCII and illegal
(within a given URI component type) characters, but not characters
with reserved meaning.
|
VALUES_ONLY
Does not encode the URI template and instead applies strict encoding
to URI variables via
UriUtils.encodeUriVariables(java.util.Map<java.lang.String, ?>) prior to
expanding them into the template. |
Modifier and Type | Method and Description |
---|---|
static DefaultUriBuilderFactory.EncodingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DefaultUriBuilderFactory.EncodingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultUriBuilderFactory.EncodingMode TEMPLATE_AND_VALUES
For most cases, this mode is most likely to give the expected
result because in treats URI variables as opaque data to be fully
encoded, while URI_COMPONENT
by comparison is useful only
if intentionally expanding URI variables with reserved characters.
UriComponentsBuilder.encode()
public static final DefaultUriBuilderFactory.EncodingMode VALUES_ONLY
UriUtils.encodeUriVariables(java.util.Map<java.lang.String, ?>)
prior to
expanding them into the template.public static final DefaultUriBuilderFactory.EncodingMode URI_COMPONENT
UriComponents.encode()
public static final DefaultUriBuilderFactory.EncodingMode NONE
public static DefaultUriBuilderFactory.EncodingMode[] values()
for (DefaultUriBuilderFactory.EncodingMode c : DefaultUriBuilderFactory.EncodingMode.values()) System.out.println(c);
public static DefaultUriBuilderFactory.EncodingMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null