Class AmiClientConnectionHandler
java.lang.Object
com.siperf.amistream.connection.both.handler.AmiMessageHandler
com.siperf.amistream.connection.client.AmiClientConnectionHandler
- Direct Known Subclasses:
EventMessageFilter
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 Summary
FieldsModifier and TypeFieldDescriptionprotected ClientConnectionTheClientConnectionrepresenting the client connection associated with this handler.protected ClientManagerTheClientManagerresponsible for managing client connections.Fields inherited from class com.siperf.amistream.connection.both.handler.AmiMessageHandler
log -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAmiClientConnectionHandler(String name, ClientConnection clientConnection) Constructs a newAmiClientConnectionHandler. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsend(AmiMessage amiMessage) Sends an AMI message to the client through theClientConnection.Methods inherited from class com.siperf.amistream.connection.both.handler.AmiMessageHandler
getName, isAcceptable, processAmiMessage
-
Field Details
-
clientConnection
TheClientConnectionrepresenting the client connection associated with this handler. -
clientManager
TheClientManagerresponsible for managing client connections.
-
-
Constructor Details
-
AmiClientConnectionHandler
Constructs a newAmiClientConnectionHandler.- Parameters:
name- the name of the handler, typically used for logging or identification purposes.clientConnection- theClientConnectionthat will be used to communicate with the client.
-
-
Method Details
-
send
Sends an AMI message to the client through theClientConnection.- Parameters:
amiMessage- theAmiMessageto be sent to the client.
-