public interface Response extends HttpHeaders
Modifier and Type | Interface and Description |
---|---|
static class |
Response.TruncatedContentReason |
Modifier and Type | Field and Description |
---|---|
static String |
FETCH_TIME
Key to hold the time when the page has been fetched
|
static String |
IP_ADDRESS
Key to hold the IP address the request is sent to if
store.ip.address is true |
static String |
REQUEST
Key to hold the HTTP request if
store.http.request is true |
static String |
RESPONSE_HEADERS
Key to hold the HTTP response header if
store.http.headers is
true |
static String |
TRUNCATED_CONTENT
Key to hold boolean whether content has been truncated, e.g., because it
exceeds
http.content.limit |
static String |
TRUNCATED_CONTENT_REASON
Key to hold reason why content has been truncated, see
Response.TruncatedContentReason |
CLIENT_TRANSFER_ENCODING, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_MD5, CONTENT_TYPE, IF_MODIFIED_SINCE, LAST_MODIFIED, LOCATION, TRANSFER_ENCODING, USER_AGENT, WRITABLE_CONTENT_TYPE
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Returns the response code.
|
byte[] |
getContent()
Returns the full content of the response.
|
String |
getHeader(String name)
Returns the value of a named header.
|
Metadata |
getHeaders()
Returns all the headers.
|
URL |
getUrl()
Returns the URL used to retrieve this response.
|
static final String REQUEST
store.http.request
is truestatic final String RESPONSE_HEADERS
store.http.headers
is
truestatic final String IP_ADDRESS
store.ip.address
is truestatic final String FETCH_TIME
static final String TRUNCATED_CONTENT
http.content.limit
static final String TRUNCATED_CONTENT_REASON
Response.TruncatedContentReason
Copyright © 2021 The Apache Software Foundation