com.vaadin.flow.server.communication.rpc.

Interface RpcInvocationHandler

    • Method Summary

      All Methods
      Modifier and Type Method and Description
      String getRpcType()

      Gets unique RPC type which this handler is applicable for.

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

      Handles RPC data invocationJson using ui as a context.

    • Method Detail

      • getRpcType

        String getRpcType()

        Gets unique RPC type which this handler is applicable for.

        Returns:

        the unique rpc type

      • handle

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

        Handles RPC data invocationJson using ui as a context.

        Parameters:

        ui - the UI to handle against, not null

        invocationJson - the RPC data to handle, not null

        Returns:

        an optional runnable