|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Response
A response inteface. Makes all protocols model HTTP.
| 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, LAST_MODIFIED, LOCATION |
| 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. |
| Method Detail |
|---|
URL getUrl()
int getCode()
String getHeader(String name)
Metadata getHeaders()
byte[] getContent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||