faust.sacha.web.bot.spider.data
Class FileGetter

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--faust.sacha.web.bot.spider.event.ThreadEventManager
              |
              +--faust.sacha.web.bot.spider.data.FileGetter
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
FileDataGetter, FileInfoGetter

public abstract class FileGetter
extends ThreadEventManager


Field Summary
protected  ProcessBroker m_broker
           
protected  int m_state
           
protected  URLData m_url
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FileGetter(java.lang.String name, URLData url, ProcessBroker broker)
           
 
Method Summary
protected  boolean isPotentialHTMLFile(URLData url)
           
protected  void prepareRequestMethod(URLData url, org.apache.commons.httpclient.HttpMethod requestMethod, boolean redirect)
           
 void run()
           
 
Methods inherited from class faust.sacha.web.bot.spider.event.ThreadEventManager
addToListeners, getState, receiveEvent, sendEvent, sendEventAll, setState, stopAllListenningThreads
 
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
 

Field Detail

m_url

protected URLData m_url

m_state

protected int m_state

m_broker

protected ProcessBroker m_broker
Constructor Detail

FileGetter

public FileGetter(java.lang.String name,
                  URLData url,
                  ProcessBroker broker)
Method Detail

run

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

prepareRequestMethod

protected void prepareRequestMethod(URLData url,
                                    org.apache.commons.httpclient.HttpMethod requestMethod,
                                    boolean redirect)

isPotentialHTMLFile

protected boolean isPotentialHTMLFile(URLData url)