Package org.apache.xmlrpc.client
Class XmlRpcLocalTransportFactory
- java.lang.Object
-
- org.apache.xmlrpc.client.XmlRpcTransportFactoryImpl
-
- org.apache.xmlrpc.client.XmlRpcLocalTransportFactory
-
- All Implemented Interfaces:
XmlRpcTransportFactory
public class XmlRpcLocalTransportFactory extends XmlRpcTransportFactoryImpl
A transport factory being used for local XML-RPC calls. Local XML-RPC calls are mainly useful for development and unit testing: Both client and server are runing within the same JVM and communication is implemented in simple method invokcations.
This class is thread safe and the returned instance of
XmlRpcTransport
will always return the same object, an instance ofXmlRpcLocalTransport
-
-
Field Summary
Fields Modifier and Type Field Description private XmlRpcTransport
LOCAL_TRANSPORT
-
Constructor Summary
Constructors Constructor Description XmlRpcLocalTransportFactory(XmlRpcClient pClient)
Creates a new instance, operated by the given client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlRpcTransport
getTransport()
Returns an instance ofXmlRpcTransport
.-
Methods inherited from class org.apache.xmlrpc.client.XmlRpcTransportFactoryImpl
getClient
-
-
-
-
Field Detail
-
LOCAL_TRANSPORT
private final XmlRpcTransport LOCAL_TRANSPORT
-
-
Constructor Detail
-
XmlRpcLocalTransportFactory
public XmlRpcLocalTransportFactory(XmlRpcClient pClient)
Creates a new instance, operated by the given client.- Parameters:
pClient
- The client, which will invoke the factory.
-
-
Method Detail
-
getTransport
public XmlRpcTransport getTransport()
Description copied from interface:XmlRpcTransportFactory
Returns an instance ofXmlRpcTransport
. This may be a singleton, but the caller should not depend on that: A new instance may as well be created for any request.- Returns:
- The configured transport.
-
-