public class PropertyHandlerMapping extends AbstractReflectiveHandlerMapping
AbstractReflectiveHandlerMapping.AuthenticationHandler
handlerMap
Constructor and Description |
---|
PropertyHandlerMapping() |
Modifier and Type | Method and Description |
---|---|
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
public void load(ClassLoader pClassLoader, String pResource) throws IOException, XmlRpcException
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.public void load(ClassLoader pClassLoader, URL pURL) throws IOException, XmlRpcException
pClassLoader
- The class loader being used to load
handler classes.pURL
- The URL from which to load the property fileIOException
- Loading the property file failed.XmlRpcException
- Initializing the handlers failed.public void load(ClassLoader pClassLoader, Map pMap) throws XmlRpcException
pClassLoader
- The class loader being used to load
handler classes.pMap
- The existing Map to read fromXmlRpcException
- Initializing the handlers failed.protected Class newHandlerClass(ClassLoader pClassLoader, String pClassName) throws XmlRpcException
XmlRpcException
public void addHandler(String pKey, 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(String pKey)
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.