Public Member Functions | |
void | addHandler (String pKey, Class pClass) throws XmlRpcException |
void | load (ClassLoader pClassLoader, String pResource) throws IOException, XmlRpcException |
void | load (ClassLoader pClassLoader, URL pURL) throws IOException, XmlRpcException |
void | load (ClassLoader pClassLoader, Map pMap) throws XmlRpcException |
void | removeHandler (String pKey) |
Protected Member Functions | |
Class | newHandlerClass (ClassLoader pClassLoader, String pClassName) throws XmlRpcException |
A handler mapping based on a property file. The property file contains a set of properties. The property key is taken as the handler name. The property value is taken as the name of a class being instantiated. For any non-void, non-static, and public method in the class, an entry in the handler map is generated. A typical use would be, to specify interface names as the property keys and implementations as the values.
Definition at line 39 of file PropertyHandlerMapping.java.
void org.apache.xmlrpc.server.PropertyHandlerMapping.addHandler | ( | String | pKey, |
Class | pClass | ||
) | throws XmlRpcException [inline] |
Adds handlers for the given object to the mapping. The handlers are build by invoking registerPublicMethods(String, Class).
pKey | The class key, which is passed to registerPublicMethods(String, Class). |
pClass | Class, which is responsible for handling the request. |
Definition at line 110 of file PropertyHandlerMapping.java.
void org.apache.xmlrpc.server.PropertyHandlerMapping.load | ( | ClassLoader | pClassLoader, |
String | pResource | ||
) | throws IOException, XmlRpcException [inline] |
Reads handler definitions from a resource file.
pClassLoader | The class loader being used to load handler classes. |
pResource | The resource being used, for example "org/apache/xmlrpc/webserver/XmlRpcServlet.properties" |
IOException | Loading the property file failed. |
XmlRpcException | Initializing the handlers failed. |
Definition at line 49 of file PropertyHandlerMapping.java.
void org.apache.xmlrpc.server.PropertyHandlerMapping.load | ( | ClassLoader | pClassLoader, |
URL | pURL | ||
) | throws IOException, XmlRpcException [inline] |
Reads handler definitions from a property file.
pClassLoader | The class loader being used to load handler classes. |
pURL | The URL from which to load the property file |
IOException | Loading the property file failed. |
XmlRpcException | Initializing the handlers failed. |
Definition at line 66 of file PropertyHandlerMapping.java.
void org.apache.xmlrpc.server.PropertyHandlerMapping.load | ( | ClassLoader | pClassLoader, |
Map | pMap | ||
) | throws XmlRpcException [inline] |
Reads handler definitions from an existing Map.
pClassLoader | The class loader being used to load handler classes. |
pMap | The existing Map to read from |
XmlRpcException | Initializing the handlers failed. |
Definition at line 79 of file PropertyHandlerMapping.java.
Class org.apache.xmlrpc.server.PropertyHandlerMapping.newHandlerClass | ( | ClassLoader | pClassLoader, |
String | pClassName | ||
) | throws XmlRpcException [inline, protected] |
Definition at line 89 of file PropertyHandlerMapping.java.
void org.apache.xmlrpc.server.PropertyHandlerMapping.removeHandler | ( | String | pKey | ) | [inline] |
Removes all handlers with the given class key.
Definition at line 116 of file PropertyHandlerMapping.java.