org.opentox.toxotis.client
Class RequestHeaders

java.lang.Object
  extended by org.opentox.toxotis.client.RequestHeaders

public class RequestHeaders
extends Object

This is a collection of some HTTP Request and Entity Headers gathered from the W3C specifications at http://www.w3.org/Protocols/rfc2616/rfc2616.html.

Documentation copied here from the W3C specification for HTTP Headers : HTTP header fields, which include general-header (section 4.5), request-header (section 5.3), response-header (section 6.2), and entity-header (section 7.1) fields, follow the same generic format as that given in Section 3.1 of RFC 822 [9]. Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive. The field value MAY be preceded by any amount of LWS, though a single SP is preferred. Header fields can be extended over multiple lines by preceding each extra line with at least one SP or HT. Applications ought to follow "common form", where one is known or indicated, when generating HTTP constructs, since there might exist some implementations that fail to accept anything beyond the common forms.

 message-header = field-name ":" [ field-value ]
      field-name     = token
      field-value    = *( field-content | LWS )
      field-content  = 

Author:
Pantelis Sopasakis, Charalampos Chomenides
See Also:
HTTP Headers Quick Reference, W3C specification

Field Summary
static String ACCEPT
          Specifies which Internet media types are acceptable for the response and to assign preferences to them.
static String ACCEPT_CHARSET
          Specifies which character encodings (confusingly called "charsets") are acceptable for the response and to assign preferences to them.
static String ACCEPT_ENCODING
          Specifies which data format tranformations, confusingly called content (en)codings, such as compression mechanisms, are acceptable for the response and to assign preferences to them.
static String ACCEPT_LANGUAGE
          Specifies which natural languages are acceptable for the response and to assign preferences to them.
static String AUTHORIZATION
          Consists of credentials containing the authentication information of the client for the realm of the resource being requested
static String CONTENT_ENCODING
          Used as a modifier to the media-type, to indicate what additional data format transformations such as compression have been applied to the entity-body.
static String CONTENT_LENGTH
          Indicates the size (in octets) of the entity-body that is sent or that would have been sent if it has reen requested.
static String CONTENT_TYPE
          Specifies the Internet media type of the entity-body that is sent or would have been sent if requested.
static String EXPECT
          Indicates that particular server behaviors are required by the client.
static String FROM
          The Internet e-mail address for the human user who controls the requesting browser or other client.
static String HOST
          Specifies the Internet host and port number of the resource being requested.
static String IF_MATCH
          Used with a method to make it conditional: a client that has previously obtained entities can verify that one of those entities is current by including a list of their associated entity tags in the If-Match header field.
static String MAX_FORWARDS
          Provides a mechanism with the TRACE and OPTIONS methods to limit the number of proxies or gateways that can forward the request to the next inbound server.
static String PROXY_AUTHORIZATION
          Used by a client to identify itself (or its user) to a proxy which requires authentication.
static String RANGE
          Restricts the request to some part(s), specified as range(s) of octets, in the resource.
static String REFERER
          Used by a client to specify, for the server's benefit, the address (URI) of the resource from which the Request-URI was obtained.
static String SSO_AUTHORIZATION
          Header used within OpenTox for exchanging authorization tokens (between services and the central SSO server as well)
static String USER_AGENT
          Contains information about the user agent (client) originating the request
 
Constructor Summary
RequestHeaders()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCEPT

public static final String ACCEPT
Specifies which Internet media types are acceptable for the response and to assign preferences to them.

See Also:
W3C specification for this header, Constant Field Values

ACCEPT_CHARSET

public static final String ACCEPT_CHARSET
Specifies which character encodings (confusingly called "charsets") are acceptable for the response and to assign preferences to them.

See Also:
W3C specification for this header, Constant Field Values

ACCEPT_ENCODING

public static final String ACCEPT_ENCODING
Specifies which data format tranformations, confusingly called content (en)codings, such as compression mechanisms, are acceptable for the response and to assign preferences to them.

See Also:
W3C specification for this header, Constant Field Values

ACCEPT_LANGUAGE

public static final String ACCEPT_LANGUAGE
Specifies which natural languages are acceptable for the response and to assign preferences to them. Useful for language negotation.

See Also:
W3C specification for this header, Constant Field Values

AUTHORIZATION

public static final String AUTHORIZATION
Consists of credentials containing the authentication information of the client for the realm of the resource being requested

See Also:
W3C specification for this header, Constant Field Values

SSO_AUTHORIZATION

public static final String SSO_AUTHORIZATION
Header used within OpenTox for exchanging authorization tokens (between services and the central SSO server as well)

See Also:
Constant Field Values

CONTENT_ENCODING

public static final String CONTENT_ENCODING
Used as a modifier to the media-type, to indicate what additional data format transformations such as compression have been applied to the entity-body.

See Also:
Constant Field Values

CONTENT_LENGTH

public static final String CONTENT_LENGTH
Indicates the size (in octets) of the entity-body that is sent or that would have been sent if it has reen requested.

See Also:
Constant Field Values

CONTENT_TYPE

public static final String CONTENT_TYPE
Specifies the Internet media type of the entity-body that is sent or would have been sent if requested. Often includes a charset parameter specifying the character encoding.

See Also:
Constant Field Values

EXPECT

public static final String EXPECT
Indicates that particular server behaviors are required by the client.

See Also:
W3C specification for this header, Constant Field Values

FROM

public static final String FROM
The Internet e-mail address for the human user who controls the requesting browser or other client.

See Also:
W3C specification for this header, Constant Field Values

HOST

public static final String HOST
Specifies the Internet host and port number of the resource being requested. Obligatory in all HTTP/1.1 requests.

See Also:
W3C specification for this header, Constant Field Values

IF_MATCH

public static final String IF_MATCH
Used with a method to make it conditional: a client that has previously obtained entities can verify that one of those entities is current by including a list of their associated entity tags in the If-Match header field.

See Also:
W3C specification for this header, Constant Field Values

MAX_FORWARDS

public static final String MAX_FORWARDS
Provides a mechanism with the TRACE and OPTIONS methods to limit the number of proxies or gateways that can forward the request to the next inbound server.

See Also:
W3C specification for this header, Constant Field Values

PROXY_AUTHORIZATION

public static final String PROXY_AUTHORIZATION
Used by a client to identify itself (or its user) to a proxy which requires authentication.

See Also:
W3C specification for this header, Constant Field Values

RANGE

public static final String RANGE
Restricts the request to some part(s), specified as range(s) of octets, in the resource.

See Also:
W3C specification for this header, Constant Field Values

REFERER

public static final String REFERER
Used by a client to specify, for the server's benefit, the address (URI) of the resource from which the Request-URI was obtained.

See Also:
W3C specification for this header, Constant Field Values

USER_AGENT

public static final String USER_AGENT
Contains information about the user agent (client) originating the request

See Also:
Constant Field Values
Constructor Detail

RequestHeaders

public RequestHeaders()


Copyright © 2011-2012 OpenTox. All Rights Reserved.