Hi Niclas,

 >Some short-circuit occurring. Possibly mixing it up with some previous 
version.
sure, there have been updates in the last days.

>Thanks a lot for your patience... Tiring day for me...

you're welcome! :)

Best regards,
Thierry Boileau


> 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
>>
>>     
>
>
>
>

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

Reply via email to