org.robotframework.remoteserver.xmlrpc
Class ReflectiveHandlerMapping

java.lang.Object
  extended by org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping
      extended by org.robotframework.remoteserver.xmlrpc.ReflectiveHandlerMapping
All Implemented Interfaces:
org.apache.xmlrpc.metadata.XmlRpcListableHandlerMapping, org.apache.xmlrpc.server.XmlRpcHandlerMapping

public class ReflectiveHandlerMapping
extends org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping
org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping.AuthenticationHandler
 
Field Summary
 
Fields inherited from class org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping
handlerMap
 
Constructor Summary
ReflectiveHandlerMapping()
           
 
Method Summary
 void addHandler(String pKey, Class<?> pClass)
          Adds handlers for the given object to the mapping.
 void removePrefixes()
          Removes the prefixes from all keys in this handler mapping assuming a String was used as the key and period was used as a separator.
 
Methods inherited from class org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping
getAuthenticationHandler, getHandler, getListMethods, getMethodHelp, getMethodHelp, getMethodSignature, getRequestProcessorFactoryFactory, getSignature, getTypeConverterFactory, isHandlerMethod, isVoidMethodEnabled, newXmlRpcHandler, registerPublicMethods, setAuthenticationHandler, setRequestProcessorFactoryFactory, setTypeConverterFactory, setVoidMethodEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectiveHandlerMapping

public ReflectiveHandlerMapping()
Method Detail

removePrefixes

public void removePrefixes()
Removes the prefixes from all keys in this handler mapping assuming a String was used as the key and period was used as a separator. Example: AccountsReceivable.Billing.getInvoice -> getInvoice


addHandler

public void addHandler(String pKey,
                       Class<?> pClass)
                throws org.apache.xmlrpc.XmlRpcException
Adds handlers for the given object to the mapping. The handlers are build by invoking AbstractReflectiveHandlerMapping.registerPublicMethods(String, Class).

Parameters:
pKey - The class key, which is passed to AbstractReflectiveHandlerMapping.registerPublicMethods(String, Class).
pClass - Class, which is responsible for handling the request.
Throws:
org.apache.xmlrpc.XmlRpcException


Copyright © 2012. All Rights Reserved.