com.ibm.xcap.client
Class RequestTask

java.lang.Object
  extended by java.lang.Thread
      extended by com.ibm.xcap.client.RequestTask
All Implemented Interfaces:
java.lang.Runnable

public class RequestTask
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static java.lang.String CLASSNAME
          Classname
protected  ThreadedRequestHandler handler
           
static java.util.logging.Logger LOGGER
          Logger for this class
protected  XcapClientRequest request
           
protected  XcapClientResponse response
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RequestTask(XcapClientRequest request, ThreadedRequestHandler handler)
           
 
Method Summary
 void run()
          Run will send the request and handle the notification of the response to this instance's ThreadedRequestHandler.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME
Classname


LOGGER

public static final java.util.logging.Logger LOGGER
Logger for this class


request

protected XcapClientRequest request

response

protected XcapClientResponse response

handler

protected ThreadedRequestHandler handler
Constructor Detail

RequestTask

public RequestTask(XcapClientRequest request,
                   ThreadedRequestHandler handler)
Method Detail

run

public void run()
Run will send the request and handle the notification of the response to this instance's ThreadedRequestHandler. Since this class extends Runnable, this method is unable to throw any exceptions. Therefore, if an exception occurs in the request, the response object will have a status code == -1 and the XcapClientResponse.setException(IOException) will be called appropriately.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread
See Also:
ThreadedRequestHandler