XML-RPC

Improve extensibility of XmlRpcCommonsTransport

Created: 15/Jan/07 07:17 PM   Updated: 28/Nov/08 08:53 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 3.1

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File MyHttpClientTransport.java 2007-01-15 07:19 PM Steffen Pingel 1 kB
Text File Licensed for inclusion in ASF works xmlrpc.patch 2007-01-15 07:18 PM Steffen Pingel 2 kB

Resolution Date: 15/Jan/07 09:01 PM


 Description  « Hide
As mentioned in XMLRPC-101 comment 7 it is not easily possible to add proxy and ssl support to XmlRpcCommonsTransport. The client and method fields should be made accessible to sub-classes for better extensibility. Currently using reflection is the only work around to access these.

I have attached a patch that contains an additional change:

Calling the protected method newHttpClient() from the constructor is error prone. The constructor of sub-classes overriding it has not been completed when it is run so assignments to fields etc. has not been done. I moved the call to initHttpHeaders() instead
.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #496479 Mon Jan 15 20:45:09 UTC 2007 jochen Made extending the XmlRpcCommonsTransportFactory easier.
Submitted-by: Steffen Pingel, steffenp@gmx.de
PR: XMLRPC-131
Files Changed
MODIFY /webservices/xmlrpc/trunk/src/changes/changes.xml
MODIFY /webservices/xmlrpc/trunk/client/src/main/java/org/apache/xmlrpc/client/XmlRpcCommonsTransport.java

Repository Revision Date User Message
ASF #496491 Mon Jan 15 21:00:24 UTC 2007 jochen Made extending the XmlRpcCommonsTransportFactory easier.
Submitted-by: Steffen Pingel, steffenp@gmx.de
PR: XMLRPC-131
Files Changed
MODIFY /webservices/xmlrpc/trunk/pom.xml