|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlrpc.server.PropertyHandlerMapping
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.
The following constrains apply to the classes:
Constructor Summary | |
---|---|
PropertyHandlerMapping(java.lang.ClassLoader pClassLoader,
java.io.File pFile)
Creates a new instance, loading the given property file. |
|
PropertyHandlerMapping(java.lang.ClassLoader pClassLoader,
java.lang.String pResource)
Creates a new instance, loading the properties from the given resource. |
|
PropertyHandlerMapping(java.lang.ClassLoader pClassLoader,
java.net.URL pURL)
Creates a new instance, loading the property file from the given URL. |
Method Summary | |
---|---|
XmlRpcHandler |
getHandler(java.lang.String handlerName)
Return the handler for the specified handler name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyHandlerMapping(java.lang.ClassLoader pClassLoader, java.net.URL pURL) throws java.io.IOException, XmlRpcException
pClassLoader
- Classloader being used to load the classes.pURL
- The URL, from which the property file is being
loaded.
java.io.IOException
- Loading the property file failed.
XmlRpcException
- Initializing the handlers failed.public PropertyHandlerMapping(java.lang.ClassLoader pClassLoader, java.io.File pFile) throws java.io.IOException, XmlRpcException
pClassLoader
- Classloader being used to load the classes.pFile
- File being loaded.
java.io.IOException
- Loading the property file failed.
XmlRpcException
- Initializing the handlers failed.public PropertyHandlerMapping(java.lang.ClassLoader pClassLoader, java.lang.String pResource) throws java.io.IOException, XmlRpcException
pClassLoader
- Classloader being used to locate
the resource.pResource
- Resource being loaded.
java.io.IOException
- Loading the property file failed.
XmlRpcException
- Initializing the handlers failed.Method Detail |
---|
public XmlRpcHandler getHandler(java.lang.String handlerName) throws XmlRpcNoSuchHandlerException, XmlRpcException
XmlRpcHandlerMapping
getHandler
in interface XmlRpcHandlerMapping
handlerName
- The name of the handler to retrieve.
XmlRpcNoSuchHandlerException
- The handler is not available.
XmlRpcException
- An internal error occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |