Class NavigationRpcHandler
- java.lang.Object
-
- com.vaadin.flow.server.communication.rpc.NavigationRpcHandler
-
- All Implemented Interfaces:
RpcInvocationHandler,Serializable
public class NavigationRpcHandler extends Object implements RpcInvocationHandler
RPC handler for Navigation.For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
JsonConstants.RPC_TYPE_NAVIGATION, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NavigationRpcHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRpcType()Gets unique RPC type which this handler is applicable for.Optional<Runnable>handle(UI ui, elemental.json.JsonObject invocationJson)Handles RPC datainvocationJsonusinguias a context.
-
-
-
Method Detail
-
getRpcType
public String getRpcType()
Description copied from interface:RpcInvocationHandlerGets unique RPC type which this handler is applicable for.- Specified by:
getRpcTypein interfaceRpcInvocationHandler- Returns:
- the unique rpc type
-
handle
public Optional<Runnable> handle(UI ui, elemental.json.JsonObject invocationJson)
Description copied from interface:RpcInvocationHandlerHandles RPC datainvocationJsonusinguias a context.- Specified by:
handlein interfaceRpcInvocationHandler- Parameters:
ui- the UI to handle against, notnullinvocationJson- the RPC data to handle, notnull- Returns:
- an optional runnable
-
-