public interface SmppServerHandler
| Modifier and Type | Method and Description |
|---|---|
void |
sessionBindRequested(Long sessionId,
SmppSessionConfiguration sessionConfiguration,
BaseBind bindRequest)
Triggered when a new client connection has been created with this server
and an SMPP bind request has been received.
|
void |
sessionCreated(Long sessionId,
SmppServerSession session,
BaseBindResp preparedBindResponse)
Triggered when a session is in-between a bound state and a processing
state.
|
void |
sessionDestroyed(Long sessionId,
SmppServerSession session)
Triggered when a session is unbound and closed with the client.
|
void sessionBindRequested(Long sessionId, SmppSessionConfiguration sessionConfiguration, BaseBind bindRequest) throws SmppProcessingException
sessionId - The unique numeric identifier assigned to the bind request.
Will be the same value between sessionBindRequested, sessionCreated,
and sessionDestroyed method calls.sessionConfiguration - The session configuration object that will
be associated with this session. Initially prepared to match the
values contained in the bind request.bindRequest - The bind request received from the client.SmppProcessingException - Thrown if the bind fails or should be
rejected. If thrown, a bind response with the SMPP status code
contained in this exception will be generated and returned back to
the client.void sessionCreated(Long sessionId, SmppServerSession session, BaseBindResp preparedBindResponse) throws SmppProcessingException
sessionId - The unique numeric identifier assigned to the bind request.
Will be the same value between sessionBindRequested, sessionCreated,
and sessionDestroyed method calls.session - The server session associated with the bind request and
underlying channel.preparedBindResponse - The prepared bind response that will
eventually be returned to the client when "serverReady" is finally
called on the session.SmppProcessingException - Thrown if the bind fails or should be
rejected. If thrown, a bind response with the SMPP status code
contained in this exception will be generated and returned back to
the client.void sessionDestroyed(Long sessionId, SmppServerSession session)
sessionId - The unique numeric identifier assigned to the bind request.
Will be the same value between sessionBindRequested, sessionCreated,
and sessionDestroyed method calls.session - The server session associated with the bind request and
underlying channel.Copyright © 2009-2014 Cloudhopper by Twitter. All Rights Reserved.