protected static class CommonsHTTPSender.BackgroundHTTPThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected boolean |
abortThread |
protected InputStream |
bodyStream |
protected Charset |
charSet |
protected org.apache.http.client.methods.HttpRequestBase |
executeMethod |
protected Throwable |
generalException |
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 XThreadInputStream |
threadStream |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
CommonsHTTPSender.BackgroundHTTPThread(org.apache.http.client.HttpClient httpClient,
org.apache.http.client.methods.HttpRequestBase executeMethod) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
protected void |
checkException(Throwable exception) |
void |
finishUp() |
Charset |
getCharSet() |
String |
getFirstHeader(String headerName) |
int |
getResponseCode() |
Map<String,List<String>> |
getResponseHeaders() |
String |
getResponseStatus() |
InputStream |
getSafeInputStream() |
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 org.apache.http.client.HttpClient httpClient
protected final org.apache.http.client.methods.HttpRequestBase executeMethod
protected org.apache.http.HttpResponse response
protected Throwable responseException
protected XThreadInputStream threadStream
protected InputStream bodyStream
protected Charset charSet
protected boolean streamCreated
protected Throwable streamException
protected boolean abortThread
protected Throwable shutdownException
protected Throwable generalException
public CommonsHTTPSender.BackgroundHTTPThread(org.apache.http.client.HttpClient httpClient, org.apache.http.client.methods.HttpRequestBase executeMethod)
public int getResponseCode() throws InterruptedException, IOException, org.apache.http.HttpException
InterruptedException
IOException
org.apache.http.HttpException
public String getResponseStatus() 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 InputStream getSafeInputStream() throws InterruptedException, IOException, org.apache.http.HttpException
InterruptedException
IOException
org.apache.http.HttpException
public Charset getCharSet() 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