RequestBuilder request = new RequestBuilder(RequestBuilder.GET,
"URL");
try {
request.sendRequest("", new RequestCallback() {
@Override
public void onResponseReceived(Request request, Response
response) {
int statusCode = response.getStatusCode();
}
@Override
public void onError(Request request, Throwable exception) {
}
});
} catch (RequestException e) {
e.printStackTrace();
}
Regads,
Alfredo
2011/10/5 Jaroslav Záruba <[email protected]>
> Hello
>
> Is it possible to make a request to server to check the actual response
> code? ...so one could check whether the error response was 500 404, etc.
> So far I would write piece of native JS.
>
> Cheers
> Jarda Z.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/kGIjoWO4-yYJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
--
Alfredo Quiroga-Villamil
AOL/Yahoo/Gmail/MSN IM: lawwton
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.