protected static class ThrottledFetcher.ExecuteMethodThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected boolean |
abortThread |
protected InputStream |
bodyStream |
protected Throwable |
cookieException |
protected LoginCookies |
cookies |
protected org.apache.http.client.CookieStore |
cookieStore |
protected boolean |
deflate |
protected org.apache.http.client.methods.HttpRequestBase |
executeMethod |
protected IFetchThrottler |
fetchThrottler
The fetch throttler
|
protected Throwable |
generalException |
protected boolean |
gzip |
protected org.apache.http.client.HttpClient |
httpClient
Client and method, all preconfigured
|
protected org.apache.http.HttpResponse |
response |
protected Throwable |
responseException |
protected Throwable |
shutdownException |
protected boolean |
streamCreated |
protected Throwable |
streamException |
protected org.apache.http.HttpHost |
target |
protected ThrottledFetcher.ThrottledConnection |
theConnection
The connection
|
protected XThreadInputStream |
threadStream |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ThrottledFetcher.ExecuteMethodThread(ThrottledFetcher.ThrottledConnection theConnection,
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(Throwable exception) |
void |
finishUp() |
LoginCookies |
getCookies() |
String |
getFirstHeader(String headerName) |
int |
getResponseCode() |
Map<String,List<String>> |
getResponseHeaders() |
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, yield
protected final ThrottledFetcher.ThrottledConnection theConnection
protected final 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 Throwable responseException
protected LoginCookies cookies
protected Throwable cookieException
protected XThreadInputStream threadStream
protected InputStream bodyStream
protected boolean streamCreated
protected Throwable streamException
protected boolean abortThread
protected boolean gzip
protected boolean deflate
protected Throwable shutdownException
protected Throwable generalException
public ThrottledFetcher.ExecuteMethodThread(ThrottledFetcher.ThrottledConnection theConnection, 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 int getResponseCode() throws InterruptedException, IOException, org.apache.http.HttpException
InterruptedException
IOException
org.apache.http.HttpException
public Map<String,List<String>> getResponseHeaders() throws InterruptedException, IOException, org.apache.http.HttpException
InterruptedException
IOException
org.apache.http.HttpException
public String getFirstHeader(String headerName) throws InterruptedException, IOException, org.apache.http.HttpException
InterruptedException
IOException
org.apache.http.HttpException
public LoginCookies getCookies() throws InterruptedException, IOException, org.apache.http.HttpException
InterruptedException
IOException
org.apache.http.HttpException
public boolean isGZipStream() throws InterruptedException, IOException, org.apache.http.HttpException
InterruptedException
IOException
org.apache.http.HttpException
public boolean isDeflateStream() throws InterruptedException, IOException, org.apache.http.HttpException
InterruptedException
IOException
org.apache.http.HttpException
public InputStream getSafeInputStream() throws InterruptedException, IOException, org.apache.http.HttpException
InterruptedException
IOException
org.apache.http.HttpException
public void abort()
public void finishUp() throws InterruptedException
InterruptedException
protected void checkException(Throwable exception) throws IOException, org.apache.http.HttpException
IOException
org.apache.http.HttpException