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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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(java.lang.String url)
post
public HttpRequest post(java.lang.String url)
onError
public void onError(com.google.gwt.http.client.Request request,
java.lang.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(java.lang.Throwable cause)
- Overrides:
onFailure
in class HttpCallback
Copyright © 2010 Nuxeo SAS. All Rights Reserved.