| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if at least one header with this name is present.the header name to check for. name)Checks if a certain header is present in this message. |
| public int | Returns: number of occurrences of the header in the message.the header name to check for. name)Checks if a certain header is present in this message and how many times. |
| public Header | Returns: the first header whose name property equalsname
or null if no such header could be found.the name of the header to return. name)Returns the first header with a specified name of this message. |
| public Header | |
| public Header[] | |
| public Header[] | Returns: the headers whose name property equalsname.the name of the headers to return. name)Returns all the headers with a specified name of this message. |
| public Header | Returns: the last header whose name property equalsname.
or null if no such header could be found.the name of the header to return. name)Returns the last header with a specified name of this message. |
| public Iterator | Returns: Iterator that returns Header objects in the sequence they are sent over a connection.Returns an iterator of all the headers. |
| public Iterator | Returns: Iterator that returns Header objects with the argument name in the sequence they are sent over a connection.the name of the headers over which to iterate, or
name)null for all headersReturns an iterator of the headers with a given name. |
| containsHeader | back to summary |
|---|---|
| public boolean containsHeader(String name) Checks if a certain header is present in this message. Header values are ignored.
| |
| countHeaders | back to summary |
|---|---|
| public int countHeaders(String name) Checks if a certain header is present in this message and how many times.
| |
| getFirstHeader | back to summary |
|---|---|
| public Header getFirstHeader(String name) 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 | |
| getHeader | back to summary |
|---|---|
| public Header getHeader(String name) throws ProtocolException Gets single first header with the given name. Header name comparison is case insensitive.
| |
| getHeaders | back to summary |
|---|---|
| public Header[] getHeaders() Returns all the headers of this message. Headers are ordered in the sequence they will be sent over a connection.
| |
| getHeaders | back to summary |
|---|---|
| public Header[] getHeaders(String name) Returns all the headers with a specified name of this message. Header values are ignored. Headers are ordered in the sequence they will be sent over a connection. | |
| getLastHeader | back to summary |
|---|---|
| public Header getLastHeader(String 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 | |
| headerIterator | back to summary |
|---|---|
| public Iterator Returns an iterator of all the headers. | |
| headerIterator | back to summary |
|---|---|
| public Iterator Returns an iterator of the headers with a given name. | |