public static class ServerRpcHandler.RpcRequest extends Object implements Serializable
Constructor and Description |
---|
RpcRequest(String jsonString,
VaadinRequest request)
Creates an instance based on the given JSON received through the
given request.
|
Modifier and Type | Method and Description |
---|---|
int |
getClientToServerId()
Gets the id of the client to server message.
|
String |
getCsrfToken()
Gets the CSRF security token (synchronizer token pattern) for this
request.
|
elemental.json.JsonObject |
getRawJson()
Gets the entire request in JSON format, as it was received from the
client.
|
elemental.json.JsonArray |
getRpcInvocationsData()
Gets the data to recreate the RPC as requested by the client side.
|
int |
getSyncId()
Gets the sync id last seen by the client.
|
boolean |
isResynchronize()
Checks if this is a request to resynchronize the client side.
|
public RpcRequest(String jsonString, VaadinRequest request)
jsonString
- the JSON containing the RPC invocationsrequest
- the request through which the JSON was receivedpublic String getCsrfToken()
public elemental.json.JsonArray getRpcInvocationsData()
public int getSyncId()
public boolean isResynchronize()
public int getClientToServerId()
public elemental.json.JsonObject getRawJson()
Note: This is a shared reference - any modifications made will be shared.
Copyright © 2022. All rights reserved.