程序包 qhs.sys
枚举 StaticName
- java.lang.Object
-
- java.lang.Enum<StaticName>
-
- qhs.sys.StaticName
-
- 所有已实现的接口:
java.io.Serializable,java.lang.Comparable<StaticName>
public enum StaticName extends java.lang.Enum<StaticName>
StaticName枚举类型定义的所有枚举值分别对应rfc7541的"Appendix A. Static Table Definition"章节给出的 静态表(static table)内部的头域名称。调用qhs.sys.ResponseHeaderCreater类创建答复头域时,引用本类型定义的枚举值作为头域名称,有利于减少网络传输数据。
-
-
枚举常量概要
枚举常量 枚举常量 说明 accept对应静态表内部的accept头域名称。accept_charset对应静态表内部的accept-charset头域名称。accept_encoding对应静态表内部的accept-encoding头域名称。accept_language对应静态表内部的accept-language头域名称。accept_ranges对应静态表内部的accept-ranges头域名称。access_control_allow_origin对应静态表内部的access-control-allow-origin头域名称。age对应静态表内部的age头域名称。allow对应静态表内部的allow头域名称。authority对应静态表内部的:authority头域名称。authorization对应静态表内部的authorization头域名称。cache_control对应静态表内部的cache-control头域名称。content_disposition对应静态表内部的content-disposition头域名称。content_encoding对应静态表内部的content-encoding头域名称。content_language对应静态表内部的content-language头域名称。content_length对应静态表内部的content-length头域名称。content_location对应静态表内部的content-location头域名称。content_range对应静态表内部的content-range头域名称。content_type对应静态表内部的content-type头域名称。cookie对应静态表内部的cookie头域名称。date对应静态表内部的date头域名称。etag对应静态表内部的etag头域名称。expect对应静态表内部的expect头域名称。expires对应静态表内部的expires头域名称。from对应静态表内部的from头域名称。host对应静态表内部的host头域名称。if_match对应静态表内部的if-match头域名称。if_modified_since对应静态表内部的if-modified-since头域名称。if_none_match对应静态表内部的if-none-match头域名称。if_range对应静态表内部的if-range头域名称。if_unmodified_since对应静态表内部的if-unmodified-since头域名称。last_modified对应静态表内部的last-modified头域名称。link对应静态表内部的link头域名称。location对应静态表内部的location头域名称。max_forwards对应静态表内部的max-forwards头域名称。method对应静态表内部的:method头域名称。path对应静态表内部的:path头域名称。proxy_authenticate对应静态表内部的proxy-authenticate头域名称。proxy_authorization对应静态表内部的proxy-authorization头域名称。range对应静态表内部的range头域名称。referer对应静态表内部的referer头域名称。refresh对应静态表内部的refresh头域名称。retry_after对应静态表内部的retry-after头域名称。scheme对应静态表内部的:scheme头域名称。server对应静态表内部的server头域名称。set_cookie对应静态表内部的set-cookie头域名称。status对应静态表内部的:status头域名称。strict_transport_security对应静态表内部的strict-transport-security头域名称。transfer_encoding对应静态表内部的transfer-encoding头域名称。user_agent对应静态表内部的user-agent头域名称。vary对应静态表内部的vary头域名称。via对应静态表内部的via头域名称。www_authenticate对应静态表内部的www-authenticate头域名称。
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetIndex()返回头域名称在静态表上的索引号。java.lang.StringgetName()返回头域的名称(即头域名称)。intgetName(byte[] buffer, int startIndex)复制头域名称到缓存区,并且返回已复制字节的个数。intgetNameLength()返回头域名称的长度。static StaticNamevalueOf(java.lang.String name)返回带有指定名称的该类型的枚举常量。static StaticName[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
authority
public static final StaticName authority
对应静态表内部的:authority头域名称。
-
method
public static final StaticName method
对应静态表内部的:method头域名称。
-
path
public static final StaticName path
对应静态表内部的:path头域名称。
-
scheme
public static final StaticName scheme
对应静态表内部的:scheme头域名称。
-
status
public static final StaticName status
对应静态表内部的:status头域名称。
-
accept_charset
public static final StaticName accept_charset
对应静态表内部的accept-charset头域名称。
-
accept_encoding
public static final StaticName accept_encoding
对应静态表内部的accept-encoding头域名称。
-
accept_language
public static final StaticName accept_language
对应静态表内部的accept-language头域名称。
-
accept_ranges
public static final StaticName accept_ranges
对应静态表内部的accept-ranges头域名称。
-
accept
public static final StaticName accept
对应静态表内部的accept头域名称。
-
access_control_allow_origin
public static final StaticName access_control_allow_origin
对应静态表内部的access-control-allow-origin头域名称。
-
age
public static final StaticName age
对应静态表内部的age头域名称。
-
allow
public static final StaticName allow
对应静态表内部的allow头域名称。
-
authorization
public static final StaticName authorization
对应静态表内部的authorization头域名称。
-
cache_control
public static final StaticName cache_control
对应静态表内部的cache-control头域名称。
-
content_disposition
public static final StaticName content_disposition
对应静态表内部的content-disposition头域名称。
-
content_encoding
public static final StaticName content_encoding
对应静态表内部的content-encoding头域名称。
-
content_language
public static final StaticName content_language
对应静态表内部的content-language头域名称。
-
content_length
public static final StaticName content_length
对应静态表内部的content-length头域名称。
-
content_location
public static final StaticName content_location
对应静态表内部的content-location头域名称。
-
content_range
public static final StaticName content_range
对应静态表内部的content-range头域名称。
-
content_type
public static final StaticName content_type
对应静态表内部的content-type头域名称。
-
cookie
public static final StaticName cookie
对应静态表内部的cookie头域名称。
-
date
public static final StaticName date
对应静态表内部的date头域名称。
-
etag
public static final StaticName etag
对应静态表内部的etag头域名称。
-
expect
public static final StaticName expect
对应静态表内部的expect头域名称。
-
expires
public static final StaticName expires
对应静态表内部的expires头域名称。
-
from
public static final StaticName from
对应静态表内部的from头域名称。
-
host
public static final StaticName host
对应静态表内部的host头域名称。
-
if_match
public static final StaticName if_match
对应静态表内部的if-match头域名称。
-
if_modified_since
public static final StaticName if_modified_since
对应静态表内部的if-modified-since头域名称。
-
if_none_match
public static final StaticName if_none_match
对应静态表内部的if-none-match头域名称。
-
if_range
public static final StaticName if_range
对应静态表内部的if-range头域名称。
-
if_unmodified_since
public static final StaticName if_unmodified_since
对应静态表内部的if-unmodified-since头域名称。
-
last_modified
public static final StaticName last_modified
对应静态表内部的last-modified头域名称。
-
link
public static final StaticName link
对应静态表内部的link头域名称。
-
location
public static final StaticName location
对应静态表内部的location头域名称。
-
max_forwards
public static final StaticName max_forwards
对应静态表内部的max-forwards头域名称。
-
proxy_authenticate
public static final StaticName proxy_authenticate
对应静态表内部的proxy-authenticate头域名称。
-
proxy_authorization
public static final StaticName proxy_authorization
对应静态表内部的proxy-authorization头域名称。
-
range
public static final StaticName range
对应静态表内部的range头域名称。
-
referer
public static final StaticName referer
对应静态表内部的referer头域名称。
-
refresh
public static final StaticName refresh
对应静态表内部的refresh头域名称。
-
retry_after
public static final StaticName retry_after
对应静态表内部的retry-after头域名称。
-
server
public static final StaticName server
对应静态表内部的server头域名称。
-
set_cookie
public static final StaticName set_cookie
对应静态表内部的set-cookie头域名称。
-
strict_transport_security
public static final StaticName strict_transport_security
对应静态表内部的strict-transport-security头域名称。
-
transfer_encoding
public static final StaticName transfer_encoding
对应静态表内部的transfer-encoding头域名称。
-
user_agent
public static final StaticName user_agent
对应静态表内部的user-agent头域名称。
-
vary
public static final StaticName vary
对应静态表内部的vary头域名称。
-
via
public static final StaticName via
对应静态表内部的via头域名称。
-
www_authenticate
public static final StaticName www_authenticate
对应静态表内部的www-authenticate头域名称。
-
-
方法详细资料
-
values
public static StaticName[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (StaticName c : StaticName.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static StaticName valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
java.lang.IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException- 如果参数为空值
-
getName
public java.lang.String getName()
返回头域的名称(即头域名称)。- 返回:
- 头域的名称。
-
getNameLength
public int getNameLength()
返回头域名称的长度。- 返回:
- 头域名称的长度。
-
getName
public int getName(byte[] buffer, int startIndex)复制头域名称到缓存区,并且返回已复制字节的个数。- 参数:
buffer- 用于存放头域名称的缓存区。startIndex- 在buffer参数上存放头域名称的开始位置。- 返回:
- 如果在buffer数组上的可用空间长度小于头域名称的长度,就返回负数,否则返回(startIndex + 头域名称的长度)值。
-
getIndex
public int getIndex()
返回头域名称在静态表上的索引号。- 返回:
- 头域名称的索引号。
-
-