Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.gwt.runtime.client.ui
Class HttpCommand

java.lang.Object
  extended by org.nuxeo.ecm.gwt.runtime.client.http.HttpCallback
      extended by 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

Constructor Summary
HttpCommand()
           
HttpCommand(int busyTimeout)
           
HttpCommand(View view)
           
HttpCommand(View view, int busyTimeout)
           
 
Method Summary
 void execute()
           
 HttpRequest get(java.lang.String url)
           
 int getBusyTimeout()
           
 View getView()
           
 void onError(com.google.gwt.http.client.Request request, java.lang.Throwable exception)
           
 void onFailure(java.lang.Throwable cause)
           
 void onResponseReceived(com.google.gwt.http.client.Request request, com.google.gwt.http.client.Response response)
           
 void onSuccess(HttpResponse response)
           
 HttpRequest post(java.lang.String url)
           
 HttpCommand setBusyTimeout(int busyTimeout)
           
 HttpCommand setView(View view)
           
 
Methods inherited from class org.nuxeo.ecm.gwt.runtime.client.http.HttpCallback
getRequest
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpCommand

public HttpCommand()

HttpCommand

public HttpCommand(int busyTimeout)

HttpCommand

public HttpCommand(View view)

HttpCommand

public HttpCommand(View view,
                   int busyTimeout)
Method Detail

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.