WIDAR Classes

edu.nrao.widar.util
Class HttpClientLink.HttpAsyncClientLink

java.lang.Object
  extended by java.lang.Thread
      extended by edu.nrao.widar.util.HttpClientLink.HttpAsyncClientLink
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
HttpClientLink

public static class HttpClientLink.HttpAsyncClientLink
extends java.lang.Thread

A psuedo 'non-blocking' HTTP communciation Thread. HttpClientLink uses this Thread class to implement its asyncQuery methods. It initiates the comms in its own Thread and then fires a DataReadyEvent when it has the response. In this manner it behaves to the caller as non-blocking I/O.

 

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
HttpClientLink.HttpAsyncClientLink(java.lang.String urlString, java.lang.String bodyText, DataReadyListener listener, int readTimeout, DataReadyEvent callbackEvent)
           
HttpClientLink.HttpAsyncClientLink(java.lang.String urlString, java.lang.String bodyText, DataReadyListener listener, int readTimeout, int callbackId, java.lang.String callbackMessage)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpClientLink.HttpAsyncClientLink

public HttpClientLink.HttpAsyncClientLink(java.lang.String urlString,
                                          java.lang.String bodyText,
                                          DataReadyListener listener,
                                          int readTimeout,
                                          int callbackId,
                                          java.lang.String callbackMessage)

HttpClientLink.HttpAsyncClientLink

public HttpClientLink.HttpAsyncClientLink(java.lang.String urlString,
                                          java.lang.String bodyText,
                                          DataReadyListener listener,
                                          int readTimeout,
                                          DataReadyEvent callbackEvent)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

NRAO/DRAO

National Radio Astronomy Observatory