Class McpToolApprovalService.WebSocketServerListener

java.lang.Object
io.meeds.mcp.server.service.McpToolApprovalService.WebSocketServerListener
All Implemented Interfaces:
EventListener, org.cometd.bayeux.Bayeux.BayeuxListener, org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener, org.cometd.bayeux.server.ServerChannel.MessageListener
Enclosing class:
McpToolApprovalService

public class McpToolApprovalService.WebSocketServerListener extends Object implements org.cometd.bayeux.server.ServerChannel.MessageListener
Reads card answers published by the chat on McpToolApprovalService.COMETD_CHANNEL.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener

    org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener.Weak
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onMessage(org.cometd.bayeux.server.ServerSession from, org.cometd.bayeux.server.ServerChannel channel, org.cometd.bayeux.server.ServerMessage.Mutable message)
    Parses an answer message and records it; any other message is ignored.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.cometd.bayeux.server.ServerChannel.MessageListener

    onMessage
  • Constructor Details

    • WebSocketServerListener

      public WebSocketServerListener()
  • Method Details

    • onMessage

      public boolean onMessage(org.cometd.bayeux.server.ServerSession from, org.cometd.bayeux.server.ServerChannel channel, org.cometd.bayeux.server.ServerMessage.Mutable message)
      Parses an answer message and records it; any other message is ignored.
      Specified by:
      onMessage in interface org.cometd.bayeux.server.ServerChannel.MessageListener
      Parameters:
      from - the sending CometD session
      channel - the channel
      message - the message
      Returns:
      true when the message was an answer