I have and DefaultSmppClient connected to an SMSC that delegate pdu received to an SmppSessionHandler.
I would like to "qualify" those received Pdu with the SmppSession.
ie: I would like to do in the SmppSessionHandler:
public PduResponse firePduRequestReceived(PduRequest pduRequest) {
pduRequest.setFromSession(theSmppSession);
// do some work
}
For a DefaultSmppServer, i have found how to do that, because there is a SmppSession.serverReady(SmppSessionHandler) method (which is called in the SmppServerHandler.sessionCreated())
But how can i do the same with a DefaultSmppClient ?
It could be great if i can set the SmppSessionHandler after the creation of the session, but before the bind response was sent.
Maybe it could be usefull that SmppSessionHandle "knows" for which SmppSession it handles pdu ?
Hello,
I have and
DefaultSmppClient
connected to an SMSC that delegate pdu received to anSmppSessionHandler
. I would like to "qualify" those received Pdu with theSmppSession
. ie: I would like to do in theSmppSessionHandler
:For a
DefaultSmppServer
, i have found how to do that, because there is aSmppSession.serverReady(SmppSessionHandler)
method (which is called in theSmppServerHandler.sessionCreated()
)But how can i do the same with a
DefaultSmppClient
? It could be great if i can set theSmppSessionHandler
after the creation of the session, but before the bind response was sent.Maybe it could be usefull that
SmppSessionHandle
"knows" for whichSmppSession
it handles pdu ?