public interface Response extends HttpHeaders
CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_MD5, CONTENT_TYPE, LAST_MODIFIED, LOCATION, TRANSFER_ENCODING
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Returns the response code.
|
byte[] |
getContent()
Returns the full content of the response.
|
java.lang.String |
getHeader(java.lang.String name)
Returns the value of a named header.
|
Metadata |
getHeaders()
Returns all the headers.
|
java.net.URL |
getUrl()
Returns the URL used to retrieve this response.
|
java.net.URL getUrl()
int getCode()
java.lang.String getHeader(java.lang.String name)
Metadata getHeaders()
byte[] getContent()
Copyright © 2019 The Apache Software Foundation