org.nuxeo.ecm.gwt.runtime.client.ui
Class HttpCommand
java.lang.Object
org.nuxeo.ecm.gwt.runtime.client.http.HttpCallback
org.nuxeo.ecm.gwt.runtime.client.ui.HttpCommand
- All Implemented Interfaces:
- com.google.gwt.http.client.RequestCallback, com.google.gwt.user.client.Command
- Direct Known Subclasses:
- GetDocument, LoginCommand, LogoutCommand
public abstract class HttpCommand
- extends HttpCallback
- implements com.google.gwt.user.client.Command
TODO: busy timeout is not propagated to UI.showBusy
- Author:
- Bogdan Stefanescu
HttpCommand
public HttpCommand()
HttpCommand
public HttpCommand(int busyTimeout)
HttpCommand
public HttpCommand(View view)
HttpCommand
public HttpCommand(View view,
int busyTimeout)
getView
public View getView()
setView
public HttpCommand setView(View view)
getBusyTimeout
public int getBusyTimeout()
- Returns:
- the busyTimeout.
setBusyTimeout
public HttpCommand setBusyTimeout(int busyTimeout)
- Parameters:
busyTimeout
- the busyTimeout to set.
execute
public void execute()
- Specified by:
execute
in interface com.google.gwt.user.client.Command
get
public HttpRequest get(String url)
post
public HttpRequest post(String url)
onError
public void onError(com.google.gwt.http.client.Request request,
Throwable exception)
- Specified by:
onError
in interface com.google.gwt.http.client.RequestCallback
- Overrides:
onError
in class HttpCallback
onResponseReceived
public void onResponseReceived(com.google.gwt.http.client.Request request,
com.google.gwt.http.client.Response response)
- Specified by:
onResponseReceived
in interface com.google.gwt.http.client.RequestCallback
- Overrides:
onResponseReceived
in class HttpCallback
onSuccess
public void onSuccess(HttpResponse response)
- Specified by:
onSuccess
in class HttpCallback
onFailure
public void onFailure(Throwable cause)
- Overrides:
onFailure
in class HttpCallback
Copyright © 2011 Nuxeo SAS. All Rights Reserved.