org.apache.xmlrpc.server
Class RequestProcessorFactoryFactory.RequestSpecificProcessorFactoryFactory
java.lang.Object
org.apache.xmlrpc.server.RequestProcessorFactoryFactory.RequestSpecificProcessorFactoryFactory
- All Implemented Interfaces:
- RequestProcessorFactoryFactory
- Enclosing interface:
- RequestProcessorFactoryFactory
public static class RequestProcessorFactoryFactory.RequestSpecificProcessorFactoryFactory
- extends Object
- implements RequestProcessorFactoryFactory
This is the default implementation of RequestProcessorFactoryFactory
.
A new instance is created and initialized for any request. The instance may
be configured by overwriting getRequestProcessor(Class, XmlRpcRequest)
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestProcessorFactoryFactory.RequestSpecificProcessorFactoryFactory
public RequestProcessorFactoryFactory.RequestSpecificProcessorFactoryFactory()
getRequestProcessor
protected Object getRequestProcessor(Class pClass,
XmlRpcRequest pRequest)
throws XmlRpcException
- Subclasses may override this method for request specific configuration.
A typical subclass will look like this:
public class MyRequestProcessorFactoryFactory
extends RequestProcessorFactoryFactory {
protected Object getRequestProcessor(Class pClass, XmlRpcRequest pRequest) {
Object result = super.getRequestProcessor(pClass, pRequest);
// Configure the object here
...
return result;
}
}
- Parameters:
pRequest
- The request object.
- Throws:
XmlRpcException
getRequestProcessorFactory
public RequestProcessorFactoryFactory.RequestProcessorFactory getRequestProcessorFactory(Class pClass)
throws XmlRpcException
- Description copied from interface:
RequestProcessorFactoryFactory
- This method is invoked at startup. It creates a factory for instances of
pClass
.
- Specified by:
getRequestProcessorFactory
in interface RequestProcessorFactoryFactory
- Throws:
XmlRpcException
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.