Package org.simpleframework.http
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
FieldsModifier and TypeFieldDescriptionstatic 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
Specifies media types which are acceptable for the response.- See Also:
-
ACCEPT_CHARSET
Indicates what character sets are acceptable for the response.- See Also:
-
ACCEPT_ENCODING
Restricts the content codings that are acceptable in the response.- See Also:
-
ACCEPT_LANGUAGE
Restricts the set of languages that are preferred as a response.- See Also:
-
ACCEPT_RANGES
Indicates a servers acceptance of range requests for a resource.- See Also:
-
AGE
Estimates the amount of time since the response was generated.- See Also:
-
ALLOW
Lists the set of methods supported by the resource identified.- See Also:
-
AUTHORIZATION
Sent by a client that wishes to authenticate itself with a server.- See Also:
-
CACHE_CONTROL
Specifies directives that must be obeyed by all caching mechanisms.- See Also:
-
CONNECTION
Specifies options that are desired for that particular connection.- See Also:
-
CONTENT_DISPOSITION
Specifies a tag indicating of its desired presentation semantics.- See Also:
-
CONTENT_ENCODING
Indicates additional content codings have been applied to the body.- See Also:
-
CONTENT_LANGUAGE
Describes the languages of the intended audience for the body.- See Also:
-
CONTENT_LENGTH
Indicates the size of the entity body in decimal number of octets.- See Also:
-
CONTENT_LOCATION
Used to supply the resource location for the entity enclosed.- See Also:
-
CONTENT_MD5
An MD5 digest of the body for the purpose of checking integrity.- See Also:
-
CONTENT_RANGE
Specifies where in the full body a partial body should be applied.- See Also:
-
CONTENT_TYPE
Indicates the media type of the body sent to the recipient.- See Also:
-
COOKIE
Represents a cookie that contains some information from the client.- See Also:
-
DATE
Represents the date and time at which the message was originated.- See Also:
-
ETAG
Provides the value of the entity tag for the requested variant.- See Also:
-
EXPECT
Indicate that particular server behaviors are required by the client.- See Also:
-
EXPIRES
Gives the time after which the response is considered stale.- See Also:
-
FROM
Address for the human user who controls the requesting user agent.- See Also:
-
HOST
Specifies the host and port number of the resource being requested.- See Also:
-
IF_MATCH
Specifies the entity tag for a request to make it conditional.- See Also:
-
IF_MODIFIED_SINCE
If variant has not been modified since the time specified.- See Also:
-
IF_NONE_MATCH
Verify that none of those entities is current by including a list.- See Also:
-
IF_RANGE
If the entity is unchanged send me the part that I am missing.- See Also:
-
IF_UNMODIFIED_SINCE
If the requested resource has not been modified since this time.- See Also:
-
LAST_MODIFIED
Indicates the date and time at which the variant was last modified.- See Also:
-
LOCATION
Used to redirect the recipient to a location other than the URI.- See Also:
-
MAX_FORWARDS
Limit the number of proxies or gateways that can forward the request.- See Also:
-
PRAGMA
Include implementation specific directives that might apply.- See Also:
-
PROXY_AUTHENTICATE
Challenge indicating the authentication applicable to the proxy.- See Also:
-
PROXY_AUTHORIZATION
Allows client identification for a proxy requiring authentication.- See Also:
-
RANGE
Specifies a range of bytes within a resource to be sent by a server.- See Also:
-
REFERER
Allows the client to specify the source address to the server.- See Also:
-
RETRY_AFTER
Response to indicate how long the service will be unavailable.- See Also:
-
SEC_WEBSOCKET_KEY
Represents the globally unique identifier sent by the client.- See Also:
-
SEC_WEBSOCKET_ACCEPT
Represents the SHA-1 digest of the clients globally unique identifier.- See Also:
-
SEC_WEBSOCKET_PROTOCOL
Specifies the protocol that should be used by the connected parties.- See Also:
-
SEC_WEBSOCKET_VERSION
Represents the version of the protocol that should be used.- See Also:
-
SERVER
Contains information about the software used by the origin server.- See Also:
-
SET_COOKIE
Represents some value from the server that the client should keep.- See Also:
-
TE
Indicates what extension transfer codings it is willing to accept.- See Also:
-
TRAILER
Indicates that these header fields is present in the trailer.- See Also:
-
TRANSFER_ENCODING
Indicates the transformation has been applied to the message body.- See Also:
-
UPGRADE
Specifies additional communication protocols the client supports.- See Also:
-
USER_AGENT
Contains information about the user agent originating the request.- See Also:
-
VARY
Indicates the headers that can make a cached resource stale.- See Also:
-
VIA
Used by gateways and proxies to indicate the intermediate protocols.- See Also:
-
WARNING
Used to carry additional information about the status or body.- See Also:
-
WWW_AUTHENTICATE
Uses to challenge a client for authentication for a resource.- See Also:
-
APPLICATION
Represents a class of data representing an executable application.- See Also:
-
BOUNDARY
Represents the token used to identify a multipart boundary.- See Also:
-
CHARSET
Represents the token used to identify the encoding of a message.- See Also:
-
CHUNKED
Represents the name of a self delimiting transfer encoding.- See Also:
-
CLOSE
Specifies that the server will terminate the connection.- See Also:
-
IMAGE
Represents a message type for an image such as a PNG or JPEG.- See Also:
-
KEEP_ALIVE
Specifies that the server wishes to keep the connection open.- See Also:
-
MULTIPART
Represents a message type that contains multiple parts.- See Also:
-
NO_CACHE
Specifies that the message should not be cached by anything.- See Also:
-
OCTET_STREAM
Represents the default content type if none is specified.- See Also:
-
TEXT
Represents a message type containing human readable text.- See Also:
-
URL_ENCODED
Represents a message type that contains HTML form posted data.- See Also:
-
WEBSOCKET
This is the protocol token that is used when upgrading.- See Also:
-