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, FlashFileAnalyzer

public abstract class FileGetter
extends ThreadEventManager


Field Summary
protected  ThreadEventManager m_broker
           
protected  org.apache.commons.httpclient.HttpState m_httpState
           
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, ThreadEventManager broker)
           
 
Method Summary
protected  boolean isPotentialHTMLFile(URLData url)
           
static void prepareRequestMethod(URLData url, org.apache.commons.httpclient.HttpMethod requestMethod, boolean redirect)
           
protected  void processContentLocation(URLData url)
           
protected  void processRedirect(URLData urlWithRedirect)
           
 void run()
           
protected  void setHTTPStateInformation(URLInfo url)
           
 
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 ThreadEventManager m_broker

m_httpState

protected org.apache.commons.httpclient.HttpState m_httpState
Constructor Detail

FileGetter

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

run

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

prepareRequestMethod

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

setHTTPStateInformation

protected void setHTTPStateInformation(URLInfo url)

isPotentialHTMLFile

protected boolean isPotentialHTMLFile(URLData url)

processRedirect

protected void processRedirect(URLData urlWithRedirect)

processContentLocation

protected void processContentLocation(URLData url)