public interface HttpResponse
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getHeader(java.lang.String headerName)
Returns the values of for a particular header name.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getHeaders()
Returns all HTTP headers.
|
int |
getStatusCode()
Returns the status code of the HTTP response.
|
int getStatusCode()
int
java.util.List<java.lang.String> getHeader(java.lang.String headerName)
If the header name appears multiple times in the HTTP response list of all values for that header name will be returned.
headerName
- the name of the HTTP header to readnull
.java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
null
.getHeader(java.lang.String)