com.google.gwt.user.client
Class HTTPRequest

java.lang.Object
  extended bycom.google.gwt.user.client.HTTPRequest

public class HTTPRequest
extends Object

This class allows you to make asynchronous HTTP requests to the originating server.


Field Summary
 
Fields inherited from class java.lang.Object
typeId, typeName
 
Constructor Summary
HTTPRequest()
           
 
Method Summary
static boolean asyncGet(String url, ResponseTextHandler handler)
          Makes an asynchronous HTTP GET to a remote server.
static boolean asyncGet(String user, String pwd, String url, ResponseTextHandler handler)
          Makes an asynchronous HTTP GET to a remote server.
static boolean asyncPost(String url, String postData, ResponseTextHandler handler)
          Makes an asynchronous HTTP POST to a remote server.
static boolean asyncPost(String user, String pwd, String url, String postData, ResponseTextHandler handler)
          Makes an asynchronous HTTP POST to a remote server.
 
Methods inherited from class java.lang.Object
equals, finalize, hashCode, toString
 

Constructor Detail

HTTPRequest

public HTTPRequest()
Method Detail

asyncPost

public static boolean asyncPost(String url,
                                String postData,
                                ResponseTextHandler handler)
Makes an asynchronous HTTP POST to a remote server.

Parameters:
url - the absolute url to which the POST data is delivered
postData - the data to post
handler - the response handler to be notified when either the request fails, or is completed successfully
Returns:
false if the invocation fails to issue

asyncPost

public static boolean asyncPost(String user,
                                String pwd,
                                String url,
                                String postData,
                                ResponseTextHandler handler)
Makes an asynchronous HTTP POST to a remote server.

Parameters:
url - the absolute url to which the POST data is delivered
postData - the data to post
handler - the response handler to be notified when either the request fails, or is completed successfully
Returns:
false if the invocation fails to issue

asyncGet

public static boolean asyncGet(String url,
                               ResponseTextHandler handler)
Makes an asynchronous HTTP GET to a remote server.

Parameters:
url - the absolute url to GET
handler - the response handler to be notified when either the request fails, or is completed successfully
Returns:
false if the invocation fails to issue

asyncGet

public static boolean asyncGet(String user,
                               String pwd,
                               String url,
                               ResponseTextHandler handler)
Makes an asynchronous HTTP GET to a remote server.

Parameters:
url - the absolute url to GET
handler - the response handler to be notified when either the request fails, or is completed successfully
Returns:
false if the invocation fails to issue


This javadoc distribution was not produced by Google. The official documentation is here.