Package com.vaadin.flow.shared
Class JsonConstants
java.lang.Object
com.vaadin.flow.shared.JsonConstants
- All Implemented Interfaces:
Serializable
A utility class providing constants for JSON related features.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey holding the feature of a change.static final StringKey holding the feature type.static final StringKey holding the map key of the change.static final StringKey holding id of the node affected by a change.static final StringKey holder the node value of a put change.static final StringKey holding the value of a put change.static final StringKey holding values to add for a splice.static final StringKey holding nodes to add for a splice.static final StringKey holding the index of a splice.static final StringKey holding the number of items to remove for a splice.static final StringKey holding the type of a change.static final StringChange type for attaching nodes.static final StringChange type for list clear changes.static final StringChange type for detaching nodes.static final StringChange type for empty change (populate the feature on the client side only).static final StringChange type for map put changes.static final StringChange type for map remove changes.static final StringChange type for list splice changes.static final StringKey holding the debounce phase for an event data map from the client.static final StringCharacter used for representingDebouncePhase.INTERMEDIATE.static final StringCharacter used for representingDebouncePhase.LEADING.static final StringCharacter used for representingDebouncePhase.TRAILING.static final StringThe content type for JSON requests/responses.static final StringToken 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 toevent.targetor the element returned by the evaluated expression.static final StringKey used when the message is sent asynchronously via push channel.static final StringKey used when informing the client side that the session has expired.static final StringKey used to hold assigned state node identifier for attach existing element request.static final StringType value for attach existing element server callback.static final StringType value for attach existing element server callback.static final StringKey used to hold id of the element for attach existing element request.static final StringKey used to hold index of server side element for attach existing element request.static final StringKey used to hold requested state node identifier for attach existing element request.static final StringKey used to hold tag name for attach existing element request.static final StringKey for the channel id in return channel messages.static final StringKey for the arguments array in return channel messages.static final StringKey holding the event data in event messages sent from the client.static final StringKey holding the event type in event messages sent from the client.static final StringKey used to hold the feature id when synchronizing node values.static final StringKey used to hold the location in a navigation message.static final StringKey used in navigation messages triggered by a router link.static final StringKey used to hold the state in a navigation message.static final StringKey holding the node in messages sent from the client.static final StringName of the $server property that is used to track pending promises.static final StringKey used to hold the name of the synchronized property.static final StringKey used to hold the value of the synchronized property.static final StringType value for events sent from the client to an event handler published on the server.static final StringKey used to hold the argument values for server side method call.static final StringKey used to hold the server side method name in template event messages sent from the client.static final StringKey used to hold the promise id for a server side method call.static final StringKey holding the type in of messages sent from the client.static final StringRPC type value used for return channel messages.static final StringType value for events sent from the client.static final StringType value for model map synchronizations sent from the client.static final StringType value for navigation events from the client.static final StringToken used as an event data expression to represent that properties should be synchronized.static final StringKey used for data related toPage.executeJs(String, Object...)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 toPage.executeJs(String, Object...)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.- See Also:
-
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.- See Also:
-
RPC_ATTACH_EXISTING_ELEMENT_BY_ID
Type value for attach existing element server callback.- See Also:
-
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 representingDebouncePhase.LEADING.- See Also:
-
EVENT_PHASE_INTERMEDIATE
Character used for representingDebouncePhase.INTERMEDIATE.- See Also:
-
EVENT_PHASE_TRAILING
Character used for representingDebouncePhase.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 toevent.targetor 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()
-