[ 
http://issues.apache.org/jira/browse/XMLRPC-101?page=comments#action_12424750 ] 
            
Julio Francisco Veronelli commented on XMLRPC-101:
--------------------------------------------------

Now, about the HTTP proxy thing, seems ok what you suggest. But I think there 
are a couple of problems with that:

1) The sample I gave, in which a java.net.Proxy is used requires Java 1.5 or 
later. Perhaps a XmlRpcSun15HttpTransport (and factory) could be used? Even if 
done that way, the Proxy class does not allow to set a user or password, so 
only the address would be given.

2) From what i saw, HttpClient provides a HostConfiguration.setProxy(String 
proxyHost,int proxyPort) that may be used. But, again, only the address can be 
set.

3) Finally, for the Lite transport, it's way beyond my skill how to talk 
directly to a HTTP Proxy using a socket. Sorry about that.

I think I can provide a patch for (1) and (2), but no more than that. Cheers.

> Possibility to subclass XmlRpcSunHttpTransport for added functionality
> ----------------------------------------------------------------------
>
>                 Key: XMLRPC-101
>                 URL: http://issues.apache.org/jira/browse/XMLRPC-101
>             Project: XML-RPC
>          Issue Type: Improvement
>          Components: Source
>    Affects Versions: 3.0rc1
>            Reporter: Julio Francisco Veronelli
>            Priority: Trivial
>         Attachments: ssl.patch
>
>
> Could it be possible to make the URLConnection in class 
> org.apache.xmlrpc.client.XmlRpcSunHttpTransport protected instead of private? 
> That is:
> protected URLConnection conn;
> REASON:
> That way is much easier to subclass for added functionality. In particular, 
> i'm subclassing it to set a java.net.Proxy or a java.security.KeyStore used 
> for setting a SSL connection.
> In XML-RPC 3.0a1 it was easy to do, all that was needed was to subclass 
> method newConnection(). In 3.0RC1 that method is gone, and overwriting 
> sendRequest(XmlRpcRequest) is not possible, since conn is private.
> I tried also extending XmlRpcHttpTransport, but it is not possible, because 
> org.apache.xmlrpc.client.XmlRpcStreamTransport.RequestWriter is protected and 
> cannot be accessed.
> Thanks in advance.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to