public class PropertyHandlerMapping extends AbstractReflectiveHandlerMapping
AbstractReflectiveHandlerMapping.AuthenticationHandler
handlerMap
Constructor and Description |
---|
PropertyHandlerMapping() |
Modifier and Type | Method and Description |
---|---|
void |
addHandler(java.lang.String pKey,
java.lang.Class pClass)
Adds handlers for the given object to the mapping.
|
void |
load(java.lang.ClassLoader pClassLoader,
java.lang.String pResource)
Reads handler definitions from a resource file.
|
void |
load(java.lang.ClassLoader pClassLoader,
java.net.URL pURL)
Reads handler definitions from a property file.
|
protected java.lang.Class |
newHandlerClass(java.lang.ClassLoader pClassLoader,
java.lang.String pClassName) |
void |
removeHandler(java.lang.String pKey)
Removes all handlers with the given class key.
|
getAuthenticationHandler, getHandler, getListMethods, getMethodHelp, getMethodHelp, getMethodSignature, getRequestProcessorFactoryFactory, getSignature, getTypeConverterFactory, newXmlRpcHandler, registerPublicMethods, setAuthenticationHandler, setRequestProcessorFactoryFactory, setTypeConverterFactory
public void load(java.lang.ClassLoader pClassLoader, java.lang.String pResource) throws java.io.IOException, XmlRpcException
pResource
- The resource being used, for example
"org/apache/xmlrpc/webserver/XmlRpcServlet.properties"java.io.IOException
- Loading the property file failed.XmlRpcException
- Initializing the handlers failed.public void load(java.lang.ClassLoader pClassLoader, java.net.URL pURL) throws java.io.IOException, XmlRpcException
pURL
- The URL from which to load the property filejava.io.IOException
- Loading the property file failed.XmlRpcException
- Initializing the handlers failed.protected java.lang.Class newHandlerClass(java.lang.ClassLoader pClassLoader, java.lang.String pClassName) throws XmlRpcException
XmlRpcException
public void addHandler(java.lang.String pKey, java.lang.Class pClass) throws XmlRpcException
AbstractReflectiveHandlerMapping.registerPublicMethods(String, Class)
.pKey
- The class key, which is passed
to AbstractReflectiveHandlerMapping.registerPublicMethods(String, Class)
.pClass
- Class, which is responsible for handling the request.XmlRpcException
public void removeHandler(java.lang.String pKey)