|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.connectivity.framework.crawler.web.http.HttpResponse
public class HttpResponse
Retrieves page checks content-type filters and performs HTML form authentication if needed.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.smila.connectivity.framework.crawler.web.metadata.HttpHeaders |
|---|
CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_MD5, CONTENT_TYPE, LAST_MODIFIED, LOCATION |
| Constructor Summary | |
|---|---|
HttpResponse(HttpBase http,
java.lang.String urlString,
FilterProcessor filterProcessor)
Creates new object and fills it with retrieved URL information. |
|
| Method Summary | |
|---|---|
int |
getCode()
Returns the response code. |
byte[] |
getContent()
Returns the full content of the response. |
java.lang.String |
getHeader(java.lang.String name)
Returns the value of a named header. |
Metadata |
getHeaders()
Returns all the headers. |
java.lang.String |
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,
java.lang.String urlString,
FilterProcessor filterProcessor)
throws java.io.IOException
http - HTTP protocol options HTTP to retrievefilterProcessor - filters to performurlString - the url string
java.io.IOException - if error while retrieving URL occur| Method Detail |
|---|
public java.lang.String getUrl()
getUrl in interface Responsepublic int getCode()
getCode in interface Responsepublic java.lang.String getHeader(java.lang.String name)
getHeader in interface Responsename - Header name
public Metadata getHeaders()
getHeaders in interface Responsepublic byte[] getContent()
getContent in interface Response
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||