public class

Request

extends Object
java.lang.Object
   ↳ com.google.gwt.http.client.Request
Known Direct Subclasses

Class Overview

An HTTP request that is waiting for a response. Requests can be queried for their pending status or they can be canceled.

Required Module

Modules that use this class should inherit com.google.gwt.http.HTTP. {@gwt.include com/google/gwt/examples/http/InheritsExample.gwt.xml}

Summary

Protected Constructors
Request()
Only used for building a FailedRequest.
Public Methods
void cancel()
Cancels a pending request.
boolean isPending()
Returns true if this request is waiting for a response.
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected Request ()

Only used for building a FailedRequest.

Public Methods

public void cancel ()

Cancels a pending request. If the request has already been canceled or if it has timed out no action is taken.

public boolean isPending ()

Returns true if this request is waiting for a response.

Returns
  • true if this request is waiting for a response