com.vaadin.flow.server.communication.rpc.
Class AbstractRpcInvocationHandler
- java.lang.Object
-
- com.vaadin.flow.server.communication.rpc.AbstractRpcInvocationHandler
-
All Implemented Interfaces:
Direct Known Subclasses:
AttachExistingElementRpcHandler, AttachTemplateChildRpcHandler, EventRpcHandler, MapSyncRpcHandler, PublishedServerEventHandlerRpcHandler, ReturnChannelHandler
public abstract class AbstractRpcInvocationHandler extends Object implements RpcInvocationHandler
Abstract invocation handler implementation with common methods.
For internal use only. May be renamed or removed in a future release.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Constructor and Description AbstractRpcInvocationHandler()
-
Method Summary
All Methods Modifier and Type Method and Description Optional<Runnable>
handle(UI ui, elemental.json.JsonObject invocationJson)
Handles RPC data
invocationJson
usingui
as a context.protected abstract Optional<Runnable>
handleNode(StateNode node, elemental.json.JsonObject invocationJson)
Handle the RPC data
invocationJson
using targetnode
as a context.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.server.communication.rpc.RpcInvocationHandler
getRpcType
-
-
-
-
Method Detail
-
handle
public Optional<Runnable> handle(UI ui, elemental.json.JsonObject invocationJson)
Description copied from interface:
RpcInvocationHandler
Handles RPC data
invocationJson
usingui
as a context.Specified by:
handle
in interfaceRpcInvocationHandler
Parameters:
ui
- the UI to handle against, notnull
invocationJson
- the RPC data to handle, notnull
Returns:
an optional runnable
-
handleNode
protected abstract Optional<Runnable> handleNode(StateNode node, elemental.json.JsonObject invocationJson)
Handle the RPC data
invocationJson
using targetnode
as a context.Parameters:
node
- node to handle invocation with, notnull
invocationJson
- the RPC data to handle, notnull
Returns:
an optional runnable
-
-