Again, if I read a bit more careful... The "Request" contains the "ChallengeReponse"....
Got it!!! Thanks a lot for your patience... Tiring day for me... Niclas On Tue, Dec 22, 2009 at 5:33 PM, Niclas Hedhman <[email protected]> wrote: > On Tue, Dec 22, 2009 at 3:47 PM, Thierry Boileau > <[email protected]> wrote: >> Hi Niclas, >> >> > * ext.json depends on Google's Json classes, and I think that >> therefore the module should inherit the Google one. >> Isn't that the case? Do you think about the JSON.gwt.xml file that looks >> like: >> <module> >> <inherits name='com.google.gwt.user.User' /> >> <inherits name='com.google.gwt.json.JSON' /> >> </module> > > Some short-circuit occurring. Possibly mixing it up with some previous > version. > >> >Secondly, I presume that clientResource.getChallengeRequest() after >> construction will return a mutable instance that can be used to set up >> headers and auth... Right? >> >> Actually, the ChallengeRequest is sent by the server. The client send a >> ChallengeResponse object... >> You can have a look at the sample code : >> http://wiki.restlet.org/docs_2.0/188-restlet.html > > Uhhh...??? Now I am more confused than ever... I thought I understood > the basic principles involved. > > Your Example; > > // Add an AJAX call to the server > ClientResource r = new ClientResource("/ping"); > > // Set the callback object invoked when the response is received. > r.setOnReceived(new Uniform() { > public void handle(Request request, Response response) { > try { > button.setText(response.getEntity().getText()); > } catch (IOException e) { > e.printStackTrace(); > } > } > }); > r.get(); > > The Response instance is coming from the server, right??? > > > Cheers > -- > Niclas Hedhman, Software Developer > http://www.qi4j.org - New Energy for Java > > I live here; http://tinyurl.com/2qq9er > I work here; http://tinyurl.com/2ymelc > I relax here; http://tinyurl.com/2cgsug > -- Niclas Hedhman, Software Developer http://www.qi4j.org - New Energy for Java I live here; http://tinyurl.com/2qq9er I work here; http://tinyurl.com/2ymelc I relax here; http://tinyurl.com/2cgsug ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2432265

