com.vaadin.server.communication
Class ServerRpcHandler.RpcRequest

java.lang.Object
  extended by com.vaadin.server.communication.ServerRpcHandler.RpcRequest
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ServerRpcHandler

public static class ServerRpcHandler.RpcRequest
extends java.lang.Object
implements java.io.Serializable

A data transfer object representing an RPC request sent by the client side.

Since:
7.2
Author:
Vaadin Ltd
See Also:
Serialized Form

Constructor Summary
ServerRpcHandler.RpcRequest(java.lang.String jsonString, VaadinRequest request)
           
 
Method Summary
 java.lang.String getCsrfToken()
          Gets the CSRF security token (double submit cookie) 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerRpcHandler.RpcRequest

public ServerRpcHandler.RpcRequest(java.lang.String jsonString,
                                   VaadinRequest request)
Method Detail

getCsrfToken

public java.lang.String getCsrfToken()
Gets the CSRF security token (double submit cookie) for this request.

Returns:
the CSRF security token for this current change request

getRpcInvocationsData

public elemental.json.JsonArray getRpcInvocationsData()
Gets the data to recreate the RPC as requested by the client side.

Returns:
the data describing which RPC should be made, and all their data

getSyncId

public int getSyncId()
Gets the sync id last seen by the client.

Returns:
the last sync id given by the server, according to the client's request

isResynchronize

public boolean isResynchronize()
Checks if this is a request to resynchronize the client side

Returns:
true if this is a resynchronization request, false otherwise

getRawJson

public elemental.json.JsonObject getRawJson()
Gets the entire request in JSON format, as it was received from the client.

Note: This is a shared reference - any modifications made will be shared.

Returns:
the raw JSON object that was received from the client


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.