Hello Patrick,

when used inside a Component, a ClientResource will use the client connectors 
registered by the Component, exactly as hosted applications share the server 
connectors registered by the component [1] and [2]. 
Thus, you simply need to add the following line of code:
component.getClients().add(Protocol.HTTP);

By default, the internal client and server connectors are used, but you can use 
one of the others (see [2]).

Best regards,
Thierry Boileau

[1] http://wiki.restlet.org/docs_2.0/378-restlet.html
[2] http://wiki.restlet.org/docs_2.0/37-restlet.html

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

Reply via email to