|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.droids.dynamic.DroidsConfig
public class DroidsConfig
Core configuration mainly holding the different factories we are using.
| Constructor Summary | |
|---|---|
DroidsConfig()
|
|
| Method Summary | |
|---|---|
Droid |
getDroid(java.lang.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(java.lang.String name)
Start a given Droid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DroidsConfig()
| Method Detail |
|---|
public void setDroids(DroidFactory droids)
droids - DroidFactorypublic Droid getDroid(java.lang.String name)
name - the name of the droid we want to use
DroidFactorypublic ProtocolFactory getProtocolFactory()
ProtocolFactorypublic void setProtocolFactory(ProtocolFactory protocolFactory)
protocolFactory - pre-configured protocolFactoryProtocolFactory
public void start(java.lang.String name)
throws DroidsException
name - the name of the droid we want to use
DroidsExceptionpublic ParserFactory getParserFactory()
ParserFactorypublic void setParserFactory(ParserFactory parserFactory)
parserFactory - pre-configured parserFactoryParserFactorypublic URLFiltersFactory getFiltersFactory()
URLFiltersFactorypublic void setFiltersFactory(URLFiltersFactory filtersFactory)
filtersFactory - filtersFactory that knows all registered
filters.URLFiltersFactorypublic HandlerFactory getHandlerFactory()
HandlerFactorypublic 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 | ||||||||