public interface HttpMessage
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsHeader(java.lang.String name)
Returns true if the HTTP header with the specified name exists in this request.
|
java.lang.String |
getContentType()
Gets the Content-Type header of the message.
|
java.lang.String |
getHeader(java.lang.String name)
Returns the value of the HTTP header with the specified name.
|
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
Returns a read-only
Map of HTTP headers whose key is a String and whose value is a String
s. |
HttpVersion |
getProtocolVersion()
The HTTP version of the message
|
boolean |
isKeepAlive()
Returns true if this message enables keep-alive connection.
|
HttpVersion getProtocolVersion()
java.lang.String getContentType()
boolean isKeepAlive()
java.lang.String getHeader(java.lang.String name)
name - The name of the desired headerboolean containsHeader(java.lang.String name)
java.util.Map<java.lang.String,java.lang.String> getHeaders()
Map of HTTP headers whose key is a String and whose value is a String
s.