public class XhrConnection extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
XhrConnection.XhrResponseHandler |
| Constructor and Description |
|---|
XhrConnection() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addXsrfHeaderFromCookie(com.google.gwt.http.client.RequestBuilder rb) |
protected XhrConnection.XhrResponseHandler |
createResponseHandler() |
protected String |
getUri()
Retrieves the URI to use when sending RPCs to the server.
|
void |
send(elemental.json.JsonObject payload)
Sends an asynchronous UIDL request to the server using the given URI.
|
void |
setConnection(ApplicationConnection connection)
Sets the application connection this instance is connected to.
|
public void setConnection(ApplicationConnection connection)
connection - the application connection this instance is connected toprotected XhrConnection.XhrResponseHandler createResponseHandler()
public void send(elemental.json.JsonObject payload)
payload - The URI to use for the request. May includes GET parameterscom.google.gwt.http.client.RequestException - if the request could not be sentprotected String getUri()
public static void addXsrfHeaderFromCookie(com.google.gwt.http.client.RequestBuilder rb)
Copyright © 2021 Vaadin Ltd. All rights reserved.