Hello Tony,

In this case, you can specify the context in which all instances of the 
ClientResource class run. There is a dedicated constructor that allows to pass 
the context. Thus, you can complete the context with the underlying client HTTP 
connector. 

Context context = new Context();
context.setClientDispatcher(new Client(Protocol.HTTP));

ClientResource cr1 = new ClientResource(context, "http://www.example.com";);
ClientResource cr2 = new ClientResource(context, "http://www.example.net";);

Best regards,
Thierry Boileau

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2675956

Reply via email to