net.server.sendmail
Class SearchThread

java.lang.Object
  extended by java.lang.Thread
      extended by net.server.sendmail.SearchThread
All Implemented Interfaces:
java.lang.Runnable

public class SearchThread
extends java.lang.Thread


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
 
Method Summary
 void email(java.lang.String msg)
          Invokes the email applet and sends required info to send the email
 java.lang.String getSearch(java.lang.String s)
          Method getSearch
static java.lang.String getUrlResult(java.lang.String search)
          Method getUrlResult Queries a website with the url provided and returns the results
 void print(java.lang.String s)
          Prints out the message to command line
 void run()
          Overidden run() method This contains the code we want to run inside the new thread
 java.lang.String searchAllTheWeb(java.lang.String search)
          Method searchAllTheWeb
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

run

public void run()
Overidden run() method This contains the code we want to run inside the new thread

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

getSearch

public java.lang.String getSearch(java.lang.String s)
Method getSearch

Parameters:
s - - the string containing the search criteria
Returns:
String - the String containing the search results Queries each search engine, passing in the query string Acccessor method used only to return the search results Not used in normal search process

searchAllTheWeb

public java.lang.String searchAllTheWeb(java.lang.String search)
Method searchAllTheWeb

Parameters:
search - - the string containing the search criteria
Returns:
String - the String containing the search results Queries each search engine, passing in the query string

print

public void print(java.lang.String s)
Prints out the message to command line


email

public void email(java.lang.String msg)
Invokes the email applet and sends required info to send the email


getUrlResult

public static java.lang.String getUrlResult(java.lang.String search)
Method getUrlResult Queries a website with the url provided and returns the results

Parameters:
search - - the string representing the search query for a particular search engine