public static enum HttpPostRequestEncoder.EncoderMode extends java.lang.Enum<HttpPostRequestEncoder.EncoderMode>
枚举常量和说明 |
---|
HTML5
The HTML5 spec disallows mixed mode in multipart/form-data
requests.
|
RFC1738
Legacy mode which should work for most.
|
RFC3986
Mode which is more new and is used for OAUTH
|
限定符和类型 | 方法和说明 |
---|---|
static HttpPostRequestEncoder.EncoderMode |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static HttpPostRequestEncoder.EncoderMode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final HttpPostRequestEncoder.EncoderMode RFC1738
RFC3986
. The W3C form recommentations this for submitting post form data.public static final HttpPostRequestEncoder.EncoderMode RFC3986
public static final HttpPostRequestEncoder.EncoderMode HTML5
public static HttpPostRequestEncoder.EncoderMode[] values()
for (HttpPostRequestEncoder.EncoderMode c : HttpPostRequestEncoder.EncoderMode.values()) System.out.println(c);
public static HttpPostRequestEncoder.EncoderMode valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值