org.codehaus.plexus.xmlrpc
public class DefaultXmlRpcComponent extends AbstractLogEnabled implements Contextualizable, Initializable, Startable, XmlRpcComponent
Version: $Id: DefaultXmlRpcComponent.java 2752 2005-10-24 10:41:24Z evenisse $
UNKNOWN: Handle XmlRpc.setDebug(boolean)
Field Summary | |
---|---|
List | acceptedClients Accepted Clients. |
PlexusContainer | container |
List | deniedClients Denied Clients. |
List | handlers Handlers. |
boolean | isInitialized |
boolean | isSecureServer Secure server state. |
List | listeners Message Listeners. |
boolean | paranoid Paranoid state. |
int | port The port to listen on. |
String | saxParserClass SAX Parser class. |
Properties | systemProperties
A set of properties to configure SSL and JSSE |
XmlRpcServer | xmlRpcServer The standalone xmlrpc server. |
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(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.
|
String | getClient(List list, int index) |
void | initialize() |
void | messageReceived(String message) Message received. |
void | registerComponentHandler(String handlerName, String handlerRole)
Helper that registers a component as a handler with the specified
handler name.
|
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 | registerStartupHandlers()
Registers any handlers that were defined as part this component's
configuration. |
void | setParanoid(boolean state)
Switch client filtering on/off.
|
void | setSystemPropertiesFromConfiguration()
Create System properties using the key-value pairs in a given
Configuration. |
void | start() |
void | stop() |
void | unregisterHandler(String handlerName)
Unregister a handler.
|
Parameters: address The address to add to the list.
See Also: DefaultXmlRpcComponent DefaultXmlRpcComponent
Parameters: address The address to add to the list.
See Also: DefaultXmlRpcComponent DefaultXmlRpcComponent
Parameters: url A URL. methodName A String with the method name. params A Vector with the parameters.
Returns: An Object.
Throws: XmlRpcException IOException
Parameters: handlerName The name to register this handle as. handlerRole The role of the component serving as the handler.
Throws: Exception If the component could not be looked up.
Parameters: handler The handler to use.
Throws: XmlRpcException IOException
Parameters: handlerName The name the handler is registered under. handler The handler to use.
Throws: XmlRpcException If an XmlRpcException occurs. IOException If an IOException occurs.
Throws: Exception If there were errors registering a handler.
Parameters: state Whether to filter clients.
See Also: DefaultXmlRpcComponent DefaultXmlRpcComponent
Parameters: handlerName The name of the handler to unregister.