com.vaadin.flow.shared.
Class JsonConstants
All Implemented Interfaces:
A utility class providing constants for JSON related features.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Key holding the feature of a change.
static final String
Key holding the feature type.
static final String
Key holding the map key of the change.
static final String
Key holding id of the node affected by a change.
static final String
Key holder the node value of a put change.
static final String
Key holding the value of a put change.
static final String
Key holding values to add for a splice.
static final String
Key holding nodes to add for a splice.
static final String
Key holding the index of a splice.
static final String
Key holding the number of items to remove for a splice.
static final String
Key holding the type of a change.
static final String
Change type for attaching nodes.
static final String
Change type for list clear changes.
static final String
Change type for detaching nodes.
static final String
Change type for empty change (populate the feature on the client side only).
static final String
Change type for map put changes.
static final String
Change type for map remove changes.
static final String
Change type for list splice changes.
static final String
Key holding the debounce phase for an event data map from the client.
static final String
Character used for representing
DebouncePhase.INTERMEDIATE
.static final String
Character used for representing
DebouncePhase.LEADING
.static final String
Character used for representing
DebouncePhase.TRAILING
.static final String
The content type for JSON requests/responses.
static final String
Token used as an event data expression or prefix to an event data expression to represent that the state node ID should be fetched for the element, or its closest parent, that corresponds to
event.target
or the element returned by the evaluated expression.static final String
Key used when the message is sent asynchronously via push channel.
static final String
Key used when informing the client side that the session has expired.
static final String
Key used to hold assigned state node identifier for attach existing element request.
static final String
Type value for attach existing element server callback.
static final String
Type value for attach existing element server callback.
static final String
Key used to hold id of the element for attach existing element request.
static final String
Key used to hold index of server side element for attach existing element request.
static final String
Key used to hold requested state node identifier for attach existing element request.
static final String
Key used to hold tag name for attach existing element request.
static final String
Key for the channel id in return channel messages.
static final String
Key for the arguments array in return channel messages.
static final String
Key holding the event data in event messages sent from the client.
static final String
Key holding the event type in event messages sent from the client.
static final String
Key used to hold the feature id when synchronizing node values.
static final String
Key used to hold the location in a navigation message.
static final String
Key used in navigation messages triggered by a router link.
static final String
Key used to hold the state in a navigation message.
static final String
Key holding the node in messages sent from the client.
static final String
Name of the $server property that is used to track pending promises.
static final String
Key used to hold the name of the synchronized property.
static final String
Key used to hold the value of the synchronized property.
static final String
Type value for events sent from the client to an event handler published on the server.
static final String
Key used to hold the argument values for server side method call.
static final String
Key used to hold the server side method name in template event messages sent from the client.
static final String
Key used to hold the promise id for a server side method call.
static final String
Key holding the type in of messages sent from the client.
static final String
RPC type value used for return channel messages.
static final String
Type value for events sent from the client.
static final String
Type value for model map synchronizations sent from the client.
static final String
Type value for navigation events from the client.
static final String
Token used as an event data expression to represent that properties should be synchronized.
static final String
Key used for data related to
Page.executeJs(String, Serializable...)
in UIDL messages. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
JSON_CONTENT_TYPE
The content type for JSON requests/responses.
See Also:
-
CHANGE_NODE
Key holding id of the node affected by a change.
See Also:
-
CHANGE_TYPE
Key holding the type of a change.
See Also:
-
CHANGE_TYPE_NOOP
Change type for empty change (populate the feature on the client side only).
See Also:
-
CHANGE_TYPE_ATTACH
Change type for attaching nodes.
See Also:
-
CHANGE_TYPE_DETACH
Change type for detaching nodes.
See Also:
-
CHANGE_TYPE_SPLICE
Change type for list splice changes.
See Also:
-
CHANGE_TYPE_PUT
Change type for map put changes.
See Also:
-
CHANGE_TYPE_REMOVE
Change type for map remove changes.
See Also:
-
CHANGE_TYPE_CLEAR
Change type for list clear changes.
See Also:
-
CHANGE_FEATURE
Key holding the feature of a change.
See Also:
-
CHANGE_FEATURE_TYPE
Key holding the feature type.
See Also:
-
CHANGE_MAP_KEY
Key holding the map key of the change.
See Also:
-
CHANGE_SPLICE_ADD_NODES
Key holding nodes to add for a splice.
See Also:
-
CHANGE_SPLICE_ADD
Key holding values to add for a splice.
See Also:
-
CHANGE_SPLICE_REMOVE
Key holding the number of items to remove for a splice.
See Also:
-
CHANGE_SPLICE_INDEX
Key holding the index of a splice.
See Also:
-
CHANGE_PUT_VALUE
Key holding the value of a put change.
See Also:
-
CHANGE_PUT_NODE_VALUE
Key holder the node value of a put change.
See Also:
-
RPC_TYPE
Key holding the type in of messages sent from the client.
See Also:
-
RPC_TYPE_EVENT
Type value for events sent from the client.
See Also:
-
RPC_TYPE_NAVIGATION
Type value for navigation events from the client.
See Also:
-
RPC_NODE
Key holding the node in messages sent from the client.
See Also:
-
RPC_EVENT_TYPE
Key holding the event type in event messages sent from the client.
See Also:
-
RPC_TYPE_MAP_SYNC
Type value for model map synchronizations sent from the client.
See Also:
-
RPC_EVENT_DATA
Key holding the event data in event messages sent from the client.
See Also:
-
UIDL_KEY_EXECUTE
Key used for data related to
Page.executeJs(String, Serializable...)
in UIDL messages.See Also:
-
RPC_FEATURE
Key used to hold the feature id when synchronizing node values.
See Also:
-
RPC_PROPERTY
Key used to hold the name of the synchronized property.
See Also:
-
RPC_PROPERTY_VALUE
Key used to hold the value of the synchronized property.
See Also:
-
RPC_NAVIGATION_LOCATION
Key used to hold the location in a navigation message.
See Also:
-
RPC_NAVIGATION_STATE
Key used to hold the state in a navigation message.
See Also:
-
RPC_NAVIGATION_ROUTERLINK
Key used in navigation messages triggered by a router link.
See Also:
-
RPC_PUBLISHED_SERVER_EVENT_HANDLER
Type value for events sent from the client to an event handler published on the server.
See Also:
-
RPC_TEMPLATE_EVENT_METHOD_NAME
Key used to hold the server side method name in template event messages sent from the client.
See Also:
-
RPC_TEMPLATE_EVENT_ARGS
Key used to hold the argument values for server side method call.
-
RPC_TEMPLATE_EVENT_PROMISE
Key used to hold the promise id for a server side method call.
See Also:
-
RPC_PROMISE_CALLBACK_NAME
Name of the $server property that is used to track pending promises. The name is chosen to avoid conflicts with genuine $server method names.
See Also:
-
RPC_ATTACH_EXISTING_ELEMENT
Type value for attach existing element server callback.
-
RPC_ATTACH_EXISTING_ELEMENT_BY_ID
Type value for attach existing element server callback.
-
RPC_ATTACH_REQUESTED_ID
Key used to hold requested state node identifier for attach existing element request.
See Also:
-
RPC_ATTACH_ASSIGNED_ID
Key used to hold assigned state node identifier for attach existing element request.
See Also:
-
RPC_ATTACH_TAG_NAME
Key used to hold tag name for attach existing element request.
See Also:
-
RPC_ATTACH_INDEX
Key used to hold index of server side element for attach existing element request.
See Also:
-
RPC_ATTACH_ID
Key used to hold id of the element for attach existing element request.
See Also:
-
META_SESSION_EXPIRED
Key used when informing the client side that the session has expired.
See Also:
-
META_ASYNC
Key used when the message is sent asynchronously via push channel.
See Also:
-
EVENT_DATA_PHASE
Key holding the debounce phase for an event data map from the client.
See Also:
-
EVENT_PHASE_LEADING
Character used for representing
DebouncePhase.LEADING
.See Also:
-
EVENT_PHASE_INTERMEDIATE
Character used for representing
DebouncePhase.INTERMEDIATE
.See Also:
-
EVENT_PHASE_TRAILING
Character used for representing
DebouncePhase.TRAILING
.See Also:
-
SYNCHRONIZE_PROPERTY_TOKEN
Token used as an event data expression to represent that properties should be synchronized. The token is chosen to avoid collisions with regular event data expressions by using a character that cannot be the start of a valid JS expression.
See Also:
-
MAP_STATE_NODE_EVENT_DATA
Token used as an event data expression or prefix to an event data expression to represent that the state node ID should be fetched for the element, or its closest parent, that corresponds to
event.target
or the element returned by the evaluated expression.The token is chosen to avoid collisions with regular event data expressions by using a character that cannot be the start of a valid JS expression.
Since:
9.0
See Also:
-
RPC_TYPE_CHANNEL
RPC type value used for return channel messages.
See Also:
-
RPC_CHANNEL
Key for the channel id in return channel messages.
See Also:
-
RPC_CHANNEL_ARGUMENTS
Key for the arguments array in return channel messages.
See Also:
-
-
Constructor Details
-
JsonConstants
public JsonConstants()
-