public interface ShClientNotificationActivity
org.jainslee.resources.diameter.sh.PushNotificationRequest
.
This activity is created by the RA upon receipt of a Push-Notification-Request for a subscription that is not
associated with an ShClientSubscriptionActivity
.Modifier and Type | Method and Description |
---|---|
ShMessageFactory |
getMessageFactory()
Get a message factory to create a PushNotificationAnswer and AVPs.
|
void |
sendPushNotificationAnswer(long resultCode,
boolean isExperimentalResultCode)
Convenience method to create and send a PushNotificationAnswer containing a Result-Code or Experimental-Result AVP
populated with the given value.
This is equivalent of calling
ShMessageFactory.createPushNotificationAnswer(long, boolean) followed by
sendPushNotificationAnswer(org.jainslee.resources.diameter.sh.types.v880.PushNotificationAnswer) . |
void |
sendPushNotificationAnswer(PushNotificationAnswer message)
Send a manually-constructed PushNotificationAnswer to the peer that sent the PushNotificationRequest.
|
void |
sendSuccessPushNotificationAnswer()
Convenience method to create and send a PushNotificationAnswer containing a Result-Code set to
DiameterResultCode.DIAMETER_SUCCESS .
This is equivalent of calling ShMessageFactory.createPushNotificationAnswer(long, boolean) with
arguments (DiameterResultCode.DIAMETER_SUCCESS, false) followed by
sendPushNotificationAnswer(org.jainslee.resources.diameter.sh.types.v880.PushNotificationAnswer) . |
ShMessageFactory getMessageFactory()
void sendPushNotificationAnswer(PushNotificationAnswer message) throws SendException
SendException
- if the message could not be sentvoid sendPushNotificationAnswer(long resultCode, boolean isExperimentalResultCode) throws SendException
ShMessageFactory.createPushNotificationAnswer(long, boolean)
followed by
sendPushNotificationAnswer(org.jainslee.resources.diameter.sh.types.v880.PushNotificationAnswer)
.SendException
- if the message could not be sentvoid sendSuccessPushNotificationAnswer() throws SendException
DiameterResultCode.DIAMETER_SUCCESS
.
This is equivalent of calling ShMessageFactory.createPushNotificationAnswer(long, boolean)
with
arguments (DiameterResultCode.DIAMETER_SUCCESS, false) followed by
sendPushNotificationAnswer(org.jainslee.resources.diameter.sh.types.v880.PushNotificationAnswer)
.SendException
- if the message could not be sent