HTTP request and response headers are represented by this class which implements
the interface
java.util.Map <
java.lang.String ,
java.util.List <
java.lang.String >>.
The keys are case-insensitive Strings representing the header names and
the value associated with each key is a
List <
String > with one
element for each occurence of the header name in the request or response.
For example, if a response header instance contains one key "HeaderName" with two values "value1 and value2"
then this object is output as two header lines:
HeaderName: value1
HeaderName: value2
All the normal
java.util.Map methods are provided, but the following
additional convenience methods are most likely to be used:
All methods in this class accept null values for keys and values. |