wink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Witte <stefan_wi...@yahoo.com>
Subject Re: FW: Basic Authentication in WINK Client
Date Thu, 01 Oct 2009 17:10:38 GMT
Exactly the way i did the authentication... but i use a ClientHandler because i didn't find
the client.header(..) method. I stumbled upon the handler(..) method by accident.

I don't understand why these method's are not called add<something>(..) eg. addHeader(..).
Wouldn't that be more intuitive and common practise ?
Same for client.contentType etc. Why not client.setContentType(..) ?

Is this for the builder pattern ?




________________________________
From: Bryant Luk <bryant.luk@gmail.com>
To: wink-user@incubator.apache.org
Sent: Thursday, October 1, 2009 3:47:54 PM
Subject: Re: FW: Basic Authentication in WINK Client

Try looking at:
http://matthiaswessendorf.wordpress.com/2009/08/27/twitter-status-post-with-apache-wink/
which uses the Apache Wink client that uses basic auth to post to Twitter.

On Thu, Oct 1, 2009 at 8:15 AM, Shukrun, Eytan <eytan.shukrun@hp.com> wrote:
>
> How do I do Basic Authentication in WINK Client
>
>



-- 

- Bryant Luk



      
Mime
View raw message