Basic Auth; Do you have a pointer to these filters/utilities? That sounds
like what I need. Is there an example or test somewhere (couldn't find that
in the ref guide)?
Thanks,
--Gunnar
2014/1/29 Bill Burke <bbu...@redhat.com>
> pre-emptive for what protocol? Digest? For basic auth, resteasy has a
> filter or utility methods you can use instead.
>
>
> On 1/29/2014 12:36 PM, Gunnar Morling wrote:
>
>> I'm invoking an authenticated endpoint and am using HttpContext to pass
>> in an AuthCache instance which is needed to enable pre-emptive
>> authentication.
>>
>> Is there any alternative way for setting credentials and have them
>> pre-emptively sent which doesn't require to touch HttpClient specifics?
>>
>> --Gunnar
>>
>>
>>
>> 2014/1/29 Bill Burke <bbu...@redhat.com <mailto:bbu...@redhat.com>>
>>
>>
>> What is the HttpContext used for anyways? Never used it. For
>> multithreaded access, I've wrote and used the extension methods to
>> ResteasyClientBuilder to configure connection pools and such.
>>
>> I honestly am trying to hide Apache HTTP Client with Resteasy (and in
>> the future JAX-RS) apis.
>>
>> On 1/29/2014 12:14 PM, Gunnar Morling wrote:
>> > Hi,
>> >
>> > I'm working with a RestEasy client (proxy) which should be
>> accessible
>> > from several threads in parallel.
>> >
>> > From the reference guide [1] I learned that I need to configure a
>> > custom ApacheHttpClient4Engine instance so it uses a thread-safe
>> HTTP
>> > client connection manager. This works as expected but there is a
>> > constructor of ApacheHttpClient4Engine which takes a HttpContext
>> and
>> > made me curious.
>> >
>> > HttpContext is not intended for multi-threaded access (see
>> comments on
>> > BasicHttpContext and SyncBasicHttpContext), but
>> ApacheHttpClient4Engine
>> > does not perform any sort of synchronization. Is there any way of
>> > passing a new context instance per request issued by the engine?
>> >
>> > Thanks,
>> >
>> > --Gunnar
>> >
>> > [1]
>> >
>> http://docs.jboss.org/resteasy/docs/3.0.6.Final/
>> userguide/html_single/#transport_layer
>> >
>> >
>> >
>> >
>> ------------------------------------------------------------
>> ------------------
>> > WatchGuard Dimension instantly turns raw network data into
>> actionable
>> > security intelligence. It gives you real-time visual feedback on
>> key
>> > security issues and trends. Skip the complicated setup - simply
>> import
>> > a virtual appliance and go from zero to informed in seconds.
>> >
>> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&
>> iu=/4140/ostg.clktrk
>> >
>> >
>> >
>> > _______________________________________________
>> > Resteasy-users mailing list
>> > Resteasy-users@lists.sourceforge.net
>> <mailto:Resteasy-users@lists.sourceforge.net>
>>
>> > https://lists.sourceforge.net/lists/listinfo/resteasy-users
>> >
>>
>> --
>> Bill Burke
>> JBoss, a division of Red Hat
>> http://bill.burkecentral.com
>>
>> ------------------------------------------------------------
>> ------------------
>> WatchGuard Dimension instantly turns raw network data into actionable
>> security intelligence. It gives you real-time visual feedback on key
>> security issues and trends. Skip the complicated setup - simply
>> import
>> a virtual appliance and go from zero to informed in seconds.
>> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&
>> iu=/4140/ostg.clktrk
>> _______________________________________________
>> Resteasy-users mailing list
>> Resteasy-users@lists.sourceforge.net
>> <mailto:Resteasy-users@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/resteasy-users
>>
>>
>>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
>
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users