|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jondo.demo.SimpleConfiguration
public class SimpleConfiguration
Constructor Summary | |
---|---|
SimpleConfiguration()
|
|
SimpleConfiguration(java.net.InetAddress a_host,
int a_port)
|
|
SimpleConfiguration(java.lang.String a_host,
int a_port)
|
Method Summary | |
---|---|
java.lang.String |
getApplicationName()
|
ICachingDatabase |
getDatabaseInterface()
Optional: a database interface for caching the database entries. |
IAntiCensorshipForwarding |
getForwardingSettings()
|
java.net.InetAddress |
getListenHost()
Returns the listener host name or null if the application should listen on all host names. |
int |
getListenPort()
Returns a valid listen port. |
AbstractPasswordReader |
getPasswordReader()
|
SimpleProxyInterface |
getProxyInterface()
Returns a proxy interface or null if no proxy is used. |
org.w3c.dom.Element |
read()
Returns the configuration content as String. |
void |
write(org.w3c.dom.Element a_doc)
Writes the configuration. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleConfiguration() throws java.net.UnknownHostException
java.net.UnknownHostException
public SimpleConfiguration(java.lang.String a_host, int a_port) throws java.net.UnknownHostException
java.net.UnknownHostException
public SimpleConfiguration(java.net.InetAddress a_host, int a_port)
Method Detail |
---|
public org.w3c.dom.Element read() throws java.lang.Exception
IConfiguration
read
in interface IConfiguration
java.lang.Exception
- if an error occurs while reading the configuration to a Stringpublic void write(org.w3c.dom.Element a_doc) throws java.lang.Exception
IConfiguration
write
in interface IConfiguration
java.lang.Exception
public ICachingDatabase getDatabaseInterface()
IConfiguration
getDatabaseInterface
in interface IConfiguration
public int getListenPort()
IConfiguration
getListenPort
in interface IConfiguration
public java.net.InetAddress getListenHost()
IConfiguration
getListenHost
in interface IConfiguration
public AbstractPasswordReader getPasswordReader()
getPasswordReader
in interface IConfiguration
public SimpleProxyInterface getProxyInterface()
IConfiguration
getProxyInterface
in interface IConfiguration
public java.lang.String getApplicationName()
getApplicationName
in interface IConfiguration
public IAntiCensorshipForwarding getForwardingSettings()
getForwardingSettings
in interface IConfiguration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |