public class Page extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
contentCharset
The charset of the content.
|
protected byte[] |
contentData
The content of this page in binary format.
|
protected String |
contentEncoding
The encoding of the content.
|
protected String |
contentType
The ContentType of this page.
|
protected org.apache.http.Header[] |
fetchResponseHeaders
Headers which were present in the response of the
fetch request
|
protected ParseData |
parseData
The parsed data populated by parsers
|
protected WebURL |
url
The URL of this page.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContentCharset()
Returns the charset of the content.
|
byte[] |
getContentData()
Returns the content of this page in binary format.
|
String |
getContentEncoding()
Returns the encoding of the content.
|
String |
getContentType()
Returns the ContentType of this page.
|
org.apache.http.Header[] |
getFetchResponseHeaders()
Returns headers which were present in the response of the
fetch request
|
ParseData |
getParseData()
Returns the parsed data generated for this page by parsers
|
WebURL |
getWebURL() |
void |
load(org.apache.http.HttpEntity entity)
Loads the content of this page from a fetched
HttpEntity.
|
void |
setContentCharset(String contentCharset) |
void |
setContentData(byte[] contentData) |
void |
setContentEncoding(String contentEncoding) |
void |
setContentType(String contentType) |
void |
setFetchResponseHeaders(org.apache.http.Header[] headers) |
void |
setParseData(ParseData parseData) |
void |
setWebURL(WebURL url) |
protected WebURL url
protected byte[] contentData
protected String contentType
protected String contentEncoding
protected String contentCharset
protected org.apache.http.Header[] fetchResponseHeaders
protected ParseData parseData
public Page(WebURL url)
public WebURL getWebURL()
public void setWebURL(WebURL url)
public void load(org.apache.http.HttpEntity entity)
throws Exception
Exceptionpublic org.apache.http.Header[] getFetchResponseHeaders()
public void setFetchResponseHeaders(org.apache.http.Header[] headers)
public ParseData getParseData()
public void setParseData(ParseData parseData)
public byte[] getContentData()
public void setContentData(byte[] contentData)
public String getContentType()
public void setContentType(String contentType)
public String getContentEncoding()
public void setContentEncoding(String contentEncoding)
public String getContentCharset()
public void setContentCharset(String contentCharset)
Copyright © 2013. All Rights Reserved.