One element of an HTTP header's value.
Some HTTP headers (such as the set-cookie header) have values that can be decomposed into multiple elements. Such headers must be in the following form:
header = [ element ] *( "," [ element ] ) element = name [ "=" [ value ] ] *( ";" [ param ] ) param = name [ "=" [ value ] ] name = token value = ( token | quoted-string ) token = 1*<any char except "=", ",", ";", <"> and white space> quoted-string = <"> *( text | quoted-char ) <"> text = any char except <"> quoted-char = "\" char
Any amount of white space is allowed between any part of the header, element or param and is ignored. A missing value in any element or param will be stored as the empty {@link String}; if the "=" is also missing null will be stored instead.
This class represents an individual header element, containing both a name/value pair (value may be null) and optionally a set of additional parameters.
This class also exposes a {@link #parse} method for parsing a{@link Header} value into an array of elements.
@see Header @author B.C. Holmes @author Park, Sung-Gu @author Mike Bowler @author Oleg Kalnichevski @since 1.0 @version $Revision: 1.23 $ $Date: 2004-05-13 00:03:25 -0400 (Thu, 13 May 2004) $
|
|
|
|