Class AmiClientConnectionHandler

java.lang.Object
com.siperf.amistream.connection.both.handler.AmiMessageHandler
com.siperf.amistream.connection.client.AmiClientConnectionHandler
Direct Known Subclasses:
EventMessageFilter

public abstract class AmiClientConnectionHandler extends AmiMessageHandler
Abstract class responsible for handling the connection to the AMI (Asterisk Manager Interface) client and managing interactions with the client and server.

This class provides common functionality for managing a client connection and sending AMI messages. Concrete subclasses should implement specific handling of incoming AMI messages and client connections.

  • Field Details

  • Constructor Details

    • AmiClientConnectionHandler

      protected AmiClientConnectionHandler(String name, ClientConnection clientConnection)
      Constructs a new AmiClientConnectionHandler.
      Parameters:
      name - the name of the handler, typically used for logging or identification purposes.
      clientConnection - the ClientConnection that will be used to communicate with the client.
  • Method Details

    • send

      protected void send(AmiMessage amiMessage)
      Sends an AMI message to the client through the ClientConnection.
      Parameters:
      amiMessage - the AmiMessage to be sent to the client.