Interface Protocol


public interface Protocol
This represents the HTTP header names defined in RFC 2616. It can be used to set and get headers safely from the Request and Response objects. This is used internally by the HTTP server to parse the incoming requests and also to submit response values for each conversation.

In addition to the header names this also contains some common HTTP header value tokens. These are provided for convenience and can be used to ensure that response values comply with RFC 2616.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Specifies media types which are acceptable for the response.
    static final String
    Indicates what character sets are acceptable for the response.
    static final String
    Restricts the content codings that are acceptable in the response.
    static final String
    Restricts the set of languages that are preferred as a response.
    static final String
    Indicates a servers acceptance of range requests for a resource.
    static final String
    Estimates the amount of time since the response was generated.
    static final String
    Lists the set of methods supported by the resource identified.
    static final String
    Represents a class of data representing an executable application.
    static final String
    Sent by a client that wishes to authenticate itself with a server.
    static final String
    Represents the token used to identify a multipart boundary.
    static final String
    Specifies directives that must be obeyed by all caching mechanisms.
    static final String
    Represents the token used to identify the encoding of a message.
    static final String
    Represents the name of a self delimiting transfer encoding.
    static final String
    Specifies that the server will terminate the connection.
    static final String
    Specifies options that are desired for that particular connection.
    static final String
    Specifies a tag indicating of its desired presentation semantics.
    static final String
    Indicates additional content codings have been applied to the body.
    static final String
    Describes the languages of the intended audience for the body.
    static final String
    Indicates the size of the entity body in decimal number of octets.
    static final String
    Used to supply the resource location for the entity enclosed.
    static final String
    An MD5 digest of the body for the purpose of checking integrity.
    static final String
    Specifies where in the full body a partial body should be applied.
    static final String
    Indicates the media type of the body sent to the recipient.
    static final String
    Represents a cookie that contains some information from the client.
    static final String
    Represents the date and time at which the message was originated.
    static final String
    Provides the value of the entity tag for the requested variant.
    static final String
    Indicate that particular server behaviors are required by the client.
    static final String
    Gives the time after which the response is considered stale.
    static final String
    Address for the human user who controls the requesting user agent.
    static final String
    Specifies the host and port number of the resource being requested.
    static final String
    Specifies the entity tag for a request to make it conditional.
    static final String
    If variant has not been modified since the time specified.
    static final String
    Verify that none of those entities is current by including a list.
    static final String
    If the entity is unchanged send me the part that I am missing.
    static final String
    If the requested resource has not been modified since this time.
    static final String
    Represents a message type for an image such as a PNG or JPEG.
    static final String
    Specifies that the server wishes to keep the connection open.
    static final String
    Indicates the date and time at which the variant was last modified.
    static final String
    Used to redirect the recipient to a location other than the URI.
    static final String
    Limit the number of proxies or gateways that can forward the request.
    static final String
    Represents a message type that contains multiple parts.
    static final String
    Specifies that the message should not be cached by anything.
    static final String
    Represents the default content type if none is specified.
    static final String
    Include implementation specific directives that might apply.
    static final String
    Challenge indicating the authentication applicable to the proxy.
    static final String
    Allows client identification for a proxy requiring authentication.
    static final String
    Specifies a range of bytes within a resource to be sent by a server.
    static final String
    Allows the client to specify the source address to the server.
    static final String
    Response to indicate how long the service will be unavailable.
    static final String
    Represents the SHA-1 digest of the clients globally unique identifier.
    static final String
    Represents the globally unique identifier sent by the client.
    static final String
    Specifies the protocol that should be used by the connected parties.
    static final String
    Represents the version of the protocol that should be used.
    static final String
    Contains information about the software used by the origin server.
    static final String
    Represents some value from the server that the client should keep.
    static final String
    Indicates what extension transfer codings it is willing to accept.
    static final String
    Represents a message type containing human readable text.
    static final String
    Indicates that these header fields is present in the trailer.
    static final String
    Indicates the transformation has been applied to the message body.
    static final String
    Specifies additional communication protocols the client supports.
    static final String
    Represents a message type that contains HTML form posted data.
    static final String
    Contains information about the user agent originating the request.
    static final String
    Indicates the headers that can make a cached resource stale.
    static final String
    Used by gateways and proxies to indicate the intermediate protocols.
    static final String
    Used to carry additional information about the status or body.
    static final String
    This is the protocol token that is used when upgrading.
    static final String
    Uses to challenge a client for authentication for a resource.
  • Field Details

    • ACCEPT

      static final String ACCEPT
      Specifies media types which are acceptable for the response.
      See Also:
    • ACCEPT_CHARSET

      static final String ACCEPT_CHARSET
      Indicates what character sets are acceptable for the response.
      See Also:
    • ACCEPT_ENCODING

      static final String ACCEPT_ENCODING
      Restricts the content codings that are acceptable in the response.
      See Also:
    • ACCEPT_LANGUAGE

      static final String ACCEPT_LANGUAGE
      Restricts the set of languages that are preferred as a response.
      See Also:
    • ACCEPT_RANGES

      static final String ACCEPT_RANGES
      Indicates a servers acceptance of range requests for a resource.
      See Also:
    • AGE

      static final String AGE
      Estimates the amount of time since the response was generated.
      See Also:
    • ALLOW

      static final String ALLOW
      Lists the set of methods supported by the resource identified.
      See Also:
    • AUTHORIZATION

      static final String AUTHORIZATION
      Sent by a client that wishes to authenticate itself with a server.
      See Also:
    • CACHE_CONTROL

      static final String CACHE_CONTROL
      Specifies directives that must be obeyed by all caching mechanisms.
      See Also:
    • CONNECTION

      static final String CONNECTION
      Specifies options that are desired for that particular connection.
      See Also:
    • CONTENT_DISPOSITION

      static final String CONTENT_DISPOSITION
      Specifies a tag indicating of its desired presentation semantics.
      See Also:
    • CONTENT_ENCODING

      static final String CONTENT_ENCODING
      Indicates additional content codings have been applied to the body.
      See Also:
    • CONTENT_LANGUAGE

      static final String CONTENT_LANGUAGE
      Describes the languages of the intended audience for the body.
      See Also:
    • CONTENT_LENGTH

      static final String CONTENT_LENGTH
      Indicates the size of the entity body in decimal number of octets.
      See Also:
    • CONTENT_LOCATION

      static final String CONTENT_LOCATION
      Used to supply the resource location for the entity enclosed.
      See Also:
    • CONTENT_MD5

      static final String CONTENT_MD5
      An MD5 digest of the body for the purpose of checking integrity.
      See Also:
    • CONTENT_RANGE

      static final String CONTENT_RANGE
      Specifies where in the full body a partial body should be applied.
      See Also:
    • CONTENT_TYPE

      static final String CONTENT_TYPE
      Indicates the media type of the body sent to the recipient.
      See Also:
    • DATE

      static final String DATE
      Represents the date and time at which the message was originated.
      See Also:
    • ETAG

      static final String ETAG
      Provides the value of the entity tag for the requested variant.
      See Also:
    • EXPECT

      static final String EXPECT
      Indicate that particular server behaviors are required by the client.
      See Also:
    • EXPIRES

      static final String EXPIRES
      Gives the time after which the response is considered stale.
      See Also:
    • FROM

      static final String FROM
      Address for the human user who controls the requesting user agent.
      See Also:
    • HOST

      static final String HOST
      Specifies the host and port number of the resource being requested.
      See Also:
    • IF_MATCH

      static final String IF_MATCH
      Specifies the entity tag for a request to make it conditional.
      See Also:
    • IF_MODIFIED_SINCE

      static final String IF_MODIFIED_SINCE
      If variant has not been modified since the time specified.
      See Also:
    • IF_NONE_MATCH

      static final String IF_NONE_MATCH
      Verify that none of those entities is current by including a list.
      See Also:
    • IF_RANGE

      static final String IF_RANGE
      If the entity is unchanged send me the part that I am missing.
      See Also:
    • IF_UNMODIFIED_SINCE

      static final String IF_UNMODIFIED_SINCE
      If the requested resource has not been modified since this time.
      See Also:
    • LAST_MODIFIED

      static final String LAST_MODIFIED
      Indicates the date and time at which the variant was last modified.
      See Also:
    • LOCATION

      static final String LOCATION
      Used to redirect the recipient to a location other than the URI.
      See Also:
    • MAX_FORWARDS

      static final String MAX_FORWARDS
      Limit the number of proxies or gateways that can forward the request.
      See Also:
    • PRAGMA

      static final String PRAGMA
      Include implementation specific directives that might apply.
      See Also:
    • PROXY_AUTHENTICATE

      static final String PROXY_AUTHENTICATE
      Challenge indicating the authentication applicable to the proxy.
      See Also:
    • PROXY_AUTHORIZATION

      static final String PROXY_AUTHORIZATION
      Allows client identification for a proxy requiring authentication.
      See Also:
    • RANGE

      static final String RANGE
      Specifies a range of bytes within a resource to be sent by a server.
      See Also:
    • REFERER

      static final String REFERER
      Allows the client to specify the source address to the server.
      See Also:
    • RETRY_AFTER

      static final String RETRY_AFTER
      Response to indicate how long the service will be unavailable.
      See Also:
    • SEC_WEBSOCKET_KEY

      static final String SEC_WEBSOCKET_KEY
      Represents the globally unique identifier sent by the client.
      See Also:
    • SEC_WEBSOCKET_ACCEPT

      static final String SEC_WEBSOCKET_ACCEPT
      Represents the SHA-1 digest of the clients globally unique identifier.
      See Also:
    • SEC_WEBSOCKET_PROTOCOL

      static final String SEC_WEBSOCKET_PROTOCOL
      Specifies the protocol that should be used by the connected parties.
      See Also:
    • SEC_WEBSOCKET_VERSION

      static final String SEC_WEBSOCKET_VERSION
      Represents the version of the protocol that should be used.
      See Also:
    • SERVER

      static final String SERVER
      Contains information about the software used by the origin server.
      See Also:
    • TE

      static final String TE
      Indicates what extension transfer codings it is willing to accept.
      See Also:
    • TRAILER

      static final String TRAILER
      Indicates that these header fields is present in the trailer.
      See Also:
    • TRANSFER_ENCODING

      static final String TRANSFER_ENCODING
      Indicates the transformation has been applied to the message body.
      See Also:
    • UPGRADE

      static final String UPGRADE
      Specifies additional communication protocols the client supports.
      See Also:
    • USER_AGENT

      static final String USER_AGENT
      Contains information about the user agent originating the request.
      See Also:
    • VARY

      static final String VARY
      Indicates the headers that can make a cached resource stale.
      See Also:
    • VIA

      static final String VIA
      Used by gateways and proxies to indicate the intermediate protocols.
      See Also:
    • WARNING

      static final String WARNING
      Used to carry additional information about the status or body.
      See Also:
    • WWW_AUTHENTICATE

      static final String WWW_AUTHENTICATE
      Uses to challenge a client for authentication for a resource.
      See Also:
    • APPLICATION

      static final String APPLICATION
      Represents a class of data representing an executable application.
      See Also:
    • BOUNDARY

      static final String BOUNDARY
      Represents the token used to identify a multipart boundary.
      See Also:
    • CHARSET

      static final String CHARSET
      Represents the token used to identify the encoding of a message.
      See Also:
    • CHUNKED

      static final String CHUNKED
      Represents the name of a self delimiting transfer encoding.
      See Also:
    • CLOSE

      static final String CLOSE
      Specifies that the server will terminate the connection.
      See Also:
    • IMAGE

      static final String IMAGE
      Represents a message type for an image such as a PNG or JPEG.
      See Also:
    • KEEP_ALIVE

      static final String KEEP_ALIVE
      Specifies that the server wishes to keep the connection open.
      See Also:
    • MULTIPART

      static final String MULTIPART
      Represents a message type that contains multiple parts.
      See Also:
    • NO_CACHE

      static final String NO_CACHE
      Specifies that the message should not be cached by anything.
      See Also:
    • OCTET_STREAM

      static final String OCTET_STREAM
      Represents the default content type if none is specified.
      See Also:
    • TEXT

      static final String TEXT
      Represents a message type containing human readable text.
      See Also:
    • URL_ENCODED

      static final String URL_ENCODED
      Represents a message type that contains HTML form posted data.
      See Also:
    • WEBSOCKET

      static final String WEBSOCKET
      This is the protocol token that is used when upgrading.
      See Also: