Author: jochen
Date: Thu Sep 7 05:41:35 2006
New Revision: 441076
URL: http://svn.apache.org/viewvc?view=rev&rev=441076
Log:
Fixed an apt format bug.
Modified:
webservices/xmlrpc/branches/XMLRPC_3_0_BRANCH/src/site/apt/advanced.apt
webservices/xmlrpc/trunk/src/site/apt/advanced.apt
Modified:
webservices/xmlrpc/branches/XMLRPC_3_0_BRANCH/src/site/apt/advanced.apt
URL:
http://svn.apache.org/viewvc/webservices/xmlrpc/branches/XMLRPC_3_0_BRANCH/src/site/apt/advanced.apt?view=diff&rev=441076&r1=441075&r2=441076
==============================================================================
--- webservices/xmlrpc/branches/XMLRPC_3_0_BRANCH/src/site/apt/advanced.apt
(original)
+++ webservices/xmlrpc/branches/XMLRPC_3_0_BRANCH/src/site/apt/advanced.apt Thu
Sep 7 05:41:35 2006
@@ -93,6 +93,7 @@
recommended, of course.) In either way, you've got to use a custom
transport and overwrite the methods newURLConnection(URL),
initHttpHeaders(XmlRpcRequest), and close():
+
-----------------------------------------------------------------------------------
import java.net.URLConnection;
import org.apache.xmlrpc.client.XmlRpcClient;
@@ -125,9 +126,11 @@
};
client.setTransportFactory(factory);
-----------------------------------------------------------------------------------
+
* The XmlRpcCommonsHttpTransport requires that the HttpClient is being
reused. (By default, a new HttpClient is created for any connection.)
To reuse the HttpClient, use a transport factory like the following:
+
-----------------------------------------------------------------------------------
import org.apache.commons.httpclient.HttpClient;
import org.apache.xmlrpc.client.XmlRpcClient;
@@ -148,6 +151,7 @@
};
client.setTransportFactory(factory);
-----------------------------------------------------------------------------------
+
Note, that this means losing the XmlRpcClients multithreading abilities!
The factory above is obviously bound to the HttpClient, which must be
bound to a thread. If you need to set cookies initially, overwrite the
Modified: webservices/xmlrpc/trunk/src/site/apt/advanced.apt
URL:
http://svn.apache.org/viewvc/webservices/xmlrpc/trunk/src/site/apt/advanced.apt?view=diff&rev=441076&r1=441075&r2=441076
==============================================================================
--- webservices/xmlrpc/trunk/src/site/apt/advanced.apt (original)
+++ webservices/xmlrpc/trunk/src/site/apt/advanced.apt Thu Sep 7 05:41:35 2006
@@ -93,6 +93,7 @@
recommended, of course.) In either way, you've got to use a custom
transport and overwrite the methods newURLConnection(URL),
initHttpHeaders(XmlRpcRequest), and close():
+
-----------------------------------------------------------------------------------
import java.net.URLConnection;
import org.apache.xmlrpc.client.XmlRpcClient;
@@ -125,9 +126,11 @@
};
client.setTransportFactory(factory);
-----------------------------------------------------------------------------------
+
* The XmlRpcCommonsHttpTransport requires that the HttpClient is being
reused. (By default, a new HttpClient is created for any connection.)
To reuse the HttpClient, use a transport factory like the following:
+
-----------------------------------------------------------------------------------
import org.apache.commons.httpclient.HttpClient;
import org.apache.xmlrpc.client.XmlRpcClient;
@@ -148,6 +151,7 @@
};
client.setTransportFactory(factory);
-----------------------------------------------------------------------------------
+
Note, that this means losing the XmlRpcClients multithreading abilities!
The factory above is obviously bound to the HttpClient, which must be
bound to a thread. If you need to set cookies initially, overwrite the