public class PropertyHandlerMapping extends AbstractReflectiveHandlerMapping
AbstractReflectiveHandlerMapping.AuthenticationHandlerhandlerMap| 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.util.Map pMap)
Reads handler definitions from an existing Map.
|
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, isHandlerMethod, isVoidMethodEnabled, newXmlRpcHandler, registerPublicMethods, setAuthenticationHandler, setRequestProcessorFactoryFactory, setTypeConverterFactory, setVoidMethodEnabledpublic void load(java.lang.ClassLoader pClassLoader,
java.lang.String pResource)
throws java.io.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"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
pClassLoader - The class loader being used to load
handler classes.pURL - The URL from which to load the property filejava.io.IOException - Loading the property file failed.XmlRpcException - Initializing the handlers failed.public void load(java.lang.ClassLoader pClassLoader,
java.util.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 java.lang.Class newHandlerClass(java.lang.ClassLoader pClassLoader,
java.lang.String pClassName)
throws XmlRpcException
XmlRpcExceptionpublic 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.XmlRpcExceptionpublic void removeHandler(java.lang.String pKey)
Copyright © 2001–2017. All rights reserved.