|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.oreilly.xml.XmlRpcConfiguration
XmlRpcConfiguration
is a utility class
that will load configuration information for XML-RPC servers
and clients to use.
Constructor Summary | |
XmlRpcConfiguration(java.io.InputStream in)
This will set a filename to read configuration information from. |
|
XmlRpcConfiguration(java.lang.String filename)
This will set a filename to read configuration information from. |
Method Summary | |
java.lang.String |
getDriverClass()
This returns the SAX driver class to load. |
java.util.Hashtable |
getHandlers()
This returns the handlers the server should register. |
java.lang.String |
getHostname()
This returns the hostname the server listens on. |
int |
getPortNumber()
This returns the port number the server listens on. |
void |
saveConfiguration(java.io.OutputStream out)
This will save the current state out to the specified OutputStream . |
void |
saveConfiguration(java.lang.String filename)
This will save the current state out to the XML-RPC configuration file. |
void |
setDriverClass(java.lang.String driverClass)
This will set the driver class for parsing. |
void |
setHandlers(java.util.Hashtable handlers)
This will set the handlers to register. |
void |
setHostname(java.lang.String hostname)
This will set the hostname for the server to listen to. |
void |
setPortNumber(int portNumber)
This will set the port number to listen to. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public XmlRpcConfiguration(java.lang.String filename) throws java.io.IOException
This will set a filename to read configuration information from.
filename
- String
name of
XML configuration file.public XmlRpcConfiguration(java.io.InputStream in) throws java.io.IOException
This will set a filename to read configuration information from.
in
- InputStream
to read
configuration information from.Method Detail |
public int getPortNumber()
This returns the port number the server listens on.
int
number of server port.public void setPortNumber(int portNumber)
This will set the port number to listen to.
portNumber
- int
port to listen to.public java.lang.String getHostname()
This returns the hostname the server listens on.
String
hostname of server.public void setHostname(java.lang.String hostname)
This will set the hostname for the server to listen to.
hostname
- String
name of server's host.public java.lang.String getDriverClass()
This returns the SAX driver class to load.
String
- name of SAX driver class.public void setDriverClass(java.lang.String driverClass)
This will set the driver class for parsing.
driverClass
- String
name of parser class.public java.util.Hashtable getHandlers()
This returns the handlers the server should register.
Hashtable
of handlers.public void setHandlers(java.util.Hashtable handlers)
This will set the handlers to register.
handlers
- Hashtable
of handler to register.public void saveConfiguration(java.lang.String filename) throws java.io.IOException
This will save the current state out to the XML-RPC configuration file.
IOException
- - when errors occur in saving.public void saveConfiguration(java.io.OutputStream out) throws java.io.IOException
This will save the current state out to the specified
OutputStream
.
IOException
- - when errors occur in saving.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |