public static enum DefaultUriBuilderFactory.EncodingMode extends java.lang.Enum<DefaultUriBuilderFactory.EncodingMode>
Enum Constant and Description |
---|
NONE
No encoding should be applied.
|
URI_COMPONENT
The default way of encoding that
UriComponents supports:
Expand URI variables. |
VALUES_ONLY
Comprehensive encoding of URI variable values prior to expanding:
Apply
UriUtils.encode(String, Charset) to each URI variable value. |
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 URI_COMPONENT
UriComponents
supports:
UriComponents.encode(Charset)
.
This mode does not encode all characters with
reserved meaning but only the ones that are illegal within a given
URI component as defined in RFC 396. This matches the way the
multi-argument URI
constructor does encoding.
public static final DefaultUriBuilderFactory.EncodingMode VALUES_ONLY
UriUtils.encode(String, Charset)
to each URI variable value.
This mode encodes all characters with reserved meaning, therefore ensuring that expanded URI variable do not have any impact on the structure or meaning of the URI.
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