| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addHeader(String
the name of the header. name, Object the value of the header, taken as the value's value)Object#toString().Adds a header to this message. |
| public ProtocolVersion | |
| public boolean | Returns: true if a header was removed as a result of this call.the header to remove. header)Removes a header from this message. |
| public boolean | Returns: true if any header was removed as a result of this call.The name of the headers to remove. name)Removes all headers with a certain name from this message. |
| public void | |
| public void | setHeader(String
the name of the header. name, Object the value of the header, taken as the value's value)Object#toString().Overwrites the first header with the same name. |
| public void | |
| public void |
| addHeader | back to summary |
|---|---|
| public void addHeader(Header header) Adds a header to this message. The header will be appended to the end of the list.
| |
| addHeader | back to summary |
|---|---|
| public void addHeader(String name, Object value) Adds a header to this message. The header will be appended to the end of the list.
| |
| getVersion | back to summary |
|---|---|
| public ProtocolVersion getVersion() Returns protocol version or For incoming messages it represents protocol version this message was transmitted with. For outgoing messages it represents a hint what protocol version should be used to transmit the message.
| |
| removeHeader | back to summary |
|---|---|
| public boolean removeHeader(Header header) Removes a header from this message.
| |
| removeHeaders | back to summary |
|---|---|
| public boolean removeHeaders(String name) Removes all headers with a certain name from this message.
| |
| setHeader | back to summary |
|---|---|
| public void setHeader(Header header) 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.
| |
| setHeader | back to summary |
|---|---|
| public void setHeader(String name, Object value) 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.
| |
| setHeaders | back to summary |
|---|---|
| public void setHeaders(Header... headers) Overwrites all the headers in the message.
| |
| setVersion | back to summary |
|---|---|
| public void setVersion(ProtocolVersion version) Sets protocol version. For incoming messages it represents protocol version this message was transmitted with. For outgoing messages it represents a hint what protocol version should be used to transmit the message.
| |