|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdiameter.client.impl.SessionFactoryImpl
public class SessionFactoryImpl
Implementation for ISessionFactory
| Field Summary | |
|---|---|
protected static UIDGenerator |
uid
|
| Constructor Summary | |
|---|---|
SessionFactoryImpl(IContainer stack)
|
|
| Method Summary | ||
|---|---|---|
IAppSessionFactory |
getAppSessionFactory(java.lang.Class<? extends AppSession> sessionClass)
Retrieves the app session factory associated with an app session class |
|
IContainer |
getContainer()
|
|
|
getNewAppSession(ApplicationId applicationId,
java.lang.Class<? extends AppSession> aClass)
|
|
|
getNewAppSession(java.lang.String sessionId,
ApplicationId applicationId,
java.lang.Class<? extends AppSession> aClass)
|
|
|
getNewAppSession(java.lang.String sessionId,
ApplicationId applicationId,
java.lang.Class<? extends AppSession> aClass,
java.lang.Object... args)
Method used for creating a new App Session using the specified class with the desired Application Id and Session Id. |
|
RawSession |
getNewRawSession()
|
|
Session |
getNewSession()
|
|
Session |
getNewSession(java.lang.String sessionId)
|
|
java.lang.String |
getSessionId()
|
|
java.lang.String |
getSessionId(java.lang.String custom)
|
|
void |
registerAppFacory(java.lang.Class<? extends AppSession> sessionClass,
IAppSessionFactory factory)
Registers a new App Session factory. |
|
void |
unRegisterAppFacory(java.lang.Class<? extends AppSession> sessionClass)
Unregisters an existing App Session factory. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static UIDGenerator uid
| Constructor Detail |
|---|
public SessionFactoryImpl(IContainer stack)
| Method Detail |
|---|
public java.lang.String getSessionId(java.lang.String custom)
getSessionId in interface SessionFactorypublic java.lang.String getSessionId()
getSessionId in interface SessionFactory
public RawSession getNewRawSession()
throws InternalException
getNewRawSession in interface SessionFactoryInternalException
public Session getNewSession()
throws InternalException
getNewSession in interface SessionFactoryInternalException
public Session getNewSession(java.lang.String sessionId)
throws InternalException
getNewSession in interface SessionFactoryInternalException
public <T extends AppSession> T getNewAppSession(ApplicationId applicationId,
java.lang.Class<? extends AppSession> aClass)
throws InternalException
getNewAppSession in interface SessionFactoryInternalException
public <T extends AppSession> T getNewAppSession(java.lang.String sessionId,
ApplicationId applicationId,
java.lang.Class<? extends AppSession> aClass)
throws InternalException
getNewAppSession in interface SessionFactoryInternalException
public <T extends AppSession> T getNewAppSession(java.lang.String sessionId,
ApplicationId applicationId,
java.lang.Class<? extends AppSession> aClass,
java.lang.Object... args)
throws InternalException
ISessionFactory
getNewAppSession in interface ISessionFactorysessionId - the session-id for this App Session, if desiredapplicationId - the application id for this sessionaClass - the class of the app session object
InternalException
public void registerAppFacory(java.lang.Class<? extends AppSession> sessionClass,
IAppSessionFactory factory)
ISessionFactory
registerAppFacory in interface ISessionFactorysessionClass - the class of the objects being generated by the factoryfactory - the factory to generate app sessionspublic void unRegisterAppFacory(java.lang.Class<? extends AppSession> sessionClass)
ISessionFactory
unRegisterAppFacory in interface ISessionFactorysessionClass - the class identifier for this factorypublic IAppSessionFactory getAppSessionFactory(java.lang.Class<? extends AppSession> sessionClass)
ISessionFactory
getAppSessionFactory in interface ISessionFactorysessionClass - the class identifier for the desired factory
public IContainer getContainer()
getContainer in interface ISessionFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||