public interface HttpMessage
HttpRequest
and
HttpResponse
.Modifier and Type | Method and Description |
---|---|
boolean |
containsHeader(String name)
Returns
true if and only if there is a header with the specified
header name. |
String |
getHeader(String name)
Returns the header value with the specified header name.
|
Set<String> |
getHeaderNames()
Returns the
Set of all header names that this message contains. |
List<Map.Entry<String,String>> |
getHeaders()
Returns the all header names and values that this message contains.
|
List<String> |
getHeaders(String name)
Returns the header values with the specified header name.
|
String getHeader(String name)
null
if there is no such headerList<String> getHeaders(String name)
List
of header values. An empty list if there is no
such header.List<Map.Entry<String,String>> getHeaders()
List
of the header name-value pairs. An empty list
if there is no header in this message.boolean containsHeader(String name)
true
if and only if there is a header with the specified
header name.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.