public interface IThrottledConnection
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
static int |
FETCH_BAD_URI |
static int |
FETCH_CIRCULAR_REDIRECT |
static int |
FETCH_IO_ERROR |
static int |
FETCH_NOT_TRIED |
static int |
FETCH_SEQUENCE_ERROR |
static int |
FETCH_UNKNOWN_ERROR |
static int |
STATUS_NOCHANGE
Status code for fetch: No change.
|
static int |
STATUS_OK
Status code for fetch: OK
|
static int |
STATUS_PAGEERROR
Status code for fetch: Static error; retries won't help, individual page access failed
|
static int |
STATUS_SITEERROR
Status code for fetch: Static error; retries won't help, overall access to site in question
|
| Modifier and Type | Method and Description |
|---|---|
void |
beginFetch(java.lang.String fetchType)
Begin the fetch process.
|
void |
close()
Close the connection.
|
void |
doneFetch(org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities)
Done with the fetch.
|
int |
executeFetch(java.lang.String protocol,
int port,
java.lang.String urlPath,
java.lang.String userAgent,
java.lang.String from,
java.lang.String lastETag,
java.lang.String lastModified)
Execute the fetch and get the return code.
|
java.io.InputStream |
getResponseBodyStream()
Get the response input stream.
|
int |
getResponseCode()
Get the http response code.
|
java.lang.String |
getResponseHeader(java.lang.String headerName)
Get a specified response header, if it exists.
|
static final java.lang.String _rcsid
static final int STATUS_OK
static final int STATUS_SITEERROR
static final int STATUS_PAGEERROR
static final int STATUS_NOCHANGE
static final int FETCH_NOT_TRIED
static final int FETCH_CIRCULAR_REDIRECT
static final int FETCH_BAD_URI
static final int FETCH_SEQUENCE_ERROR
static final int FETCH_IO_ERROR
static final int FETCH_UNKNOWN_ERROR
void beginFetch(java.lang.String fetchType)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
fetchType - is a short descriptive string describing the kind of fetch being requested. This
is used solely for logging purposes.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionint executeFetch(java.lang.String protocol,
int port,
java.lang.String urlPath,
java.lang.String userAgent,
java.lang.String from,
java.lang.String lastETag,
java.lang.String lastModified)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
protocol - is the protocol to use to perform the access, e.g. "http"port - is the port to use to perform the access, where -1 means "use the default"urlPath - is the path part of the url, e.g. "/robots.txt"userAgent - is the value of the userAgent header to use.from - is the value of the from header to use.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionint getResponseCode()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionjava.io.InputStream getResponseBodyStream()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionjava.lang.String getResponseHeader(java.lang.String headerName)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
headerName - is the name of the header.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionvoid doneFetch(org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionvoid close()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFException