org.mattressframework.api.http.HttpHeaderFields Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mattress-api Show documentation
Show all versions of mattress-api Show documentation
Public API to the Mattress framework. This is essentially what JSR 311
should be.
/*
* Copyright 2007-2008, Josh Devins.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.mattressframework.api.http;
/**
* Interface defining all of the constant HTTP header fields as per the RFC.
*
*
* - RFC 2616 (HTTP/1.1), Section
* 4.5 General Header Fields
* - RFC 2616 (HTTP/1.1), Section
* 5.3 Request Header Fields
* - RFC 2616 (HTTP/1.1), Section
* 6.2 Response Header Fields
* - RFC 2616 (HTTP/1.1), Section
* 7.1 Entity Header Fields
*
*
* @author Josh Devins ([email protected])
*/
public interface HttpHeaderFields {
// general header fields
/**
* Cache-Control, Section 14.9
*/
public static final String GENERAL_CACHE_CONTROL = "Cache-Control";
/**
* Connection, Section 14.10
*/
public static final String GENERAL_CONNECTION = "Connection";
/**
* Date, Section 14.18
*/
public static final String GENERAL_DATE = "Date";
/**
* Pragma, Section 14.32
*/
public static final String GENERAL_PRAGMA = "Pragma";
/**
* Trailer, Section 14.40
*/
public static final String GENERAL_TRAILER = "Trailer";
/**
* Transfer-Encoding, Section 14.41
*/
public static final String GENERAL_TRANSFER_ENCODING = "Transfer-Encoding";
/**
* Upgrade, Section 14.42
*/
public static final String GENERAL_UPGRADE = "Upgrade";
/**
* Via, Section 14.45
*/
public static final String GENERAL_VIA = "Via";
/**
* Warning, Section 14.46
*/
public static final String GENERAL_WARNING = "Warning";
// request header fields
/**
* Accept, Section 14.1
*/
public static final String REQUEST_ACCEPT = "Accept";
/**
* Accept-Charset, Section 14.2
*/
public static final String REQUEST_ACCEPT_CHARSET = "Accept-Charset";
/**
* Accept-Encoding, Section 14.3
*/
public static final String REQUEST_ACCEPT_ENCODING = "Accept-Encoding";
/**
* Accept-Language, Section 14.4
*/
public static final String REQUEST_ACCEPT_LANGUAGE = "Accept-Language";
/**
* Authorization, Section 14.8
*/
public static final String REQUEST_AUTHORIZATION = "Authorization";
/**
* Expect, Section 14.20
*/
public static final String REQUEST_EXPECT = "Expect";
/**
* From, Section 14.22
*/
public static final String REQUEST_FROM = "From";
/**
* Host, Section 14.23
*/
public static final String REQUEST_HOST = "Host";
/**
* If-Match, Section 14.24
*/
public static final String REQUEST_IF_MATCH = "If-Match";
/**
* If-Modified-Since, Section 14.25
*/
public static final String REQUEST_IF_MODIFIED_SINCE = "If-Modified-Since";
/**
* If-None-Match, Section 14.26
*/
public static final String REQUEST_IF_NONE_MATCH = "If-None-Match";
/**
* If-Range, Section 14.27
*/
public static final String REQUEST_IF_RANGE = "If-Range";
/**
* If-Unmodified-Since, Section 14.28
*/
public static final String REQUEST_IF_UNMODIFIED_SINCE =
"If-Unmodified-Since";
/**
* Max-Forwards, Section 14.31
*/
public static final String REQUEST_MAX_FORWARDS = "Max-Forwards";
/**
* Proxy-Authorization, Section 14.34
*/
public static final String REQUEST_PROXY_AUTHORIZATION =
"Proxy-Authorization";
/**
* Range, Section 14.35
*/
public static final String REQUEST_RANGE = "Range";
/**
* Referer, Section 14.36
*/
public static final String REQUEST_REFERER = "Referer";
/**
* TE, Section 14.39
*/
public static final String REQUEST_TE = "TE";
/**
* User-Agent, Section 14.43
*/
public static final String REQUEST_USER_AGENT = "User-Agent";
// response header fields
/**
* Accept-Ranges, Section 14.5
*/
public static final String RESPONSE_ACCEPT_RANGES = "Accept-Ranges";
/**
* Age, Section 14.6
*/
public static final String RESPONSE_AGE = "Age";
/**
* ETag, Section 14.19
*/
public static final String RESPONSE_ETAG = "ETag";
/**
* Location, Section 14.30
*/
public static final String RESPONSE_LOCATION = "Location";
/**
* Proxy-Authenticate, Section 14.33
*/
public static final String RESPONSE_PROXY_AUTHENTICATE =
"Proxy-Authenticate";
/**
* Retry-After, Section 14.37
*/
public static final String RESPONSE_RETRY_AFTER = "Retry-After";
/**
* Server, Section 14.38
*/
public static final String RESPONSE_SERVER = "Server";
/**
* Vary, Section 14.44
*/
public static final String RESPONSE_VARY = "Vary";
/**
* WWW-Authenticate, Section 14.47
*/
public static final String RESPONSE_WWW_AUTHENTICATE = "WWW-Authenticate";
// entity header fields
/**
* Allow, Section 14.7
*/
public static final String ENTITY_ALLOW = "Allow";
/**
* Content-Encoding, Section 14.11
*/
public static final String ENTITY_CONTENT_ENCODING = "Content-Encoding";
/**
* Content-Language, Section 14.12
*/
public static final String ENTITY_CONTENT_LANGUAGE = "Content-Language";
/**
* Content-Length, Section 14.13
*/
public static final String ENTITY_CONTENT_LENGTH = "Content-Length";
/**
* Content-Location, Section 14.14
*/
public static final String ENTITY_CONTENT_LOCATION = "Content-Location";
/**
* Content-MD5, Section 14.15
*/
public static final String ENTITY_CONTENT_MD5 = "Content-MD5";
/**
* Content-Range, Section 14.16
*/
public static final String ENTITY_CONTENT_RANGE = "Content-Range";
/**
* Content-Type, Section 14.17
*/
public static final String ENTITY_CONTENT_TYPE = "Content-Type";
/**
* Expires, Section 14.21
*/
public static final String ENTITY_EXPIRES = "Expires";
/**
* Last-Modified, Section 14.29
*/
public static final String ENTITY_LAST_MODIFIED = "Last-Modified";
}