public class ShServerSubscriptionActivityImpl extends DiameterActivityImpl implements ShServerSubscriptionActivity, org.jdiameter.api.app.StateChangeListener<org.jdiameter.api.app.AppSession>
ShServerSubscriptionActivity,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected AuthSessionStateType |
authSessionState |
protected DataReferenceType[] |
dataReferenceType |
protected ShServerMessageFactoryImpl |
messageFactory |
protected DiameterIdentity |
remoteHost |
protected DiameterIdentity |
remoteRealm |
protected org.jdiameter.api.sh.ServerShSession |
serverSession |
protected DiameterShAvpFactory |
shAvpFactory |
protected ArrayList<DiameterMessageImpl> |
stateMessages
Should contain requests, so we can create answer.
|
protected UserIdentityAvp |
userIdentity |
avpFactory, baseListener, destinationHost, destinationRealm, eventListener, handle, logger, session, sessionId, terminateAfterProcessing| Constructor and Description |
|---|
ShServerSubscriptionActivityImpl(ShServerMessageFactory shServerMessageFactory,
DiameterShAvpFactory diameterShAvpFactory,
org.jdiameter.api.sh.ServerShSession session,
DiameterIdentity destinationHost,
DiameterIdentity destinationRealm) |
doSendMessage, equals, getActivityHandle, getDiameterAvpFactory, getDiameterMessageFactory, getSessionId, getSessionListener, hashCode, isTerminateAfterProcessing, isValid, sendMessage, sendSyncMessage, setAvpFactory, setCurrentWorkingSession, setEventListener, setMessageFactory, setSessionListener, setTerminateAfterProcessingclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetDiameterAvpFactory, getDiameterMessageFactory, getSessionId, sendMessageprotected transient org.jdiameter.api.sh.ServerShSession serverSession
protected transient DiameterShAvpFactory shAvpFactory
protected transient ShServerMessageFactoryImpl messageFactory
protected UserIdentityAvp userIdentity
protected DataReferenceType[] dataReferenceType
protected AuthSessionStateType authSessionState
protected DiameterIdentity remoteRealm
protected DiameterIdentity remoteHost
protected ArrayList<DiameterMessageImpl> stateMessages
public ShServerSubscriptionActivityImpl(ShServerMessageFactory shServerMessageFactory, DiameterShAvpFactory diameterShAvpFactory, org.jdiameter.api.sh.ServerShSession session, DiameterIdentity destinationHost, DiameterIdentity destinationRealm)
public PushNotificationRequest createPushNotificationRequest()
createPushNotificationRequest in interface ShServerSubscriptionActivitypublic SubscribeNotificationsAnswer createSubscribeNotificationsAnswer(long resultCode, boolean isExperimentalResult)
createSubscribeNotificationsAnswer in interface ShServerSubscriptionActivitypublic SubscribeNotificationsAnswer createSubscribeNotificationsAnswer()
createSubscribeNotificationsAnswer in interface ShServerSubscriptionActivitypublic ProfileUpdateAnswer createProfileUpdateAnswer(long resultCode, boolean isExperimentalResult)
createProfileUpdateAnswer in interface ShServerSubscriptionActivitypublic UserDataAnswer createUserDataAnswer(byte[] userData)
createUserDataAnswer in interface ShServerSubscriptionActivitypublic UserDataAnswer createUserDataAnswer(long resultCode, boolean isExperimentalResult)
createUserDataAnswer in interface ShServerSubscriptionActivitypublic UserDataAnswer createUserDataAnswer()
createUserDataAnswer in interface ShServerSubscriptionActivitypublic ProfileUpdateAnswer createProfileUpdateAnswer()
createProfileUpdateAnswer in interface ShServerSubscriptionActivitypublic void sendPushNotificationRequest(PushNotificationRequest message) throws IOException
sendPushNotificationRequest in interface ShServerSubscriptionActivityIOExceptionpublic void sendUserDataAnswer(UserDataAnswer message) throws IOException
sendUserDataAnswer in interface ShServerSubscriptionActivityIOExceptionpublic void sendProfileUpdateAnswer(ProfileUpdateAnswer message) throws IOException
sendProfileUpdateAnswer in interface ShServerSubscriptionActivityIOExceptionpublic void sendSubscribeNotificationsAnswer(SubscribeNotificationsAnswer message) throws IOException
sendSubscribeNotificationsAnswer in interface ShServerSubscriptionActivityIOExceptionpublic void stateChanged(org.jdiameter.api.app.AppSession arg0,
Enum oldState,
Enum newState)
stateChanged in interface org.jdiameter.api.app.StateChangeListener<org.jdiameter.api.app.AppSession>public void stateChanged(Enum oldState, Enum newState)
stateChanged in interface org.jdiameter.api.app.StateChangeListener<org.jdiameter.api.app.AppSession>public void fetchSessionData(DiameterMessage msg, boolean incoming)
public void endActivity()
endActivity in interface DiameterActivityendActivity in class DiameterActivityImplpublic void setSession(org.jdiameter.api.sh.ServerShSession session)
public DiameterShAvpFactory getServerAvpFactory()
getServerAvpFactory in interface ShServerSubscriptionActivitypublic ShServerMessageFactory getServerMessageFactory()
getServerMessageFactory in interface ShServerSubscriptionActivitypublic void setServerAvpFactory(DiameterShAvpFactory shAvpFactory)
public void setServerMessageFactory(ShServerMessageFactory messageFactory)
Copyright © 2016. All Rights Reserved.