public interface HttpMessage
Modifier and Type | Method and Description |
---|---|
boolean |
containsHeader(String name)
Tells if the message contains some header
|
String |
getContentType()
Gets the
Content-Type header of the message. |
String |
getHeader(String name)
Returns the value of the HTTP header with the specified name.
|
Map<String,String> |
getHeaders() |
HttpVersion |
getProtocolVersion()
The HTTP version of the message
|
boolean |
isKeepAlive() |
HttpVersion getProtocolVersion()
String getContentType()
Content-Type
header of the message.boolean isKeepAlive()
true
if this message enables keep-alive connection.String getHeader(String name)
name
- The name of the desired headerboolean containsHeader(String name)
name
- the Header's name we are looking fortrue
if the HTTP header with the specified name exists in this request.Copyright © 2004–2024 Apache MINA Project. All rights reserved.