Class EmptyResultHandler

java.lang.Object
dev.tachyonmcp.core.server.handlers.EmptyResultHandler
All Implemented Interfaces:
RpcMethodHandler
Direct Known Subclasses:
PingHandler

public class EmptyResultHandler extends Object implements RpcMethodHandler
  • Constructor Details

    • EmptyResultHandler

      public EmptyResultHandler(String methodName)
  • Method Details

    • method

      public String method()
      Description copied from interface: RpcMethodHandler
      The JSON-RPC method name this handler dispatches to.
      Specified by:
      method in interface RpcMethodHandler
      Returns:
      the method name
    • handle

      public Object handle(DispatchContext context, Object params)
      Description copied from interface: RpcMethodHandler
      Handles the method and returns the result to serialize as JSON-RPC response.
      Specified by:
      handle in interface RpcMethodHandler
      Parameters:
      context - the dispatch context with server and outbound stream access
      params - the method parameters, or null
      Returns:
      the result to serialize