org.mobicents.slee.resource.diameter.sh.server.handlers
Class ShServerSessionFactory

java.lang.Object
  extended by org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl
      extended by org.mobicents.slee.resource.diameter.sh.server.handlers.ShServerSessionFactory
All Implemented Interfaces:
org.jdiameter.api.app.StateChangeListener<org.jdiameter.api.app.AppSession>, org.jdiameter.api.sh.ClientShSessionListener, org.jdiameter.api.sh.ServerShSessionListener, org.jdiameter.common.api.app.IAppSessionFactory, org.jdiameter.common.api.app.sh.IShMessageFactory, org.jdiameter.common.api.app.sh.IShSessionFactory

public class ShServerSessionFactory
extends org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl

Start time:18:16:01 2009-01-06
Project: mobicents-diameter-parent

Author:
Bartosz Baranowski , Alexandre Mendonca

Field Summary
protected  DiameterShServerResourceAdaptor ra
           
 
Fields inherited from class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl
applicationId, clientShSessionListener, logger, messageFactory, messageTimeout, serverShSessionListener, sessionDataFactory, sessionDataSource, sessionFactory, stateChangeListener
 
Constructor Summary
ShServerSessionFactory(org.jdiameter.api.SessionFactory sessionFactory, DiameterShServerResourceAdaptor diameterShServerResourceAdaptor)
           
 
Method Summary
 org.jdiameter.api.app.AppAnswerEvent createProfileUpdateAnswer(org.jdiameter.api.Answer answer)
           
 org.jdiameter.api.app.AppRequestEvent createProfileUpdateRequest(org.jdiameter.api.Request request)
           
 org.jdiameter.api.app.AppAnswerEvent createPushNotificationAnswer(org.jdiameter.api.Answer answer)
           
 org.jdiameter.api.app.AppRequestEvent createPushNotificationRequest(org.jdiameter.api.Request request)
           
 org.jdiameter.api.app.AppAnswerEvent createSubscribeNotificationsAnswer(org.jdiameter.api.Answer answer)
           
 org.jdiameter.api.app.AppRequestEvent createSubscribeNotificationsRequest(org.jdiameter.api.Request request)
           
 org.jdiameter.api.app.AppAnswerEvent createUserDataAnswer(org.jdiameter.api.Answer answer)
           
 org.jdiameter.api.app.AppRequestEvent createUserDataRequest(org.jdiameter.api.Request request)
           
 void doOtherEvent(org.jdiameter.api.app.AppSession appSession, org.jdiameter.api.app.AppRequestEvent request, org.jdiameter.api.app.AppAnswerEvent answer)
           
 void doProfileUpdateRequestEvent(org.jdiameter.api.sh.ServerShSession appSession, org.jdiameter.api.sh.events.ProfileUpdateRequest request)
           
 void doPushNotificationAnswerEvent(org.jdiameter.api.sh.ServerShSession appSession, org.jdiameter.api.sh.events.PushNotificationRequest request, org.jdiameter.api.sh.events.PushNotificationAnswer answer)
           
 void doSubscribeNotificationsRequestEvent(org.jdiameter.api.sh.ServerShSession appSession, org.jdiameter.api.sh.events.SubscribeNotificationsRequest request)
           
 void doUserDataRequestEvent(org.jdiameter.api.sh.ServerShSession appSession, org.jdiameter.api.sh.events.UserDataRequest request)
           
 long getApplicationId()
           
 long getMessageTimeout()
           
 org.jdiameter.api.app.AppSession getNewSession(java.lang.String sessionId, java.lang.Class<? extends org.jdiameter.api.app.AppSession> aClass, org.jdiameter.api.ApplicationId applicationId, java.lang.Object[] args)
           
 void stateChanged(org.jdiameter.api.app.AppSession source, java.lang.Enum oldState, java.lang.Enum newState)
           
 void stateChanged(java.lang.Enum oldState, java.lang.Enum newState)
           
 
