Hi Sanjay,

If you need to set parameters, then just create a new one by hand like this:

Client client  = new Client(new Context(), Arrays.asList(protocols));
Context context = client.getContext();

Otherwise, it can remain 'null'.

Best regards,
Jérôme Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com


-----Message d'origine-----
De : Sanjay Acharya [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 15 août 2008 20:53
À : [email protected]
Objet : Client Context


Hi,

I was looking at the org.restlet.Client. In current code, I am accessing the
context via the following:

Client client  = new Client(Arrays.asList(protocols));
Context context = client.getContext();

The getContext() method as of 1.1-M5 returns null, i.e., due to the change
in the Restlet classes' constructor. 

What is the recommended approach with 1.1-M5 to access the context?

Thanks in advance,
Sanjay
_________________________________________________________________
Talk to your Yahoo! Friends via Windows Live Messenger.  Find out how.
http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_yah
oo_082008=

Reply via email to