You are viewing a plain text version of this content. The canonical link for it is here.
Posted to droids-dev@incubator.apache.org by "Paul Rogalinski (JIRA)" <ji...@apache.org> on 2010/11/23 13:22:58 UTC

[jira] Created: (DROIDS-104) DroidsHttpClient unable to use a proxy

DroidsHttpClient unable to use a proxy
--------------------------------------

                 Key: DROIDS-104
                 URL: https://issues.apache.org/jira/browse/DROIDS-104
             Project: Droids
          Issue Type: Bug
          Components: core
            Reporter: Paul Rogalinski


createHttpRoutePlanner() method in DroidsHttpClient does not provide any ProxySelector:

  @Override
 protected HttpRoutePlanner createHttpRoutePlanner()
{
  return new ProxySelectorRoutePlanner(getConnectionManager().getSchemeRegistry(), null);
}

proposed solution:

@Override
protected HttpRoutePlanner createHttpRoutePlanner()
{
  return new DefaultHttpRoutePlanner (getConnectionManager().getSchemeRegistry());
}

once patched one can set set the proxy in a standard httpclient manner:

doirdsHttpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,new HttpHost("my.proxy.host",8080))


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DROIDS-104) DroidsHttpClient unable to use a proxy

Posted by "Javier Puerto (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DROIDS-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935475#action_12935475 ] 

Javier Puerto commented on DROIDS-104:
--------------------------------------

I'm agree with your appointment. I can't see the sense of using the proxy implementation forced to 'null'.

Commited on revision r1038802

Thanks for contribute.

> DroidsHttpClient unable to use a proxy
> --------------------------------------
>
>                 Key: DROIDS-104
>                 URL: https://issues.apache.org/jira/browse/DROIDS-104
>             Project: Droids
>          Issue Type: Bug
>          Components: core
>            Reporter: Paul Rogalinski
>
> createHttpRoutePlanner() method in DroidsHttpClient does not provide any ProxySelector:
>   @Override
>  protected HttpRoutePlanner createHttpRoutePlanner()
> {
>   return new ProxySelectorRoutePlanner(getConnectionManager().getSchemeRegistry(), null);
> }
> proposed solution:
> @Override
> protected HttpRoutePlanner createHttpRoutePlanner()
> {
>   return new DefaultHttpRoutePlanner (getConnectionManager().getSchemeRegistry());
> }
> once patched one can set set the proxy in a standard httpclient manner:
> doirdsHttpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,new HttpHost("my.proxy.host",8080))

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (DROIDS-104) DroidsHttpClient unable to use a proxy

Posted by "Thorsten Scherler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DROIDS-104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thorsten Scherler closed DROIDS-104.
------------------------------------

    Resolution: Fixed

> DroidsHttpClient unable to use a proxy
> --------------------------------------
>
>                 Key: DROIDS-104
>                 URL: https://issues.apache.org/jira/browse/DROIDS-104
>             Project: Droids
>          Issue Type: Bug
>          Components: core
>            Reporter: Paul Rogalinski
>
> createHttpRoutePlanner() method in DroidsHttpClient does not provide any ProxySelector:
>   @Override
>  protected HttpRoutePlanner createHttpRoutePlanner()
> {
>   return new ProxySelectorRoutePlanner(getConnectionManager().getSchemeRegistry(), null);
> }
> proposed solution:
> @Override
> protected HttpRoutePlanner createHttpRoutePlanner()
> {
>   return new DefaultHttpRoutePlanner (getConnectionManager().getSchemeRegistry());
> }
> once patched one can set set the proxy in a standard httpclient manner:
> doirdsHttpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,new HttpHost("my.proxy.host",8080))

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DROIDS-104) DroidsHttpClient unable to use a proxy

Posted by "Otis Gospodnetic (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DROIDS-104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12974844#action_12974844 ] 

Otis Gospodnetic commented on DROIDS-104:
-----------------------------------------

This issue should be marked as Fixed, Javier and Paul.  I don't seem to have the privilege to make this change in JIRA, otherwise I'd do it.

> DroidsHttpClient unable to use a proxy
> --------------------------------------
>
>                 Key: DROIDS-104
>                 URL: https://issues.apache.org/jira/browse/DROIDS-104
>             Project: Droids
>          Issue Type: Bug
>          Components: core
>            Reporter: Paul Rogalinski
>
> createHttpRoutePlanner() method in DroidsHttpClient does not provide any ProxySelector:
>   @Override
>  protected HttpRoutePlanner createHttpRoutePlanner()
> {
>   return new ProxySelectorRoutePlanner(getConnectionManager().getSchemeRegistry(), null);
> }
> proposed solution:
> @Override
> protected HttpRoutePlanner createHttpRoutePlanner()
> {
>   return new DefaultHttpRoutePlanner (getConnectionManager().getSchemeRegistry());
> }
> once patched one can set set the proxy in a standard httpclient manner:
> doirdsHttpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,new HttpHost("my.proxy.host",8080))

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.