Methods inherited from class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl
doProfileUpdateAnswerEvent, doPushNotificationRequestEvent, doSubscribeNotificationsAnswerEvent, doUserDataAnswerEvent, getClientShSessionListener, getMessageFactory, getServerShSessionListener, getSession, getStateChangeListener, setClientShSessionListener, setMessageFactory, setServerShSessionListener, setStateChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ra

protected DiameterShServerResourceAdaptor ra
Constructor Detail

ShServerSessionFactory

public ShServerSessionFactory(org.jdiameter.api.SessionFactory sessionFactory,
                              DiameterShServerResourceAdaptor diameterShServerResourceAdaptor)
Method Detail

getNewSession

public org.jdiameter.api.app.AppSession getNewSession(java.lang.String sessionId,
                                                      java.lang.Class<? extends org.jdiameter.api.app.AppSession> aClass,
                                                      org.jdiameter.api.ApplicationId applicationId,
                                                      java.lang.Object[] args)
Specified by:
getNewSession in interface org.jdiameter.common.api.app.IAppSessionFactory
Overrides:
getNewSession in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl

doOtherEvent

public void doOtherEvent(org.jdiameter.api.app.AppSession appSession,
                         org.jdiameter.api.app.AppRequestEvent request,
                         org.jdiameter.api.app.AppAnswerEvent answer)
                  throws org.jdiameter.api.InternalException,
                         org.jdiameter.api.IllegalDiameterStateException,
                         org.jdiameter.api.RouteException,
                         org.jdiameter.api.OverloadException
Specified by:
doOtherEvent in interface org.jdiameter.api.sh.ClientShSessionListener
Specified by:
doOtherEvent in interface org.jdiameter.api.sh.ServerShSessionListener
Overrides:
doOtherEvent in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

doProfileUpdateRequestEvent

public void doProfileUpdateRequestEvent(org.jdiameter.api.sh.ServerShSession appSession,
                                        org.jdiameter.api.sh.events.ProfileUpdateRequest request)
                                 throws org.jdiameter.api.InternalException,
                                        org.jdiameter.api.IllegalDiameterStateException,
                                        org.jdiameter.api.RouteException,
                                        org.jdiameter.api.OverloadException
Specified by:
doProfileUpdateRequestEvent in interface org.jdiameter.api.sh.ServerShSessionListener
Overrides:
doProfileUpdateRequestEvent in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

doPushNotificationAnswerEvent

public void doPushNotificationAnswerEvent(org.jdiameter.api.sh.ServerShSession appSession,
                                          org.jdiameter.api.sh.events.PushNotificationRequest request,
                                          org.jdiameter.api.sh.events.PushNotificationAnswer answer)
                                   throws org.jdiameter.api.InternalException,
                                          org.jdiameter.api.IllegalDiameterStateException,
                                          org.jdiameter.api.RouteException,
                                          org.jdiameter.api.OverloadException
Specified by:
doPushNotificationAnswerEvent in interface org.jdiameter.api.sh.ServerShSessionListener
Overrides:
doPushNotificationAnswerEvent in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

doSubscribeNotificationsRequestEvent

public void doSubscribeNotificationsRequestEvent(org.jdiameter.api.sh.ServerShSession appSession,
                                                 org.jdiameter.api.sh.events.SubscribeNotificationsRequest request)
                                          throws org.jdiameter.api.InternalException,
                                                 org.jdiameter.api.IllegalDiameterStateException,
                                                 org.jdiameter.api.RouteException,
                                                 org.jdiameter.api.OverloadException
Specified by:
doSubscribeNotificationsRequestEvent in interface org.jdiameter.api.sh.ServerShSessionListener
Overrides:
doSubscribeNotificationsRequestEvent in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

doUserDataRequestEvent

public void doUserDataRequestEvent(org.jdiameter.api.sh.ServerShSession appSession,
                                   org.jdiameter.api.sh.events.UserDataRequest request)
                            throws org.jdiameter.api.InternalException,
                                   org.jdiameter.api.IllegalDiameterStateException,
                                   org.jdiameter.api.RouteException,
                                   org.jdiameter.api.OverloadException
Specified by:
doUserDataRequestEvent in interface org.jdiameter.api.sh.ServerShSessionListener
Overrides:
doUserDataRequestEvent in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl
Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException

stateChanged

public void stateChanged(java.lang.Enum oldState,
                         java.lang.Enum newState)
Specified by:
stateChanged in interface org.jdiameter.api.app.StateChangeListener<org.jdiameter.api.app.AppSession>
Overrides:
stateChanged in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl

stateChanged

public void stateChanged(org.jdiameter.api.app.AppSession source,
                         java.lang.Enum oldState,
                         java.lang.Enum newState)
Specified by:
stateChanged in interface org.jdiameter.api.app.StateChangeListener<org.jdiameter.api.app.AppSession>
Overrides:
stateChanged in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl

createProfileUpdateAnswer

public org.jdiameter.api.app.AppAnswerEvent createProfileUpdateAnswer(org.jdiameter.api.Answer answer)
Specified by:
createProfileUpdateAnswer in interface org.jdiameter.common.api.app.sh.IShMessageFactory
Overrides:
createProfileUpdateAnswer in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl

createProfileUpdateRequest

public org.jdiameter.api.app.AppRequestEvent createProfileUpdateRequest(org.jdiameter.api.Request request)
Specified by:
createProfileUpdateRequest in interface org.jdiameter.common.api.app.sh.IShMessageFactory
Overrides:
createProfileUpdateRequest in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl

createPushNotificationAnswer

public org.jdiameter.api.app.AppAnswerEvent createPushNotificationAnswer(org.jdiameter.api.Answer answer)
Specified by:
createPushNotificationAnswer in interface org.jdiameter.common.api.app.sh.IShMessageFactory
Overrides:
createPushNotificationAnswer in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl

createPushNotificationRequest

public org.jdiameter.api.app.AppRequestEvent createPushNotificationRequest(org.jdiameter.api.Request request)
Specified by:
createPushNotificationRequest in interface org.jdiameter.common.api.app.sh.IShMessageFactory
Overrides:
createPushNotificationRequest in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl

createSubscribeNotificationsAnswer

public org.jdiameter.api.app.AppAnswerEvent createSubscribeNotificationsAnswer(org.jdiameter.api.Answer answer)
Specified by:
createSubscribeNotificationsAnswer in interface org.jdiameter.common.api.app.sh.IShMessageFactory
Overrides:
createSubscribeNotificationsAnswer in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl

createSubscribeNotificationsRequest

public org.jdiameter.api.app.AppRequestEvent createSubscribeNotificationsRequest(org.jdiameter.api.Request request)
Specified by:
createSubscribeNotificationsRequest in interface org.jdiameter.common.api.app.sh.IShMessageFactory
Overrides:
createSubscribeNotificationsRequest in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl

createUserDataAnswer

public org.jdiameter.api.app.AppAnswerEvent createUserDataAnswer(org.jdiameter.api.Answer answer)
Specified by:
createUserDataAnswer in interface org.jdiameter.common.api.app.sh.IShMessageFactory
Overrides:
createUserDataAnswer in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl

createUserDataRequest

public org.jdiameter.api.app.AppRequestEvent createUserDataRequest(org.jdiameter.api.Request request)
Specified by:
createUserDataRequest in interface org.jdiameter.common.api.app.sh.IShMessageFactory
Overrides:
createUserDataRequest in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl

getApplicationId

public long getApplicationId()
Specified by:
getApplicationId in interface org.jdiameter.common.api.app.sh.IShMessageFactory
Overrides:
getApplicationId in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl

getMessageTimeout

public long getMessageTimeout()
Specified by:
getMessageTimeout in interface org.jdiameter.common.api.app.sh.IShMessageFactory
Overrides:
getMessageTimeout in class org.jdiameter.common.impl.app.sh.ShSessionFactoryImpl


Copyright © 2011. All Rights Reserved.