org.jboss.portal.common.net
Class URLStreamOpeningThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.jboss.portal.common.net.URLStreamOpeningThread
All Implemented Interfaces:
java.lang.Runnable

public class URLStreamOpeningThread
extends java.lang.Thread

A class that opens an InputStream to a URL in a thread so that it doesn't block normal operations and can be timed out if needed.

Since:
2.4.2
Version:
$Revision: 7379 $
Author:
Chris Laprun

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
URLStreamOpeningThread(java.net.URL url)
           
 
Method Summary
 java.io.IOException getException()
           
 java.io.InputStream getInputStream()
           
 boolean isConnected()
           
 boolean isError()
           
 void run()
           
 
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
 

Constructor Detail

URLStreamOpeningThread

public URLStreamOpeningThread(java.net.URL url)
Method Detail

run

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

isConnected

public boolean isConnected()

isError

public boolean isError()

getInputStream

public java.io.InputStream getInputStream()

getException

public java.io.IOException getException()