|
||||||||||
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
Field Summary | |
private java.util.List |
acceptedClients
Accepted Clients. |
private org.codehaus.plexus.PlexusContainer |
container
|
private java.util.List |
deniedClients
Denied Clients. |
private java.util.List |
handlers
Handlers. |
private boolean |
isInitialized
|
private boolean |
isSecureServer
Secure server state. |
private java.util.List |
listeners
Message Listeners. |
private boolean |
paranoid
Paranoid state. |
private int |
port
The port to listen on. |
private java.lang.String |
saxParserClass
SAX Parser class. |
private java.util.Properties |
systemProperties
A set of properties to configure SSL and JSSE |
private XmlRpcServer |
xmlRpcServer
The standalone xmlrpc server. |
Fields inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
|
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. |
private java.lang.String |
getClient(java.util.List list,
int index)
|
void |
initialize()
|
void |
messageReceived(java.lang.String message)
Message received. |
private void |
registerComponentHandler(java.lang.String handlerName,
java.lang.String handlerRole)
Helper that registers a component as a handler with the specified handler name. |
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. |
private void |
registerStartupHandlers()
Registers any handlers that were defined as part this component's configuration. |
void |
setParanoid(boolean state)
Switch client filtering on/off. |
private void |
setSystemPropertiesFromConfiguration()
Create System properties using the key-value pairs in a given Configuration. |
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 |
Field Detail |
private org.codehaus.plexus.PlexusContainer container
private int port
private boolean isSecureServer
private java.lang.String saxParserClass
private boolean paranoid
private java.util.List handlers
private java.util.List acceptedClients
private java.util.List deniedClients
private java.util.Properties systemProperties
private java.util.List listeners
private boolean isInitialized
private XmlRpcServer xmlRpcServer
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
private void registerStartupHandlers() throws java.lang.Exception
java.lang.Exception
- If there were errors registering a handler.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.private void registerComponentHandler(java.lang.String handlerName, java.lang.String handlerRole) throws java.lang.Exception
handlerName
- The name to register this handle as.handlerRole
- The role of the component serving as the handler.
java.lang.Exception
- If the component could not be looked up.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
private void setSystemPropertiesFromConfiguration()
private java.lang.String getClient(java.util.List list, int index) throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |