WIDAR Classes

edu.nrao.widar.util
Class HttpAsyncLink

java.lang.Object
  extended by java.lang.Thread
      extended by edu.nrao.widar.util.HttpAsyncLink
All Implemented Interfaces:
java.lang.Runnable

public class HttpAsyncLink
extends java.lang.Thread

A psuedo 'non-blocking' HTTP communciation Thread. HttpLink 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.

This class will most likely always be used only by HttpLink but it is made public because there is no reason why it cannot be used stand-alone if someone desires.

Since:
1.5
Author:
KJRyan
Created:
2008.11.04
 

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
HttpAsyncLink(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

HttpAsyncLink

public HttpAsyncLink(java.lang.String urlString,
                     java.lang.String bodyText,
                     DataReadyListener listener,
                     int readTimeout,
                     int callbackId,
                     java.lang.String callbackMessage)
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