|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.droids.Core
public class Core
Core configuration mainly holding the different factories we are using.
Constructor Summary | |
---|---|
Core()
|
Method Summary | |
---|---|
Droid |
getDroid(String name)
Return the droid we want to use identified by the given name. |
URLFiltersFactory |
getFiltersFactory()
Returns the filtersFactory that knows all registered filters. |
HandlerFactory |
getHandlerFactory()
Returns the handlerFactory that knows all registered handlers. |
ParserFactory |
getParserFactory()
Returns the parserFactory that knows all registered parser. |
ProtocolFactory |
getProtocolFactory()
Returns the protocolFactory that knows all registered protocol. |
void |
setDroids(DroidFactory droids)
Set the droidsFactory we are using. |
void |
setFiltersFactory(URLFiltersFactory filtersFactory)
Set the pre-configured filtersFactory that knows all registered filters. |
void |
setHandlerFactory(HandlerFactory handlerFactory)
Set the pre-configured handlerFactory that knows all registered handlers. |
void |
setParserFactory(ParserFactory parserFactory)
Set the pre-configured parserFactory that knows all registered parser. |
void |
setProtocolFactory(ProtocolFactory protocolFactory)
Set the pre-configured protocolFactory that knows all registered protocol. |
void |
start(String name)
Start a given Droid. |
static void |
threadMessage(String message)
Since we are using for now exclusively the command line, the method should be use to send message to the user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Core()
Method Detail |
---|
public void setDroids(DroidFactory droids)
droids
- DroidFactory
public Droid getDroid(String name)
name
- the name of the droid we want to use
DroidFactory
public ProtocolFactory getProtocolFactory()
ProtocolFactory
public void setProtocolFactory(ProtocolFactory protocolFactory)
protocolFactory
- pre-configured protocolFactoryProtocolFactory
public void start(String name)
name
- the name of the droid we want to usepublic static void threadMessage(String message)
message
- the message you want to sendpublic ParserFactory getParserFactory()
ParserFactory
public void setParserFactory(ParserFactory parserFactory)
parserFactory
- pre-configured parserFactoryParserFactory
public URLFiltersFactory getFiltersFactory()
URLFiltersFactory
public void setFiltersFactory(URLFiltersFactory filtersFactory)
filtersFactory
- filtersFactory that knows all registered
filters.URLFiltersFactory
public HandlerFactory getHandlerFactory()
HandlerFactory
public void setHandlerFactory(HandlerFactory handlerFactory)
handlerFactory
- pre-configured handlerFactory that knows all registered handlers.HandlerFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |