Java com.google.gwt.http.client RequestBuilder fields, constructors, methods, implement or subclass

Example usage for Java com.google.gwt.http.client RequestBuilder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gwt.http.client RequestBuilder.

The text is from its open source code.

Subclass

com.google.gwt.http.client.RequestBuilder has subclasses.
Click this link to see all its subclasses.

Field

MethodDELETE
Specifies that the HTTP DELETE method should be used.
MethodGET
Specifies that the HTTP GET method should be used.
MethodHEAD
Specifies that the HTTP HEAD method should be used.
MethodPOST
Specifies that the HTTP POST method should be used.
MethodPUT
Specifies that the HTTP PUT method should be used.

Constructor

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.

Method

RequestCallbackgetCallback()
Returns the callback previously set by #setCallback(RequestCallback) , or null if no callback was set.
StringgetHeader(String header)
Returns the value of a header previous set by #setHeader(String,String) , or null if no such header was set.
StringgetHTTPMethod()
Returns the HTTP method specified in the constructor.
StringgetRequestData()
Returns the requestData previously set by #setRequestData(String) , or null if no requestData was set.
intgetTimeoutMillis()
Returns the timeoutMillis previously set by #setTimeoutMillis(int) , or 0 if no timeoutMillis was set.
StringgetUrl()
Returns the HTTP URL specified in the constructor.
Requestsend()
Sends an HTTP request based on the current builder configuration.
RequestsendRequest(String requestData, RequestCallback callback)
Sends an HTTP request based on the current builder configuration with the specified data and callback.
voidsetCallback(RequestCallback callback)
Sets the response handler for this request.
voidsetHeader(String header, String value)
Sets a request header with the given name and value.
voidsetPassword(String password)
Sets the password to use in the request URL.
voidsetRequestData(String requestData)
Sets the data to send as part of this request.
voidsetTimeoutMillis(int timeoutMillis)
Sets the number of milliseconds to wait for a request to complete.
voidsetUser(String user)
Sets the user name that will be used in the request URL.