com.jcorporate.expresso.ext.dbobj
Class URLReader
java.lang.Object
java.lang.Thread
com.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
| 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 |
URLReader
public URLReader(InputStreamReader newDis,
String newExpect,
boolean newPrint)
- Creates new URLReader
- Parameters:
newDis - a Data Input StreamnewExpect - String that is expectednewPrint - should output be printed
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
Please see www.jcorporate.com for information about new Expresso releases.