Class PublishedServerEventHandlerRpcHandler
java.lang.Object
com.vaadin.flow.server.communication.rpc.AbstractRpcInvocationHandler
com.vaadin.flow.server.communication.rpc.PublishedServerEventHandlerRpcHandler
- All Implemented Interfaces:
RpcInvocationHandler
,Serializable
RPC handler for events triggered through
element.$server
or
simply $server
in template event handlers.
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
allowInert
(UI ui, elemental.json.JsonObject invocationJson) Specifies whether inert status should be ignored for an RPC invocation or not.Gets unique RPC type which this handler is applicable for.handleNode
(StateNode node, elemental.json.JsonObject invocationJson) Handle the RPC datainvocationJson
using targetnode
as a context.Methods inherited from class com.vaadin.flow.server.communication.rpc.AbstractRpcInvocationHandler
getNodeId, handle
-
Constructor Details
-
PublishedServerEventHandlerRpcHandler
public PublishedServerEventHandlerRpcHandler()
-
-
Method Details
-
getRpcType
Description copied from interface:RpcInvocationHandler
Gets unique RPC type which this handler is applicable for.- Returns:
- the unique rpc type
-
allowInert
Description copied from class:AbstractRpcInvocationHandler
Specifies whether inert status should be ignored for an RPC invocation or not. The default behaviour is to let the polling events be handled, while ignoring other requests.- Overrides:
allowInert
in classAbstractRpcInvocationHandler
- Parameters:
ui
- the UI instance that RPC invocation originated from.invocationJson
- the JsonObject containing invocation properties.- Returns:
- a boolean indicating that the inert status should be ignored for the current invocation or not.
-
handleNode
Description copied from class:AbstractRpcInvocationHandler
Handle the RPC datainvocationJson
using targetnode
as a context.- Specified by:
handleNode
in classAbstractRpcInvocationHandler
- Parameters:
node
- node to handle invocation with, notnull
invocationJson
- the RPC data to handle, notnull
- Returns:
- an optional runnable
-