You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.server.communication.rpc.

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:

  • Constructor Details

    • NavigationRpcHandler

      public NavigationRpcHandler()
  • Method Details

    • getRpcType

      public String getRpcType()

      Description copied from interface: RpcInvocationHandler

      Gets unique RPC type which this handler is applicable for.

      Specified by:

      getRpcType in interface RpcInvocationHandler

      Returns:

      the unique rpc type

    • handle

      public Optional<Runnable> handle(UI ui, elemental.json.JsonObject invocationJson)

      Description copied from interface: RpcInvocationHandler

      Handles RPC data invocationJson using ui as a context.

      Specified by:

      handle in interface RpcInvocationHandler

      Parameters:

      ui - the UI to handle against, not null

      invocationJson - the RPC data to handle, not null

      Returns:

      an optional runnable