public interface SessionService
| Modifier and Type | Method and Description |
|---|---|
Session |
createSession(String cert,
String mandator,
long timeout,
String sessionId,
Map<String,String> params)
Creates a session to handle resources
|
boolean |
destroy(String cert,
String mandatorId,
String sessionId)
Destroys a session
|
boolean |
exists(String mandatorId,
String sessionId)
Returns true if the session is available.
|
Session |
getSession(String cert,
String mandatorId,
String sessionId)
Gets a session or null if the session doesn't exist.
|
org.osgi.framework.ServiceReference<?>[] |
getSessionReference(String mandatorId,
String sessionId)
Gets the session references of the matching sessions
|
Session createSession(String cert, String mandator, long timeout, String sessionId, Map<String,String> params) throws SessionException
cert - The string to authenticatemandator - The mandator of the sessiontimeout - The timeout of the sessionsessionId - The id of the session, if the sessionId is null a new id is created.params - The parameter of the session to be put to the service registry (not the session)SessionException - If the session can't be created.SessionAlreadyExistsException - If the sessionId exists.Session getSession(String cert, String mandatorId, String sessionId)
cert - The string to authenticatemandatorId - The mandator of the sessionsessionId - The id of the sessionorg.osgi.framework.ServiceReference<?>[] getSessionReference(String mandatorId, String sessionId)
mandatorId - The id of the mandator (optional)sessionId - The id of the session (optional)boolean exists(String mandatorId, String sessionId)
Returns true if the session is available.
Note: If the sessionId is '0' the mandator id is not optional.
mandatorId - The id of the mandator (optional)sessionId - The id of the sessionCopyright © 2015. All rights reserved.