Adds a header to this message. The header will be appended to the end of
the list.
Parameters: name - the name of the header. Parameters: value - the value of the header.
Checks if a certain header is present in this message. Header values are
ignored.
Parameters: name - the header name to check for. true if at least one header with this name is present.
Returns the first header with a specified name of this message. Header
values are ignored. If there is more than one matching header in the
message the first element of
HttpMessage.getHeaders(String) is returned.
If there is no matching header in the message null is
returned.
Parameters: name - the name of the header to return. the first header whose name property equals nameor null if no such header could be found.
Returns all the headers with a specified name of this message. Header values
are ignored. Headers are orderd in the sequence they will be sent over a
connection.
Parameters: name - the name of the headers to return. the headers whose name property equals name.
Returns the last header with a specified name of this message. Header values
are ignored. If there is more than one matching header in the message the
last element of
HttpMessage.getHeaders(String) is returned. If there is no
matching header in the message null is returned.
Parameters: name - the name of the header to return. the last header whose name property equals name.or null if no such header could be found.
Returns an iterator of the headers with a given name.
Parameters: name - the name of the headers over which to iterate, ornull for all headers Iterator that returns Header objects with the argument namein the sequence they are sent over a connection.
Overwrites the first header with the same name. The new header will be appended to
the end of the list, if no header with the given name can be found.
Parameters: header - the header to set.
Overwrites the first header with the same name. The new header will be appended to
the end of the list, if no header with the given name can be found.
Parameters: name - the name of the header. Parameters: value - the value of the header.