| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.xmlrpc.server.AbstractReflectiveHandlerMappingpublic abstract class AbstractReflectiveHandlerMappingextends java.lang.Objectimplements XmlRpcListableHandlerMappingNested Class Summary | |
static interface |
|
Field Summary | |
protected Map | |
Method Summary | |
AbstractReflectiveHandlerMapping.AuthenticationHandler |
|
XmlRpcHandler |
|
String[] | |
protected String |
|
String |
|
String[][] |
|
RequestProcessorFactoryFactory |
|
protected String[][] |
|
TypeConverterFactory |
|
protected boolean |
|
boolean |
|
protected XmlRpcHandler |
|
protected void |
|
void |
|
void |
|
void |
|
void |
|
public AbstractReflectiveHandlerMapping.AuthenticationHandler getAuthenticationHandler()
Returns the authentication handler, if any, or null.
public XmlRpcHandler getHandler(String pHandlerName) throws XmlRpcNoSuchHandlerException, XmlRpcException
Returns theXmlRpcHandlerwith the given name.
- Specified by:
- getHandler in interface XmlRpcHandlerMapping
- Parameters:
pHandlerName- The handlers name
- Throws:
XmlRpcNoSuchHandlerException- A handler with the given name is unknown.
public String[] getListMethods()
throws XmlRpcException
- Specified by:
- getListMethods in interface XmlRpcListableHandlerMapping
protected String getMethodHelp(Class pClass,
Method[] pMethods)Creates a help string for the given method, when applied to the given class.
public String getMethodHelp(String pHandlerName)
throws XmlRpcException
- Specified by:
- getMethodHelp in interface XmlRpcListableHandlerMapping
public String[][] getMethodSignature(String pHandlerName)
throws XmlRpcException
- Specified by:
- getMethodSignature in interface XmlRpcListableHandlerMapping
public RequestProcessorFactoryFactory getRequestProcessorFactoryFactory()
Returns the mappingsRequestProcessorFactoryFactory.
protected String[][] getSignature(Method[] pMethods)
Creates a signature for the given method.
public TypeConverterFactory getTypeConverterFactory()
Returns the mappingsTypeConverterFactory.
protected boolean isHandlerMethod(Method pMethod)
public boolean isVoidMethodEnabled()
Returns, whether void methods are enabled. By default, null values aren't supported by XML-RPC and void methods are in fact returning null (at least from the perspective of reflection).
protected XmlRpcHandler newXmlRpcHandler(Class pClass, Method[] pMethods) throws XmlRpcException
Creates a new instance ofXmlRpcHandler.
- Parameters:
pClass- The class, which was inspected for handler methods. This is used for error messages only. Typically, it is the same thanpInstance.getClass().pMethods- The method being invoked.
protected void registerPublicMethods(String pKey,
Class pType)
throws XmlRpcExceptionSearches for methods in the given class. For any valid method, it creates an instance ofXmlRpcHandler. Valid methods are defined as follows:
- They must be public.
- They must not be static.
- The return type must not be void.
- The declaring class must not be
java.lang.Object.- If multiple methods with the same name exist, which meet the above conditins, then only the first method is valid.
- Parameters:
pKey- Suffix for building handler names. A dot and the method name are being added.pType- The class being inspected.
public void setAuthenticationHandler(AbstractReflectiveHandlerMapping.AuthenticationHandler pAuthenticationHandler)
Sets the authentication handler, if any, or null.
public void setRequestProcessorFactoryFactory(RequestProcessorFactoryFactory pFactory)
Sets the mappingsRequestProcessorFactoryFactory. Note, that this doesn't affect already registered handlers.
public void setTypeConverterFactory(TypeConverterFactory pFactory)
Sets the mappingsTypeConverterFactory.
public void setVoidMethodEnabled(boolean pVoidMethodEnabled)
Sets, whether void methods are enabled. By default, null values aren't supported by XML-RPC and void methods are in fact returning null (at least from the perspective of reflection).