Expresso 5-6

com.jcorporate.expresso.ext.dbobj
Class URLReader

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.jcorporate.expresso.ext.dbobj.URLReader
All Implemented Interfaces:
Runnable

public class URLReader
extends Thread

Created on March 20, 2001, 9:00 AM

Author:
Michael Nash

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
URLReader(InputStreamReader newDis, String newExpect, boolean newPrint)
          Creates new URLReader
 
Method Summary
 boolean completedSuccessfully()
           
 String getFailureReason()
           
 String getSessionId()
           
 void run()
          Read from the specified URL, looking for the "ExpectString".
 void setRequireSession(boolean newRequireSession)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

URLReader

public URLReader(InputStreamReader newDis,
                 String newExpect,
                 boolean newPrint)
Creates new URLReader

Parameters:
newDis - a Data Input Stream
newExpect - String that is expected
newPrint - should output be printed
Method Detail

getSessionId

public String getSessionId()

setRequireSession

public void setRequireSession(boolean newRequireSession)

getFailureReason

public String getFailureReason()
Returns:
The reason for failure as java.lang.String

completedSuccessfully

public boolean completedSuccessfully()
Returns:
true if the test had completed successfully

run

public void run()
Read from the specified URL, looking for the "ExpectString". If you find it, return true, if not - return false


Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.