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

io.github.linmoure.constants.HTTPConstants Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package io.github.linmoure.constants;

import java.io.Serializable;

public class HTTPConstants implements Serializable {
    public final static String SC_MOVED_PERMANENTLY = "301";
    public final static String SC_MOVED_TEMPORARILY = "302";
    public final static String SC_SEE_OTHER = "303";
    public final static String SC_TEMPORARY_REDIRECT = "307";

    public final static int DEFAULT_HTTPS_PORT = 443;
    public final static int DEFAULT_HTTP_PORT = 80;
    public final static String DEFAULT_HTTPS_PORT_STRING = "443"; // $NON-NLS-1$
    public final static String DEFAULT_HTTP_PORT_STRING = "80"; // $NON-NLS-1$
    public final static String PROTOCOL_HTTP = "http"; // $NON-NLS-1$
    public final static String PROTOCOL_HTTPS = "https"; // $NON-NLS-1$
    public final static String HEAD = "HEAD"; // $NON-NLS-1$
    public final static String POST = "POST"; // $NON-NLS-1$
    public final static String PUT = "PUT"; // $NON-NLS-1$
    public final static String GET = "GET"; // $NON-NLS-1$
    public final static String OPTIONS = "OPTIONS"; // $NON-NLS-1$
    public final static String TRACE = "TRACE"; // $NON-NLS-1$
    public final static String DELETE = "DELETE"; // $NON-NLS-1$
    public final static String PATCH = "PATCH"; // $NON-NLS-1$
    public final static String PROPFIND = "PROPFIND"; // $NON-NLS-1$
    public final static String PROPPATCH = "PROPPATCH"; // $NON-NLS-1$
    public final static String MKCOL = "MKCOL"; // $NON-NLS-1$
    public final static String COPY = "COPY"; // $NON-NLS-1$
    public final static String MOVE = "MOVE"; // $NON-NLS-1$
    public final static String LOCK = "LOCK"; // $NON-NLS-1$
    public final static String UNLOCK = "UNLOCK"; // $NON-NLS-1$
    public final static String CONNECT = "CONNECT"; // $NON-NLS-1$
    public final static String REPORT = "REPORT"; // $NON-NLS-1$
    public final static String MKCALENDAR = "MKCALENDAR"; // $NON-NLS-1$
    public final static String SEARCH = "SEARCH"; // $NON-NLS-1$
    public final static String HEADER_AUTHORIZATION = "Authorization"; // $NON-NLS-1$
    public final static String HEADER_COOKIE = "Cookie"; // $NON-NLS-1$
    public final static String HEADER_COOKIE_IN_REQUEST = "Cookie:"; // $NON-NLS-1$
    public final static String HEADER_CONNECTION = "Connection"; // $NON-NLS-1$
    public final static String CONNECTION_CLOSE = "close"; // $NON-NLS-1$
    public final static String KEEP_ALIVE = "keep-alive"; // $NON-NLS-1$
    public final static String TRANSFER_ENCODING = "transfer-encoding"; // $NON-NLS-1$
    public final static String HEADER_CONTENT_ENCODING = "content-encoding"; // $NON-NLS-1$
    public final static String HTTP_1_1 = "HTTP/1.1"; // $NON-NLS-1$
    public final static String HEADER_SET_COOKIE = "set-cookie"; // $NON-NLS-1$
    public final static String ENCODING_BROTLI = "br"; // $NON-NLS-1$
    public final static String ENCODING_DEFLATE = "deflate"; // $NON-NLS-1$
    public final static String ENCODING_GZIP = "gzip"; // $NON-NLS-1$
    public final static String HEADER_CONTENT_DISPOSITION = "Content-Disposition"; // $NON-NLS-1$
    public final static String HEADER_CONTENT_TYPE = "Content-Type"; // $NON-NLS-1$
    public final static String HEADER_CONTENT_LENGTH = "Content-Length"; // $NON-NLS-1$
    public final static String HEADER_HOST = "Host"; // $NON-NLS-1$
    public final static String HEADER_LOCAL_ADDRESS = "X-LocalAddress"; // $NON-NLS-1$ pseudo-header for reporting Local Address
    public final static String HEADER_LOCATION = "Location"; // $NON-NLS-1$
    public final static String APPLICATION_X_WWW_FORM_URLENCODED = "application/x-www-form-urlencoded"; // $NON-NLS-1$
    public final static String MULTIPART_FORM_DATA = "multipart/form-data"; // $NON-NLS-1$
    public final static String IF_NONE_MATCH = "If-None-Match"; // $NON-NLS-1$
    public final static String IF_MODIFIED_SINCE = "If-Modified-Since"; // $NON-NLS-1$
    public final static String ETAG = "Etag"; // $NON-NLS-1$
    public final static String LAST_MODIFIED = "Last-Modified"; // $NON-NLS-1$
    public final static String EXPIRES = "Expires"; // $NON-NLS-1$
    public final static String CACHE_CONTROL = "Cache-Control";  //e.g. public, max-age=259200
    public final static String DATE = "Date";  //e.g. Date Header of response
    public final static String VARY = "Vary"; // $NON-NLS-1$
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy