org.apache.xmlrpc.server
Class PropertyHandlerMapping
- XmlRpcHandlerMapping, XmlRpcListableHandlerMapping
public class PropertyHandlerMapping
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.
void | addHandler(String pKey, Class pClass) - Adds handlers for the given object to the mapping.
|
void | load(ClassLoader pClassLoader, Map pMap) - Reads handler definitions from an existing Map.
|
void | load(ClassLoader pClassLoader, String pResource) - Reads handler definitions from a resource file.
|
void | load(ClassLoader pClassLoader, URL pURL) - Reads handler definitions from a property file.
|
protected Class | newHandlerClass(ClassLoader pClassLoader, String pClassName)
|
void | removeHandler(String pKey) - Removes all handlers with the given class key.
|
getAuthenticationHandler , getHandler , getListMethods , getMethodHelp , getMethodHelp , getMethodSignature , getRequestProcessorFactoryFactory , getSignature , getTypeConverterFactory , isHandlerMethod , isVoidMethodEnabled , newXmlRpcHandler , registerPublicMethods , setAuthenticationHandler , setRequestProcessorFactoryFactory , setTypeConverterFactory , setVoidMethodEnabled |
addHandler
public void addHandler(String pKey,
Class pClass)
throws XmlRpcException
load
public void load(ClassLoader pClassLoader,
Map pMap)
throws XmlRpcException
Reads handler definitions from an existing Map.
pClassLoader
- The class loader being used to load
handler classes.pMap
- The existing Map to read from
load
public void load(ClassLoader pClassLoader,
String pResource)
throws IOException,
XmlRpcException
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"
load
public void load(ClassLoader pClassLoader,
URL pURL)
throws IOException,
XmlRpcException
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
newHandlerClass
protected Class newHandlerClass(ClassLoader pClassLoader,
String pClassName)
throws XmlRpcException
removeHandler
public void removeHandler(String pKey)
Removes all handlers with the given class key.
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.