Class InboundClientHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<EslMessage>
com.bytedesk.call.esl.client.internal.AbstractEslClientHandler
com.bytedesk.call.esl.client.inbound.InboundClientHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
End users of the inbound
Client should not need to use this class.
Specialised AbstractEslClientHandler that implements the connection logic for an
'Inbound' FreeSWITCH Event Socket connection. The responsibilities for this class are:
- To handle the auth request that the FreeSWITCH server will send immediately following a new connection when mode is Inbound.
-
To signal the observing
IEslProtocolListener(expected to be the Inbound client implementation) when ESL events are received.
ExecutionHandler is placed in the processing
pipeline prior to this handler. This will ensure that each incoming message is processed in its
own thread (although still guaranteed to be processed in the order of receipt).-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
FieldsFields inherited from class com.bytedesk.call.esl.client.internal.AbstractEslClientHandler
LINE_TERMINATOR, MESSAGE_TERMINATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleAuthRequest(io.netty.channel.ChannelHandlerContext ctx) protected voidprotected voidhandleEslEvent(io.netty.channel.ChannelHandlerContext ctx, EslEvent event) Methods inherited from class com.bytedesk.call.esl.client.internal.AbstractEslClientHandler
channelRead0, exceptionCaught, handleEslMessage, sendApiMultiLineCommand, sendApiSingleLineCommand, sendBackgroundApiCommand, sendSyncApiCommandMethods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
password
-
listener
-
-
Constructor Details
-
InboundClientHandler
-
-
Method Details
-
handleEslEvent
- Specified by:
handleEslEventin classAbstractEslClientHandler
-
handleAuthRequest
protected void handleAuthRequest(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
handleAuthRequestin classAbstractEslClientHandler
-
handleDisconnectionNotice
protected void handleDisconnectionNotice()- Specified by:
handleDisconnectionNoticein classAbstractEslClientHandler
-