|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.xmlrpc.DefaultXmlRpcComponent
public class DefaultXmlRpcComponent
Field Summary |
---|
Fields inherited from interface org.codehaus.plexus.xmlrpc.XmlRpcComponent |
---|
ROLE |
Constructor Summary | |
---|---|
DefaultXmlRpcComponent()
|
Method Summary | |
---|---|
void |
acceptClient(java.lang.String address)
Add an IP address to the list of accepted clients. |
void |
addMessageListener(XmlRpcMessageListener listener)
Add message listener. |
void |
contextualize(org.codehaus.plexus.context.Context context)
|
void |
denyClient(java.lang.String address)
Add an IP address to the list of denied clients. |
java.lang.Object |
executeRpc(java.net.URL url,
java.lang.String methodName,
java.util.Vector params)
Client's interface to XML-RPC. |
void |
initialize()
|
void |
messageReceived(java.lang.String message)
Message received. |
void |
registerHandler(java.lang.Object handler)
Register an Object as a default handler for the service. |
void |
registerHandler(java.lang.String handlerName,
java.lang.Object handler)
Register an Object as a handler for the service. |
void |
setParanoid(boolean state)
Switch client filtering on/off. |
void |
start()
|
void |
stop()
|
void |
unregisterHandler(java.lang.String handlerName)
Unregister a handler. |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultXmlRpcComponent()
Method Detail |
---|
public void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
org.codehaus.plexus.context.ContextException
public void initialize() throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
initialize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
public void start() throws org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException
start
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable
org.codehaus.plexus.personality.plexus.lifecycle.phase.StartingException
public void stop() throws org.codehaus.plexus.personality.plexus.lifecycle.phase.StoppingException
stop
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable
org.codehaus.plexus.personality.plexus.lifecycle.phase.StoppingException
public void registerHandler(java.lang.Object handler) throws org.apache.xmlrpc.XmlRpcException, java.io.IOException
registerHandler
in interface XmlRpcComponent
handler
- The handler to use.
org.apache.xmlrpc.XmlRpcException
java.io.IOException
public void registerHandler(java.lang.String handlerName, java.lang.Object handler) throws org.apache.xmlrpc.XmlRpcException, java.io.IOException
registerHandler
in interface XmlRpcComponent
handlerName
- The name the handler is registered under.handler
- The handler to use.
org.apache.xmlrpc.XmlRpcException
- If an XmlRpcException occurs.
java.io.IOException
- If an IOException occurs.public void unregisterHandler(java.lang.String handlerName) throws org.apache.xmlrpc.XmlRpcException
unregisterHandler
in interface XmlRpcComponent
handlerName
- The name of the handler to unregister.
org.apache.xmlrpc.XmlRpcException
public java.lang.Object executeRpc(java.net.URL url, java.lang.String methodName, java.util.Vector params) throws java.lang.Exception
executeRpc
in interface XmlRpcComponent
url
- A URL.methodName
- A String with the method name.params
- A Vector with the parameters.
org.apache.xmlrpc.XmlRpcException
java.io.IOException
java.lang.Exception
public void setParanoid(boolean state)
setParanoid
in interface XmlRpcComponent
state
- Whether to filter clients.acceptClient(java.lang.String)
,
denyClient(java.lang.String)
public void acceptClient(java.lang.String address)
acceptClient
in interface XmlRpcComponent
address
- The address to add to the list.denyClient(java.lang.String)
,
setParanoid(boolean)
public void denyClient(java.lang.String address)
denyClient
in interface XmlRpcComponent
address
- The address to add to the list.acceptClient(java.lang.String)
,
setParanoid(boolean)
public void addMessageListener(XmlRpcMessageListener listener)
addMessageListener
in interface XmlRpcComponent
public void messageReceived(java.lang.String message)
messageReceived
in interface XmlRpcComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |