SmppSessionWrapper
public class SmppSessionWrapper
Extends: io.netty.channel.SimpleChannelInboundHandler<Pdu>
Implements: io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler
SmppSessionWrapper is a Netty channel handler that acts as a bridge between the network channel and the SMPP session logic. It listens for incoming PDUs and connection-level events, forwarding them to an SmppSessionChannelListener. This class encapsulates how SMPP messages and events from Netty are relayed into the SMPP session pipeline.
This class is internal and part of the transport-layer integration with Netty.
Fields:
NAME
Constructor:
public SmppSessionWrapper(SmppSessionChannelListener listener)
listener: Instance of SmppSessionChannelListener that will be notified on inbound events.
Initializes the handler with a listener that will receive PDU and channel events.
Methods:
void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) | Handles unexpected exceptions during channel operations. Passes the exception to the listener for error handling. |
void channelInactive(ChannelHandlerContext ctx) | Called when the channel becomes inactive (e.g., closed by remote). Triggers listener notification for session cleanup or teardown. |
Both methods override Netty's ChannelInboundHandlerAdapter methods.
Start innovating with Mobius
What's next? Let's talk!