All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aspectran.web.support.http.HttpHeaders Maven / Gradle / Ivy

There is a newer version: 8.1.5
Show newest version
/*
 * Copyright (c) 2008-2023 The Aspectran Project
 *
 * 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 com.aspectran.web.support.http;

public interface HttpHeaders {

    /**
     * The HTTP {@code Accept} header field name.
     * @see Section 5.3.2 of RFC 7231
     */
    String ACCEPT = "Accept";

    /**
     * The HTTP {@code Accept-Charset} header field name.
     * @see Section 5.3.3 of RFC 7231
     */
    String ACCEPT_CHARSET = "Accept-Charset";

    /**
     * The HTTP {@code Accept-Encoding} header field name.
     * @see Section 5.3.4 of RFC 7231
     */
    String ACCEPT_ENCODING = "Accept-Encoding";

    /**
     * The HTTP {@code Accept-Language} header field name.
     * @see Section 5.3.5 of RFC 7231
     */
    String ACCEPT_LANGUAGE = "Accept-Language";

    /**
     * The HTTP {@code Accept-Ranges} header field name.
     * @see Section 5.3.5 of RFC 7233
     */
    String ACCEPT_RANGES = "Accept-Ranges";

    /**
     * The CORS {@code Access-Control-Allow-Credentials} response header field name.
     * @see CORS W3C recommandation
     */
    String ACCESS_CONTROL_ALLOW_CREDENTIALS = "Access-Control-Allow-Credentials";

    /**
     * The CORS {@code Access-Control-Allow-Headers} response header field name.
     * @see CORS W3C recommandation
     */
    String ACCESS_CONTROL_ALLOW_HEADERS = "Access-Control-Allow-Headers";

    /**
     * The CORS {@code Access-Control-Allow-Methods} response header field name.
     * @see CORS W3C recommandation
     */
    String ACCESS_CONTROL_ALLOW_METHODS = "Access-Control-Allow-Methods";

    /**
     * The CORS {@code Access-Control-Allow-Origin} response header field name.
     * @see CORS W3C recommandation
     */
    String ACCESS_CONTROL_ALLOW_ORIGIN = "Access-Control-Allow-Origin";

    /**
     * The CORS {@code Access-Control-Expose-Headers} response header field name.
     * @see CORS W3C recommandation
     */
    String ACCESS_CONTROL_EXPOSE_HEADERS = "Access-Control-Expose-Headers";

    /**
     * The CORS {@code Access-Control-Max-Age} response header field name.
     * @see CORS W3C recommandation
     */
    String ACCESS_CONTROL_MAX_AGE = "Access-Control-Max-Age";

    /**
     * The CORS {@code Access-Control-Request-Headers} request header field name.
     * @see CORS W3C recommandation
     */
    String ACCESS_CONTROL_REQUEST_HEADERS = "Access-Control-Request-Headers";

    /**
     * The CORS {@code Access-Control-Request-Method} request header field name.
     * @see CORS W3C recommandation
     */
    String ACCESS_CONTROL_REQUEST_METHOD = "Access-Control-Request-Method";

    /**
     * The HTTP {@code Age} header field name.
     * @see Section 5.1 of RFC 7234
     */
    String AGE = "Age";

    /**
     * The HTTP {@code Allow} header field name.
     * @see Section 7.4.1 of RFC 7231
     */
    String ALLOW = "Allow";

    /**
     * The HTTP {@code Authorization} header field name.
     * @see Section 4.2 of RFC 7235
     */
    String AUTHORIZATION = "Authorization";

    /**
     * The HTTP {@code Cache-Control} header field name.
     * @see Section 5.2 of RFC 7234
     */
    String CACHE_CONTROL = "Cache-Control";

    /**
     * The HTTP {@code Connection} header field name.
     * @see Section 6.1 of RFC 7230
     */
    String CONNECTION = "Connection";

    /**
     * The HTTP {@code Content-Encoding} header field name.
     * @see Section 3.1.2.2 of RFC 7231
     */
    String CONTENT_ENCODING = "Content-Encoding";

    /**
     * The HTTP {@code Content-Disposition} header field name
     * @see RFC 6266
     */
    String CONTENT_DISPOSITION = "Content-Disposition";

    /**
     * The HTTP {@code Content-Language} header field name.
     * @see Section 3.1.3.2 of RFC 7231
     */
    String CONTENT_LANGUAGE = "Content-Language";

    /**
     * The HTTP {@code Content-Length} header field name.
     * @see Section 3.3.2 of RFC 7230
     */
    String CONTENT_LENGTH = "Content-Length";

    /**
     * The HTTP {@code Content-Location} header field name.
     * @see Section 3.1.4.2 of RFC 7231
     */
    String CONTENT_LOCATION = "Content-Location";

    /**
     * The HTTP {@code Content-Range} header field name.
     * @see Section 4.2 of RFC 7233
     */
    String CONTENT_RANGE = "Content-Range";

    /**
     * The HTTP {@code Content-Type} header field name.
     * @see Section 3.1.1.5 of RFC 7231
     */
    String CONTENT_TYPE = "Content-Type";

    /**
     * The HTTP {@code Cookie} header field name.
     * @see Section 4.3.4 of RFC 2109
     */
    String COOKIE = "Cookie";

    /**
     * The HTTP {@code Date} header field name.
     * @see Section 7.1.1.2 of RFC 7231
     */
    String DATE = "Date";

    /**
     * The HTTP {@code ETag} header field name.
     * @see Section 2.3 of RFC 7232
     */
    String ETAG = "ETag";

    /**
     * The HTTP {@code Expect} header field name.
     * @see Section 5.1.1 of RFC 7231
     */
    String EXPECT = "Expect";

    /**
     * The HTTP {@code Expires} header field name.
     * @see Section 5.3 of RFC 7234
     */
    String EXPIRES = "Expires";

    /**
     * The HTTP {@code From} header field name.
     * @see Section 5.5.1 of RFC 7231
     */
    String FROM = "From";

    /**
     * The HTTP {@code Host} header field name.
     * @see Section 5.4 of RFC 7230
     */
    String HOST = "Host";

    /**
     * The HTTP {@code If-Match} header field name.
     * @see Section 3.1 of RFC 7232
     */
    String IF_MATCH = "If-Match";

    /**
     * The HTTP {@code If-Modified-Since} header field name.
     * @see Section 3.3 of RFC 7232
     */
    String IF_MODIFIED_SINCE = "If-Modified-Since";

    /**
     * The HTTP {@code If-None-Match} header field name.
     * @see Section 3.2 of RFC 7232
     */
    String IF_NONE_MATCH = "If-None-Match";

    /**
     * The HTTP {@code If-Range} header field name.
     * @see Section 3.2 of RFC 7233
     */
    String IF_RANGE = "If-Range";

    /**
     * The HTTP {@code If-Unmodified-Since} header field name.
     * @see Section 3.4 of RFC 7232
     */
    String IF_UNMODIFIED_SINCE = "If-Unmodified-Since";

    /**
     * The HTTP {@code Last-Modified} header field name.
     * @see Section 2.2 of RFC 7232
     */
    String LAST_MODIFIED = "Last-Modified";

    /**
     * The HTTP {@code Link} header field name.
     * @see RFC 5988
     */
    String LINK = "Link";

    /**
     * The HTTP {@code Location} header field name.
     * @see Section 7.1.2 of RFC 7231
     */
    String LOCATION = "Location";

    /**
     * The HTTP {@code Max-Forwards} header field name.
     * @see Section 5.1.2 of RFC 7231
     */
    String MAX_FORWARDS = "Max-Forwards";

    /**
     * The HTTP {@code Origin} header field name.
     * @see RFC 6454
     */
    String ORIGIN = "Origin";

    /**
     * The HTTP {@code Pragma} header field name.
     * @see Section 5.4 of RFC 7234
     */
    String PRAGMA = "Pragma";

    /**
     * The HTTP {@code Proxy-Authenticate} header field name.
     * @see Section 4.3 of RFC 7235
     */
    String PROXY_AUTHENTICATE = "Proxy-Authenticate";

    /**
     * The HTTP {@code Proxy-Authorization} header field name.
     * @see Section 4.4 of RFC 7235
     */
    String PROXY_AUTHORIZATION = "Proxy-Authorization";

    /**
     * The HTTP {@code Range} header field name.
     * @see Section 3.1 of RFC 7233
     */
    String RANGE = "Range";

    /**
     * The HTTP {@code Referer} header field name.
     * @see Section 5.5.2 of RFC 7231
     */
    String REFERER = "Referer";

    /**
     * The HTTP {@code Retry-After} header field name.
     * @see Section 7.1.3 of RFC 7231
     */
    String RETRY_AFTER = "Retry-After";

    /**
     * The HTTP {@code Server} header field name.
     * @see Section 7.4.2 of RFC 7231
     */
    String SERVER = "Server";

    /**
     * The HTTP {@code Set-Cookie} header field name.
     * @see Section 4.2.2 of RFC 2109
     */
    String SET_COOKIE = "Set-Cookie";

    /**
     * The HTTP {@code Set-Cookie2} header field name.
     * @see RFC 2965
     */
    String SET_COOKIE2 = "Set-Cookie2";

    /**
     * The HTTP {@code TE} header field name.
     * @see Section 4.3 of RFC 7230
     */
    String TE = "TE";

    /**
     * The HTTP {@code Trailer} header field name.
     * @see Section 4.4 of RFC 7230
     */
    String TRAILER = "Trailer";

    /**
     * The HTTP {@code Transfer-Encoding} header field name.
     * @see Section 3.3.1 of RFC 7230
     */
    String TRANSFER_ENCODING = "Transfer-Encoding";

    /**
     * The HTTP {@code Upgrade} header field name.
     * @see Section 6.7 of RFC 7230
     */
    String UPGRADE = "Upgrade";

    /**
     * The HTTP {@code User-Agent} header field name.
     * @see Section 5.5.3 of RFC 7231
     */
    String USER_AGENT = "User-Agent";

    /**
     * The HTTP {@code Vary} header field name.
     * @see Section 7.1.4 of RFC 7231
     */
    String VARY = "Vary";

    /**
     * The HTTP {@code Via} header field name.
     * @see Section 5.7.1 of RFC 7230
     */
    String VIA = "Via";

    /**
     * The HTTP {@code Warning} header field name.
     * @see Section 5.5 of RFC 7234
     */
    String WARNING = "Warning";

    /**
     * The HTTP {@code WWW-Authenticate} header field name.
     * @see Section 4.1 of RFC 7235
     */
    String WWW_AUTHENTICATE = "WWW-Authenticate";

    /**
     * Some HTTP proxies do not support arbitrary HTTP methods or
     * newer HTTP methods (such as PATCH).
     * In that case it’s possible to “proxy” HTTP methods through
     * another HTTP method in total violation of the protocol.
     * The way this works is by letting the client do an HTTP POST request and
     * set the X-HTTP-Method-Override header and set the value to
     * the intended HTTP method (such as PATCH).
     * 

* Web infrastructure and solutions providers have proposed to use customized HTTP header fields: *

     *   X-HTTP-Method-Override (Google/GData)
     *   X-HTTP-Method (Microsoft)
     *   X-METHOD-OVERRIDE (IBM)
     *   X-Method-Override (Aspectran)
     * 
*/ String X_METHOD_OVERRIDE = "X-Method-Override"; /** * The HTTP X-Forwarded-For header field name. */ String X_FORWARDED_FOR = "X-FORWARDED-FOR"; /** * The HTTP X-Forwarded-Proto header field name. */ String X_FORWARDED_PROTO = "X-Forwarded-Proto"; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy