protected static class CommonsHTTPSender.BackgroundHTTPThread
extends java.lang.Thread
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
abortThread |
protected java.io.InputStream |
bodyStream |
protected java.nio.charset.Charset |
charSet |
protected org.apache.http.client.methods.HttpRequestBase |
executeMethod |
protected java.lang.Throwable |
generalException |
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 XThreadInputStream |
threadStream |
| Constructor and Description |
|---|
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(java.lang.Throwable exception) |
void |
finishUp() |
java.nio.charset.Charset |
getCharSet() |
java.lang.String |
getFirstHeader(java.lang.String headerName) |
int |
getResponseCode() |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getResponseHeaders() |
java.lang.String |
getResponseStatus() |
java.io.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, yieldprotected final org.apache.http.client.HttpClient httpClient
protected final org.apache.http.client.methods.HttpRequestBase executeMethod
protected org.apache.http.HttpResponse response
protected java.lang.Throwable responseException
protected XThreadInputStream threadStream
protected java.io.InputStream bodyStream
protected java.nio.charset.Charset charSet
protected boolean streamCreated
protected java.lang.Throwable streamException
protected boolean abortThread
protected java.lang.Throwable shutdownException
protected java.lang.Throwable generalException
public BackgroundHTTPThread(org.apache.http.client.HttpClient httpClient,
org.apache.http.client.methods.HttpRequestBase executeMethod)
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.lang.String getResponseStatus()
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 java.io.InputStream getSafeInputStream()
throws java.lang.InterruptedException,
java.io.IOException,
org.apache.http.HttpException
java.lang.InterruptedExceptionjava.io.IOExceptionorg.apache.http.HttpExceptionpublic java.nio.charset.Charset getCharSet()
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