Public Member Functions | Protected Member Functions
org.apache.xmlrpc.server.PropertyHandlerMapping Class Reference
Inheritance diagram for org.apache.xmlrpc.server.PropertyHandlerMapping:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addHandler (String pKey, Class pClass) throws XmlRpcException
void load (ClassLoader pClassLoader, String pResource) throws IOException, XmlRpcException
void load (ClassLoader pClassLoader, URL pURL) throws IOException, XmlRpcException
void load (ClassLoader pClassLoader, Map pMap) throws XmlRpcException
void removeHandler (String pKey)

Protected Member Functions

Class newHandlerClass (ClassLoader pClassLoader, String pClassName) throws XmlRpcException

Detailed Description

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.

Definition at line 39 of file PropertyHandlerMapping.java.


Member Function Documentation

void org.apache.xmlrpc.server.PropertyHandlerMapping.addHandler ( String  pKey,
Class  pClass 
) throws XmlRpcException [inline]

Adds handlers for the given object to the mapping. The handlers are build by invoking registerPublicMethods(String, Class).

Parameters:
pKeyThe class key, which is passed to registerPublicMethods(String, Class).
pClassClass, which is responsible for handling the request.

Definition at line 110 of file PropertyHandlerMapping.java.

void org.apache.xmlrpc.server.PropertyHandlerMapping.load ( ClassLoader  pClassLoader,
String  pResource 
) throws IOException, XmlRpcException [inline]

Reads handler definitions from a resource file.

Parameters:
pClassLoaderThe class loader being used to load handler classes.
pResourceThe resource being used, for example "org/apache/xmlrpc/webserver/XmlRpcServlet.properties"
Exceptions:
IOExceptionLoading the property file failed.
XmlRpcExceptionInitializing the handlers failed.

Definition at line 49 of file PropertyHandlerMapping.java.

void org.apache.xmlrpc.server.PropertyHandlerMapping.load ( ClassLoader  pClassLoader,
URL  pURL 
) throws IOException, XmlRpcException [inline]

Reads handler definitions from a property file.

Parameters:
pClassLoaderThe class loader being used to load handler classes.
pURLThe URL from which to load the property file
Exceptions:
IOExceptionLoading the property file failed.
XmlRpcExceptionInitializing the handlers failed.

Definition at line 66 of file PropertyHandlerMapping.java.

void org.apache.xmlrpc.server.PropertyHandlerMapping.load ( ClassLoader  pClassLoader,
Map  pMap 
) throws XmlRpcException [inline]

Reads handler definitions from an existing Map.

Parameters:
pClassLoaderThe class loader being used to load handler classes.
pMapThe existing Map to read from
Exceptions:
XmlRpcExceptionInitializing the handlers failed.

Definition at line 79 of file PropertyHandlerMapping.java.

Class org.apache.xmlrpc.server.PropertyHandlerMapping.newHandlerClass ( ClassLoader  pClassLoader,
String  pClassName 
) throws XmlRpcException [inline, protected]

Definition at line 89 of file PropertyHandlerMapping.java.

Removes all handlers with the given class key.

Definition at line 116 of file PropertyHandlerMapping.java.


The documentation for this class was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:50