|
|||||||||
| 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(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(String address)
Add an IP address to the list of denied clients. |
Object |
executeRpc(URL url,
String methodName,
Vector params)
Client's interface to XML-RPC. |
void |
initialize()
|
void |
messageReceived(String message)
Message received. |
void |
registerHandler(Object handler)
Register an Object as a default handler for the service. |
void |
registerHandler(String handlerName,
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(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.Contextualizableorg.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.Initializableorg.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.Startableorg.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.Startableorg.codehaus.plexus.personality.plexus.lifecycle.phase.StoppingException
public void registerHandler(Object handler)
throws org.apache.xmlrpc.XmlRpcException,
IOException
registerHandler in interface XmlRpcComponenthandler - The handler to use.
org.apache.xmlrpc.XmlRpcException
IOException
public void registerHandler(String handlerName,
Object handler)
throws org.apache.xmlrpc.XmlRpcException,
IOException
registerHandler in interface XmlRpcComponenthandlerName - The name the handler is registered under.handler - The handler to use.
org.apache.xmlrpc.XmlRpcException - If an XmlRpcException occurs.
IOException - If an IOException occurs.
public void unregisterHandler(String handlerName)
throws org.apache.xmlrpc.XmlRpcException
unregisterHandler in interface XmlRpcComponenthandlerName - The name of the handler to unregister.
org.apache.xmlrpc.XmlRpcException
public Object executeRpc(URL url,
String methodName,
Vector params)
throws Exception
executeRpc in interface XmlRpcComponenturl - A URL.methodName - A String with the method name.params - A Vector with the parameters.
org.apache.xmlrpc.XmlRpcException
IOException
Exceptionpublic void setParanoid(boolean state)
setParanoid in interface XmlRpcComponentstate - Whether to filter clients.acceptClient(java.lang.String),
denyClient(java.lang.String)public void acceptClient(String address)
acceptClient in interface XmlRpcComponentaddress - The address to add to the list.denyClient(java.lang.String),
setParanoid(boolean)public void denyClient(String address)
denyClient in interface XmlRpcComponentaddress - The address to add to the list.acceptClient(java.lang.String),
setParanoid(boolean)public void addMessageListener(XmlRpcMessageListener listener)
addMessageListener in interface XmlRpcComponentpublic void messageReceived(String message)
messageReceived in interface XmlRpcComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||