public class PageFetchResult extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.HttpEntity |
entity |
protected String |
fetchedUrl |
protected static org.slf4j.Logger |
logger |
protected String |
movedToUrl |
protected org.apache.http.Header[] |
responseHeaders |
protected int |
statusCode |
| Constructor and Description |
|---|
PageFetchResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
discardContentIfNotConsumed() |
boolean |
fetchContent(Page page,
int maxBytes) |
org.apache.http.HttpEntity |
getEntity() |
String |
getFetchedUrl() |
String |
getMovedToUrl() |
org.apache.http.Header[] |
getResponseHeaders() |
int |
getStatusCode() |
void |
setEntity(org.apache.http.HttpEntity entity) |
void |
setFetchedUrl(String fetchedUrl) |
void |
setMovedToUrl(String movedToUrl) |
void |
setResponseHeaders(org.apache.http.Header[] responseHeaders) |
void |
setStatusCode(int statusCode) |
protected static final org.slf4j.Logger logger
protected int statusCode
protected org.apache.http.HttpEntity entity
protected org.apache.http.Header[] responseHeaders
protected String fetchedUrl
protected String movedToUrl
public int getStatusCode()
public void setStatusCode(int statusCode)
public org.apache.http.HttpEntity getEntity()
public void setEntity(org.apache.http.HttpEntity entity)
public org.apache.http.Header[] getResponseHeaders()
public void setResponseHeaders(org.apache.http.Header[] responseHeaders)
public String getFetchedUrl()
public void setFetchedUrl(String fetchedUrl)
public boolean fetchContent(Page page, int maxBytes)
public void discardContentIfNotConsumed()
public String getMovedToUrl()
public void setMovedToUrl(String movedToUrl)
Copyright © 2017. All rights reserved.