public interface SessionFactory
| Modifier and Type | Method and Description |
|---|---|
<T extends AppSession> |
getNewAppSession(ApplicationId applicationId,
Class<? extends AppSession> userSession)
Create new vendor specific application session
Use this method for create specific application sessions
Example: ClientShSession session = factory.getNewSession(appId, ClientShSession.class)
|
<T extends AppSession> |
getNewAppSession(String sessionId,
ApplicationId applicationId,
Class<? extends AppSession> userSession)
Create new vendor specific application session with predefined sessionId, origination host/realm names.
|
RawSession |
getNewRawSession()
Create new raw session instance
|
Session |
getNewSession()
Create new session with new session id
|
Session |
getNewSession(String sessionId)
Create new session with predefined sessionId
You can create special sessions to work on distributed systems
|
String |
getSessionId()
Generates new session id which can be used as argument in
getNewSession(String) or
getNewAppSession(String, ApplicationId, Class). |
String |
getSessionId(String customPart)
See
getSessionId(). |
String getSessionId()
getNewSession(String) or
getNewAppSession(String, ApplicationId, Class).String getSessionId(String customPart)
getSessionId(). This method has similar semantics, it adds
custom part to id.customPart - RawSession getNewRawSession() throws InternalException
InternalException - if a error occursSession getNewSession() throws InternalException
InternalException - if a error occursSession getNewSession(String sessionId) throws InternalException
sessionId - instance of sessionInternalException - if a error occurs<T extends AppSession> T getNewAppSession(ApplicationId applicationId, Class<? extends AppSession> userSession) throws InternalException
applicationId - predefined application iduserSession - A Class defining an interface that the result must implement.InternalException - if a error occurs<T extends AppSession> T getNewAppSession(String sessionId, ApplicationId applicationId, Class<? extends AppSession> userSession) throws InternalException
sessionId - instance of sessionapplicationId - predefined application iduserSession - A Class defining an interface that the result must implement.InternalException - if a error occursCopyright © 2016. All Rights Reserved.