public class XhrConnection extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
XhrConnection.XhrResponseHandler
Handles the response from the server by forwarding the received message
to
MessageHandler or failures to the appropriate method in
ConnectionStateHandler. |
| Constructor and Description |
|---|
XhrConnection(Registry registry)
Creates a new instance connected to the given registry.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public XhrConnection(Registry registry)
registry - the global registryprotected XhrConnection.XhrResponseHandler createResponseHandler()
public void send(elemental.json.JsonObject payload)
payload - The URI to use for the request. May includes GET parametersprotected String getUri()
Copyright © 2000–2022 Vaadin Ltd. All rights reserved.