It's unclear what you're looking for that you're not getting. The example
class being pointed to (ExternalServiceResource) is just a REST resource
like any other, which takes the Apache HttpClient as an input parameter to
be used in subsequent GET/POST/PUT/DELETE/etc operations. The documentation
shows how to configure and construct the HttpClient instance. If you're
having trouble getting that to work, please provide more details so we can
help.

If you're asking how to use HttpClient itself, I recommend having a look at
the HttpClient documentation
<https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/client/HttpClient.html>
.

Ryan

On Fri, Jun 24, 2016 at 3:00 AM, Mehdi Chati <[email protected]> wrote:

> I have the same request.
>
> Thanks
> Mehdi
>
>
> Le jeudi 18 juin 2015 02:40:10 UTC+2, jrrobles79 a écrit :
>>
>> Ok, I just check that ExternalServiceResource is for an example, but does
>> not exist, so, can some one give me an example of a class that can register
>> a Httpclient?
>>
>>
>> El miércoles, 17 de junio de 2015, 17:47:15 (UTC-5), jrrobles79 escribió:
>>>
>>> Im checking the documentation for the Httpclient, and trying to
>>> implement a simple example, but I can't find in what package
>>> is ExternalServiceResource:
>>>
>>>
>>>    environment.jersey().register(new
>>> ExternalServiceResource(httpClient));
>>>
>>>
>>>
>>> Thanks in advance.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "dropwizard-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to