public static enum UrlQuery.EncodeMode extends Enum<UrlQuery.EncodeMode>
Enum Constant and Description |
---|
FORM_URL_ENCODED
x-www-form-urlencoded模式,此模式下空格会编码为'+',"~"和"*"会被转义
|
NORMAL
正常模式(宽松模式),这种模式下,部分分隔符无需转义
|
STRICT
严格模式,此模式下,非UNRESERVED的字符都会被转义
|
Modifier and Type | Method and Description |
---|---|
static UrlQuery.EncodeMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UrlQuery.EncodeMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UrlQuery.EncodeMode NORMAL
public static final UrlQuery.EncodeMode FORM_URL_ENCODED
public static final UrlQuery.EncodeMode STRICT
public static UrlQuery.EncodeMode[] values()
for (UrlQuery.EncodeMode c : UrlQuery.EncodeMode.values()) System.out.println(c);
public static UrlQuery.EncodeMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2025. All rights reserved.