public static enum HttpPostRequestEncoder.EncoderMode extends java.lang.Enum<HttpPostRequestEncoder.EncoderMode>
Enum Constant and Description |
---|
HTML5
HTML5规范禁止在多部分/表单数据请求中使用混合模式。
|
RFC1738
传统模式应该最适用。
|
RFC3986
更新的模式,用于OAUTH
|
Modifier and Type | Method and Description |
---|---|
static HttpPostRequestEncoder.EncoderMode |
valueOf(java.lang.String name)
以指定名称返回此类型的枚举常量。
|
static HttpPostRequestEncoder.EncoderMode[] |
values()
按照声明的顺序返回包含此枚举类型常量的数组。
|
public static final HttpPostRequestEncoder.EncoderMode RFC1738
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
- 如果参数为null
Copyright © 2008–2018 The Netty Project. All rights reserved.