Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
ebc5fea7
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ebc5fea7
编写于
8月 04, 2014
作者:
S
Sebastien Deleuze
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add more HttpHeaders constants for standard HTTP headers
Issue: SPR-12063
上级
d6b1cdc5
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
243 addition
and
18 deletion
+243
-18
spring-web/src/main/java/org/springframework/http/HttpHeaders.java
...b/src/main/java/org/springframework/http/HttpHeaders.java
+243
-18
未找到文件。
spring-web/src/main/java/org/springframework/http/HttpHeaders.java
浏览文件 @
ebc5fea7
...
...
@@ -53,48 +53,273 @@ import org.springframework.util.StringUtils;
* <p>Inspired by {@link com.sun.net.httpserver.Headers}.
*
* @author Arjen Poutsma
* @author Sebastien Deleuze
* @since 3.0
*/
public
class
HttpHeaders
implements
MultiValueMap
<
String
,
String
>,
Serializable
{
private
static
final
long
serialVersionUID
=
-
8578554704772377436L
;
/**
* The HTTP {@code Accept} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-5.3.2">Section 5.3.2 of RFC 7231</a>
*/
public
static
final
String
ACCEPT
=
"Accept"
;
/**
* The HTTP {@code Accept-Charset} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-5.3.3">Section 5.3.3 of RFC 7231</a>
*/
public
static
final
String
ACCEPT_CHARSET
=
"Accept-Charset"
;
/**
* The HTTP {@code Accept-Encoding} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-5.3.4">Section 5.3.4 of RFC 7231</a>
*/
public
static
final
String
ACCEPT_ENCODING
=
"Accept-Encoding"
;
/**
* The HTTP {@code Accept-Language} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-5.3.5">Section 5.3.5 of RFC 7231</a>
*/
public
static
final
String
ACCEPT_LANGUAGE
=
"Accept-Language"
;
/**
* The HTTP {@code Accept-Ranges} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7233#section-2.3">Section 5.3.5 of RFC 7233</a>
*/
public
static
final
String
ACCEPT_RANGES
=
"Accept-Ranges"
;
/**
* The HTTP {@code Age} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7234#section-5.1">Section 5.1 of RFC 7234</a>
*/
public
static
final
String
AGE
=
"Age"
;
/**
* The HTTP {@code Allow} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-7.4.1">Section 7.4.1 of RFC 7231</a>
*/
public
static
final
String
ALLOW
=
"Allow"
;
/**
* The HTTP {@code Authorization} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7235#section-4.2">Section 4.2 of RFC 7235</a>
*/
public
static
final
String
AUTHORIZATION
=
"Authorization"
;
/**
* The HTTP {@code Cache-Control} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7234#section-5.2">Section 5.2 of RFC 7234</a>
*/
public
static
final
String
CACHE_CONTROL
=
"Cache-Control"
;
/**
* The HTTP {@code Connection} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7230#section-6.1">Section 6.1 of RFC 7230</a>
*/
public
static
final
String
CONNECTION
=
"Connection"
;
/**
* The HTTP {@code Content-Encoding} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-3.1.2.2">Section 3.1.2.2 of RFC 7231</a>
*/
public
static
final
String
CONTENT_ENCODING
=
"Content-Encoding"
;
/**
* The HTTP {@code Content-Disposition} header field name
* @see <a href="http://tools.ietf.org/html/rfc6266">RFC 6266</a>
*/
public
static
final
String
CONTENT_DISPOSITION
=
"Content-Disposition"
;
/**
* The HTTP {@code Content-Language} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-3.1.3.2">Section 3.1.3.2 of RFC 7231</a>
*/
public
static
final
String
CONTENT_LANGUAGE
=
"Content-Language"
;
/**
* The HTTP {@code Content-Length} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7230#section-3.3.2">Section 3.3.2 of RFC 7230</a>
*/
public
static
final
String
CONTENT_LENGTH
=
"Content-Length"
;
/**
* The HTTP {@code Content-Location} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-3.1.4.2">Section 3.1.4.2 of RFC 7231</a>
*/
public
static
final
String
CONTENT_LOCATION
=
"Content-Location"
;
/**
* The HTTP {@code Content-Range} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7233#section-4.2">Section 4.2 of RFC 7233</a>
*/
public
static
final
String
CONTENT_RANGE
=
"Content-Range"
;
/**
* The HTTP {@code Content-Type} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-3.1.1.5">Section 3.1.1.5 of RFC 7231</a>
*/
public
static
final
String
CONTENT_TYPE
=
"Content-Type"
;
/**
* The HTTP {@code Cookie} header field name.
* @see <a href="http://tools.ietf.org/html/rfc2109#section-4.3.4">Section 4.3.4 of RFC 2109</a>
*/
public
static
final
String
COOKIE
=
"Cookie"
;
/**
* The HTTP {@code Date} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-7.1.1.2">Section 7.1.1.2 of RFC 7231</a>
*/
public
static
final
String
DATE
=
"Date"
;
/**
* The HTTP {@code ETag} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7232#section-2.3">Section 2.3 of RFC 7232</a>
*/
public
static
final
String
ETAG
=
"ETag"
;
/**
* The HTTP {@code Expect} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-5.1.1">Section 5.1.1 of RFC 7231</a>
*/
public
static
final
String
EXPECT
=
"Expect"
;
/**
* The HTTP {@code Expires} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7234#section-5.3">Section 5.3 of RFC 7234</a>
*/
public
static
final
String
EXPIRES
=
"Expires"
;
/**
* The HTTP {@code From} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-5.5.1">Section 5.5.1 of RFC 7231</a>
*/
public
static
final
String
FROM
=
"From"
;
/**
* The HTTP {@code Host} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7230#section-5.4">Section 5.4 of RFC 7230</a>
*/
public
static
final
String
HOST
=
"Host"
;
/**
* The HTTP {@code If-Match} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7232#section-3.1">Section 3.1 of RFC 7232</a>
*/
public
static
final
String
IF_MATCH
=
"If-Match"
;
/**
* The HTTP {@code If-Modified-Since} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7232#section-3.3">Section 3.3 of RFC 7232</a>
*/
public
static
final
String
IF_MODIFIED_SINCE
=
"If-Modified-Since"
;
/**
* The HTTP {@code If-None-Match} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7232#section-3.2">Section 3.2 of RFC 7232</a>
*/
public
static
final
String
IF_NONE_MATCH
=
"If-None-Match"
;
/**
* The HTTP {@code If-Range} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7233#section-3.2">Section 3.2 of RFC 7233</a>
*/
public
static
final
String
IF_RANGE
=
"If-Range"
;
/**
* The HTTP {@code If-Unmodified-Since} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7232#section-3.4">Section 3.4 of RFC 7232</a>
*/
public
static
final
String
IF_UNMODIFIED_SINCE
=
"If-Unmodified-Since"
;
/**
* The HTTP {@code Last-Modified} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7232#section-2.2">Section 2.2 of RFC 7232</a>
*/
public
static
final
String
LAST_MODIFIED
=
"Last-Modified"
;
/**
* The HTTP {@code Link} header field name.
* @see <a href="http://tools.ietf.org/html/rfc5988">RFC 5988</a>
*/
public
static
final
String
LINK
=
"Link"
;
/**
* The HTTP {@code Location} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-7.1.2">Section 7.1.2 of RFC 7231</a>
*/
public
static
final
String
LOCATION
=
"Location"
;
/**
* The HTTP {@code Max-Forwards} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-5.1.2">Section 5.1.2 of RFC 7231</a>
*/
public
static
final
String
MAX_FORWARDS
=
"Max-Forwards"
;
/**
* The HTTP {@code Origin} header field name.
* @see <a href="http://tools.ietf.org/html/rfc6454">RFC 6454</a>
*/
public
static
final
String
ORIGIN
=
"Origin"
;
/**
* The HTTP {@code Pragma} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7234#section-5.4">Section 5.4 of RFC 7234</a>
*/
public
static
final
String
PRAGMA
=
"Pragma"
;
/**
* The HTTP {@code Proxy-Authenticate} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7235#section-4.3">Section 4.3 of RFC 7235</a>
*/
public
static
final
String
PROXY_AUTHENTICATE
=
"Proxy-Authenticate"
;
/**
* The HTTP {@code Proxy-Authorization} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7235#section-4.4">Section 4.4 of RFC 7235</a>
*/
public
static
final
String
PROXY_AUTHORIZATION
=
"Proxy-Authorization"
;
/**
* The HTTP {@code Range} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7233#section-3.1">Section 3.1 of RFC 7233</a>
*/
public
static
final
String
RANGE
=
"Range"
;
/**
* The HTTP {@code Referer} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-5.5.2">Section 5.5.2 of RFC 7231</a>
*/
public
static
final
String
REFERER
=
"Referer"
;
/**
* The HTTP {@code Retry-After} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-7.1.3">Section 7.1.3 of RFC 7231</a>
*/
public
static
final
String
RETRY_AFTER
=
"Retry-After"
;
/**
* The HTTP {@code Server} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-7.4.2">Section 7.4.2 of RFC 7231</a>
*/
public
static
final
String
SERVER
=
"Server"
;
/**
* The HTTP {@code Set-Cookie} header field name.
* @see <a href="http://tools.ietf.org/html/rfc2109#section-4.2.2">Section 4.2.2 of RFC 2109</a>
*/
public
static
final
String
SET_COOKIE
=
"Set-Cookie"
;
/**
* The HTTP {@code Set-Cookie2} header field name.
* @see <a href="http://tools.ietf.org/html/rfc2965">RFC 2965</a>
*/
public
static
final
String
SET_COOKIE2
=
"Set-Cookie2"
;
/**
* The HTTP {@code TE} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7230#section-4.3">Section 4.3 of RFC 7230</a>
*/
public
static
final
String
TE
=
"TE"
;
/**
* The HTTP {@code Trailer} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7230#section-4.4">Section 4.4 of RFC 7230</a>
*/
public
static
final
String
TRAILER
=
"Trailer"
;
/**
* The HTTP {@code Transfer-Encoding} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7230#section-3.3.1">Section 3.3.1 of RFC 7230</a>
*/
public
static
final
String
TRANSFER_ENCODING
=
"Transfer-Encoding"
;
/**
* The HTTP {@code Upgrade} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7230#section-6.7">Section 6.7 of RFC 7230</a>
*/
public
static
final
String
UPGRADE
=
"Upgrade"
;
/**
* The HTTP {@code User-Agent} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-5.5.3">Section 5.5.3 of RFC 7231</a>
*/
public
static
final
String
USER_AGENT
=
"User-Agent"
;
/**
* The HTTP {@code Vary} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7231#section-7.1.4">Section 7.1.4 of RFC 7231</a>
*/
public
static
final
String
VARY
=
"Vary"
;
/**
* The HTTP {@code Via} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7230#section-5.7.1">Section 5.7.1 of RFC 7230</a>
*/
public
static
final
String
VIA
=
"Via"
;
/**
* The HTTP {@code Warning} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7234#section-5.5">Section 5.5 of RFC 7234</a>
*/
public
static
final
String
WARNING
=
"Warning"
;
/**
* The HTTP {@code WWW-Authenticate} header field name.
* @see <a href="http://tools.ietf.org/html/rfc7235#section-4.1">Section 4.1 of RFC 7235</a>
*/
public
static
final
String
WWW_AUTHENTICATE
=
"WWW-Authenticate"
;
private
static
final
String
[]
DATE_FORMATS
=
new
String
[]
{
"EEE, dd MMM yyyy HH:mm:ss zzz"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录