Hi,

Actually there is a proper way to do what you want. The javadocs of the client helper extension [1] provides a list of properties that can be set following this way :
client.getContext().getParameters().add(<name>, <value>);

We agree to say that the information is not easy to find. We will find a way to fix that point in the Restlet documentation site.

Best regards,
Thierry Boileau
[1] http://www.restlet.org/documentation/1.0/ext/com/noelios/restlet/ext/httpclient/HttpClientHelper.html

Hi,

Is there a way to set connection timeout or read timeout parameters to our Client ?

As i investigated release notes set/get timeout methods removed from org.restlet.Client class since RC-4. I know we can set this attributes in com.noelious.restlet.ext.httpclient.HttpClientHelper but i can’t set this helper to my Client or access this helper from Client since getHelper() method is private. I have already done a workaround by extending Client class and implementing my own but i wanted to be sure if we have another cleaner way to do this..

Kind Regards

Özgün Atacan


************************************************************************
The information contained in this message or any of its attachments may be confidential and is intended for the exclusive use of the addressee(s). Any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited without the express permission of the sender. The views expressed in this email are those of the individual and not necessarily those of Sony or Sony affiliated companies. Sony email is for business use only.

This email and any response may be monitored by Sony to be in compliance with Sony’s global policies and standards

Reply via email to