|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.nutch.protocol.http.HttpResponse
public class HttpResponse
An HTTP response.
| Field Summary |
|---|
| Fields inherited from interface org.apache.nutch.metadata.HttpHeaders |
|---|
CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_MD5, CONTENT_TYPE, IP_ADDRESS, LAST_MODIFIED, LOCATION |
| Constructor Summary | |
|---|---|
HttpResponse(HttpBase http,
URL url,
WebPage page)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpResponse(HttpBase http,
URL url,
WebPage page)
throws ProtocolException,
IOException
ProtocolException
IOException| Method Detail |
|---|
public URL getUrl()
Response
getUrl in interface Responsepublic int getCode()
Response
getCode in interface Responsepublic String getHeader(String name)
Response
getHeader in interface Responsepublic Metadata getHeaders()
Response
getHeaders in interface Responsepublic byte[] getContent()
Response
getContent in interface Response
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||