Example usage for Java com.google.gwt.http.client RequestBuilder fields, constructors, methods, implement or subclass
The text is from its open source code.
Method | DELETE Specifies that the HTTP DELETE method should be used. |
Method | GET Specifies that the HTTP GET method should be used. |
Method | HEAD Specifies that the HTTP HEAD method should be used. |
Method | POST Specifies that the HTTP POST method should be used. |
Method | PUT Specifies that the HTTP PUT method should be used. |
RequestBuilder(Method httpMethod, String url) Creates a builder using the parameters for configuration. | |
RequestBuilder(String httpMethod, String url) Creates a builder using the parameters values for configuration. |
RequestCallback | getCallback() Returns the callback previously set by #setCallback(RequestCallback) , or null if no callback was set. |
String | getHeader(String header) Returns the value of a header previous set by #setHeader(String,String) , or null if no such header was set. |
String | getHTTPMethod() Returns the HTTP method specified in the constructor. |
String | getRequestData() Returns the requestData previously set by #setRequestData(String) , or null if no requestData was set. |
int | getTimeoutMillis() Returns the timeoutMillis previously set by #setTimeoutMillis(int) , or 0 if no timeoutMillis was set. |
String | getUrl() Returns the HTTP URL specified in the constructor. |
Request | send() Sends an HTTP request based on the current builder configuration. |
Request | sendRequest(String requestData, RequestCallback callback) Sends an HTTP request based on the current builder configuration with the specified data and callback. |
void | setCallback(RequestCallback callback) Sets the response handler for this request. |
void | setHeader(String header, String value) Sets a request header with the given name and value. |
void | setPassword(String password) Sets the password to use in the request URL. |
void | setRequestData(String requestData) Sets the data to send as part of this request. |
void | setTimeoutMillis(int timeoutMillis) Sets the number of milliseconds to wait for a request to complete. |
void | setUser(String user) Sets the user name that will be used in the request URL. |