2004.04.29


com.jdc.http
Interface RequestHeader


public interface RequestHeader

The RequestHeader interface contains constants for HTTP request headers used by other HTTP Model-View-Controller classes.

When an HTTP client, i.e. a browser, sends a request to the server, that client is required to provide a request line (usually GET or POST). Additionally, that client may also send a number of request headers, all of which are optional except for Content-Length, which is required only for POST requests.

Reference: HTTP Request fields

Version:
1.0
Author:
Jay Damon
See Also:
Request Headers Tutorial.

Field Summary
static String ACCEPT
          The request header that specifies the MIME types the browser client prefers.
static String ACCEPT_CHARSET
          The request header that specifies the character set the browser client expects.
static String ACCEPT_LANGUAGE
          The request header that specifies the language the browser client is expecting, if the server is capable of providing versions in more than one language, e.g.
static String CONTENT_LENGTH
          The request header that, for POST messages, specifies the length of the data contained in the request.
static String HOST
          The request header that specifies the host name and port number as listed in the original URL, e.g.
static String REFERRER
          The request header that specifies the address, i.e.
static String USER_AGENT
          The request header that specifies the type of browser client, e.g.
 

Field Detail

ACCEPT

public static final String ACCEPT
The request header that specifies the MIME types the browser client prefers.

See Also:
Constant Field Values

ACCEPT_CHARSET

public static final String ACCEPT_CHARSET
The request header that specifies the character set the browser client expects.

See Also:
Constant Field Values

ACCEPT_LANGUAGE

public static final String ACCEPT_LANGUAGE
The request header that specifies the language the browser client is expecting, if the server is capable of providing versions in more than one language, e.g. en-us.

See Also:
Constant Field Values

CONTENT_LENGTH

public static final String CONTENT_LENGTH
The request header that, for POST messages, specifies the length of the data contained in the request.

See Also:
Constant Field Values

HOST

public static final String HOST
The request header that specifies the host name and port number as listed in the original URL, e.g. "www.jdamon.net:80".

See Also:
Constant Field Values

REFERRER

public static final String REFERRER
The request header that specifies the address, i.e. URI of the document (or element within the document) from which the URI in the request was obtained. Note: Unlike the W3C specification, REFERRER is spelled correctly here.

See Also:
Constant Field Values

USER_AGENT

public static final String USER_AGENT
The request header that specifies the type of browser client, e.g. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)". This information is useful if a servlet is returning browser-specific content.

See Also:
Constant Field Values

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.