hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clinton Nielsen (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPASYNC-17) org.apache.http.impl.client.cache.CachingHttpClient should have an nio counterpart: CachingHttpAsyncClient
Date Fri, 13 Apr 2012 19:26:17 GMT

    [ https://issues.apache.org/jira/browse/HTTPASYNC-17?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253670#comment-13253670
] 

Clinton Nielsen commented on HTTPASYNC-17:
------------------------------------------

Thanks.

A note:
Pay special attention to the 	

@Override
public <T> Future<T> execute(HttpAsyncRequestProducer httpAsyncRequestProducer,
			final HttpAsyncResponseConsumer<T> httpAsyncResponseConsumer, final HttpContext httpContext,
			final FutureCallback<T> futureCallback) {

method, as we didn't need that one at all and so I didn't really properly research the correct
way to turn a Future<T> into a Future<HttpResponse> in a way that allowed the
caller full control over the Future object (and the associated FutureCallback object). I think
what I did will work, but I'm really not sure if it's right.
                
> org.apache.http.impl.client.cache.CachingHttpClient should have an nio counterpart: CachingHttpAsyncClient

> -----------------------------------------------------------------------------------------------------------
>
>                 Key: HTTPASYNC-17
>                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-17
>             Project: HttpComponents HttpAsyncClient
>          Issue Type: New Feature
>         Environment: NA
>            Reporter: Clinton Nielsen
>            Priority: Minor
>             Fix For: 4.0-beta2
>
>         Attachments: AsynchronousAsyncValidationRequest.java, AsynchronousAsyncValidator.java,
CachingHttpAsyncClient.java
>
>
> org.apache.http.impl.client.cache.CachingHttpClient should have an nio counterpart: CachingHttpAsyncClient.
> Since I needed the functionality for my own project, I went ahead and made the appropriate
changes to CachingHttpClient to allow it to decorate an HttpAsyncClient.
> I'm attaching the files here, for consideration for a future release.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message