protected static class CswsConnector.ExecuteMethodThread
extends java.lang.Thread
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
abortThread |
protected java.io.InputStream |
bodyStream |
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 org.apache.manifoldcf.connectorcommon.common.XThreadInputStream |
threadStream |
| Constructor and Description |
|---|
ExecuteMethodThread(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.lang.String |
getFirstHeader(java.lang.String headerName) |
int |
getResponseCode() |
long |
getResponseContentLength() |
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 org.apache.manifoldcf.connectorcommon.common.XThreadInputStream threadStream
protected java.io.InputStream bodyStream
protected boolean streamCreated
protected java.lang.Throwable streamException
protected boolean abortThread
protected java.lang.Throwable shutdownException
protected java.lang.Throwable generalException
public ExecuteMethodThread(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 long getResponseContentLength()
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 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