|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.erowid.sperowider.SperowiderContext
This class holds references to all of the high level "global" objects used in Sperowider. The following methods must be called with valid components before this class can be used :
setSperowiderModel(ISperowiderModel)
setThrottle(IThrottle)
setURLFilter(ISperowiderFilter)
setFileNameManager(FileNameManager)
setDownloadRoot(String)
Constructor Summary | |
SperowiderContext()
Creates a new SperowiderContext. |
Method Summary | |
void |
addURLToModel(String sourceURL,
URL foundURL)
All requests to add URLs to the queue come through here, so we do the filtering and logging at this point. |
String |
getDownloadRoot()
|
FileNameManager |
getFileNameManager()
|
HandlerPool |
getHandlerPool()
|
int |
getIndexLimit()
Returns the number of characters to be indexed. |
ISperowiderModel |
getSperowiderModel()
|
IThrottle |
getThrottle()
|
ISperowiderFilter |
getURLFilter()
|
boolean |
isCompressIndex()
Returns the compressIndex. |
boolean |
isInitialized()
Returns true if all sets have been called appropriately. |
void |
setCompressIndex(boolean compressIndex)
Sets the compressIndex. |
void |
setDownloadRoot(String downloadRoot)
|
void |
setFileNameManager(FileNameManager fileNameManager)
|
void |
setHandlerPool(HandlerPool handlerPool)
|
void |
setIndexLimit(int indexLimit)
Sets the number of characters to be indexed. |
void |
setSperowiderModel(ISperowiderModel sperowiderModel)
|
void |
setThrottle(IThrottle throttle)
|
void |
setURLFilter(ISperowiderFilter filter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SperowiderContext() throws SperowiderInstantiationException
Method Detail |
public boolean isInitialized()
public ISperowiderModel getSperowiderModel()
public void setSperowiderModel(ISperowiderModel sperowiderModel)
sperowiderModel
- The sperowiderModel to set.public ISperowiderFilter getURLFilter()
public void setURLFilter(ISperowiderFilter filter)
filter
- The uRLFilter to set.public HandlerPool getHandlerPool()
public void setHandlerPool(HandlerPool handlerPool)
handlerPool
- The handlerPool to set.public FileNameManager getFileNameManager()
public void setFileNameManager(FileNameManager fileNameManager)
fileNameManager
- The fileNameManager to set.public IThrottle getThrottle()
public void setThrottle(IThrottle throttle)
throttle
- The throttle to set.public String getDownloadRoot()
public void setDownloadRoot(String downloadRoot)
downloadRoot
- The downloadRoot to set.public void addURLToModel(String sourceURL, URL foundURL)
public int getIndexLimit()
public void setIndexLimit(int indexLimit)
public boolean isCompressIndex()
public void setCompressIndex(boolean compressIndex)
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |