Hi Koen,
regarding the status and entity of the response, they are still available via
the clientResource:
final ContactResourceProxy contactResource =
GWT.create(ContactResourceProxy.class);
contactResource.getClientResource().setReference("/contacts/123");
contactResource.retrieve(new Result(
Ha ok, didn't know that.
Anyway, what I do now is :
In case onFailure
And status code = 200
And media type = HTML
=> I guess I was redirected.. I do a Window.reload() and the client ends up on
the login screen;
--
http://restlet.tigris.org/ds
Hello Koen,
regarding redirections, there is at this time no way to control the behaviour
of the internal XmlHttpRequest object
(http://stackoverflow.com/questions/228225/prevent-redirection-of-xmlhttprequest).
It follows automatically the redirection.
Best regards,
Thierry Boileau
--
3 matches
Mail list logo