Package org.apache.xmlrpc.client
Class XmlRpcLocalStreamTransportFactory
- java.lang.Object
-
- org.apache.xmlrpc.client.XmlRpcTransportFactoryImpl
-
- org.apache.xmlrpc.client.XmlRpcStreamTransportFactory
-
- org.apache.xmlrpc.client.XmlRpcLocalStreamTransportFactory
-
- All Implemented Interfaces:
XmlRpcTransportFactory
public class XmlRpcLocalStreamTransportFactory extends XmlRpcStreamTransportFactory
Another local transport factory for debugging and testing. This one is similar to theXmlRpcLocalTransportFactory, except that it adds request serialization. In other words, it is particularly well suited for development and testing of XML serialization and parsing.
-
-
Field Summary
Fields Modifier and Type Field Description private XmlRpcStreamRequestProcessorserver
-
Constructor Summary
Constructors Constructor Description XmlRpcLocalStreamTransportFactory(XmlRpcClient pClient, XmlRpcStreamRequestProcessor pServer)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlRpcTransportgetTransport()Returns an instance ofXmlRpcTransport.-
Methods inherited from class org.apache.xmlrpc.client.XmlRpcTransportFactoryImpl
getClient
-
-
-
-
Field Detail
-
server
private final XmlRpcStreamRequestProcessor server
-
-
Constructor Detail
-
XmlRpcLocalStreamTransportFactory
public XmlRpcLocalStreamTransportFactory(XmlRpcClient pClient, XmlRpcStreamRequestProcessor pServer)
Creates a new instance.- Parameters:
pClient- The client controlling the factory.pServer- An instance ofXmlRpcStreamRequestProcessor.
-
-
Method Detail
-
getTransport
public XmlRpcTransport getTransport()
Description copied from interface:XmlRpcTransportFactoryReturns 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.
-
-