protected static class ThrottledFetcher.ExecuteMethodThread
extends java.lang.Thread
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
abortThread |
protected java.io.InputStream |
bodyStream |
protected java.lang.Throwable |
cookieException |
protected LoginCookies |
cookies |
protected org.apache.http.client.CookieStore |
cookieStore |
protected boolean |
deflate |
protected org.apache.http.client.methods.HttpRequestBase |
executeMethod |
protected org.apache.manifoldcf.connectorcommon.interfaces.IFetchThrottler |
fetchThrottler
The fetch throttler
|
protected java.lang.Throwable |
generalException |
protected boolean |
gzip |
protected org.apache.http.client.HttpClient |
httpClient
Client and method, all preconfigured
|
protected org.apache.http.HttpResponse |
response |
protected java.lang.Throwable |
responseException |
protected java.lang.Throwable |
shutdownException |
protected boolean |
streamCreated |
protected java.lang.Throwable |
streamException |
protected org.apache.http.HttpHost |
target |
protected ThrottledFetcher.ThrottledConnection |
theConnection
The connection
|
protected org.apache.manifoldcf.connectorcommon.common.XThreadInputStream |
threadStream |
| Constructor and Description |
|---|
ExecuteMethodThread(ThrottledFetcher.ThrottledConnection theConnection,
org.apache.manifoldcf.connectorcommon.interfaces.IFetchThrottler fetchThrottler,
org.apache.http.client.HttpClient httpClient,
org.apache.http.HttpHost target,
org.apache.http.client.methods.HttpRequestBase executeMethod,
org.apache.http.client.CookieStore cookieStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
protected void |
checkException(java.lang.Throwable exception) |
void |
finishUp() |
LoginCookies |
getCookies() |
java.lang.String |
getFirstHeader(java.lang.String headerName) |
int |
getResponseCode() |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getResponseHeaders() |
java.io.InputStream |
getSafeInputStream() |
boolean |
isDeflateStream() |
boolean |
isGZipStream() |
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected final ThrottledFetcher.ThrottledConnection theConnection
protected final org.apache.manifoldcf.connectorcommon.interfaces.IFetchThrottler fetchThrottler
protected final org.apache.http.client.HttpClient httpClient
protected final org.apache.http.HttpHost target
protected final org.apache.http.client.methods.HttpRequestBase executeMethod
protected final org.apache.http.client.CookieStore cookieStore
protected org.apache.http.HttpResponse response
protected java.lang.Throwable responseException
protected LoginCookies cookies
protected java.lang.Throwable cookieException
protected org.apache.manifoldcf.connectorcommon.common.XThreadInputStream threadStream
protected java.io.InputStream bodyStream
protected boolean streamCreated
protected java.lang.Throwable streamException
protected boolean abortThread
protected boolean gzip
protected boolean deflate
protected java.lang.Throwable shutdownException
protected java.lang.Throwable generalException
public ExecuteMethodThread(ThrottledFetcher.ThrottledConnection theConnection, org.apache.manifoldcf.connectorcommon.interfaces.IFetchThrottler fetchThrottler, org.apache.http.client.HttpClient httpClient, org.apache.http.HttpHost target, org.apache.http.client.methods.HttpRequestBase executeMethod, org.apache.http.client.CookieStore cookieStore)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic int getResponseCode()
throws java.lang.InterruptedException,
java.io.IOException,
org.apache.http.HttpException
java.lang.InterruptedExceptionjava.io.IOExceptionorg.apache.http.HttpExceptionpublic java.util.Map<java.lang.String,java.util.List<java.lang.String>> getResponseHeaders()
throws java.lang.InterruptedException,
java.io.IOException,
org.apache.http.HttpException
java.lang.InterruptedExceptionjava.io.IOExceptionorg.apache.http.HttpExceptionpublic java.lang.String getFirstHeader(java.lang.String headerName)
throws java.lang.InterruptedException,
java.io.IOException,
org.apache.http.HttpException
java.lang.InterruptedExceptionjava.io.IOExceptionorg.apache.http.HttpExceptionpublic LoginCookies getCookies() throws java.lang.InterruptedException, java.io.IOException, org.apache.http.HttpException
java.lang.InterruptedExceptionjava.io.IOExceptionorg.apache.http.HttpExceptionpublic boolean isGZipStream()
throws java.lang.InterruptedException,
java.io.IOException,
org.apache.http.HttpException
java.lang.InterruptedExceptionjava.io.IOExceptionorg.apache.http.HttpExceptionpublic boolean isDeflateStream()
throws java.lang.InterruptedException,
java.io.IOException,
org.apache.http.HttpException
java.lang.InterruptedExceptionjava.io.IOExceptionorg.apache.http.HttpExceptionpublic java.io.InputStream getSafeInputStream()
throws java.lang.InterruptedException,
java.io.IOException,
org.apache.http.HttpException
java.lang.InterruptedExceptionjava.io.IOExceptionorg.apache.http.HttpExceptionpublic void abort()
public void finishUp()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected void checkException(java.lang.Throwable exception)
throws java.io.IOException,
org.apache.http.HttpException
java.io.IOExceptionorg.apache.http.HttpException