public class CSPSessionManager extends BaseFacesSessionBean implements Serializable
Session
object and getting IRetrieval
module.fExpireWithPageFlow
DATA_BINDING_CLIENTS, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
Constructor and Description |
---|
CSPSessionManager() |
Modifier and Type | Method and Description |
---|---|
void |
connect() |
static CSPSessionManager |
create(String serverName,
String host,
int port,
int streamingPort) |
Session |
createSession(Credentials credentials)
Creates and returns
Session for a given username and password |
void |
disconnect() |
protected void |
finalize() |
static ConversionService |
getConversionService(Session session) |
ConversionService |
getConversionService(String username,
String password) |
Credentials |
getCredentials() |
Session |
getCurrentSession()
Check if session is open and if not create a new Session.
|
String |
getHost() |
static String |
getHost(Session session) |
String |
getImpersonatedUser() |
int |
getPort() |
static RetrievalModule |
getRetrievalModule(Session session) |
RetrievalModule |
getRetrievalModule(String username,
String password) |
static SecurityModule |
getSecurityModule(Session session) |
SecurityModule |
getSecurityModule(String username,
String password) |
String |
getServerName() |
int |
getStreamingPort() |
boolean |
isConnected() |
protected void |
release()
Override this method to release any resources associated with this session.
|
void |
setCredentials(Credentials credentials) |
void |
setHost(String host) |
void |
setImpersonatedUser(String userToImpersonate) |
void |
setPort(int port) |
void |
setServerName(String serverName) |
void |
setStreamingPort(int streamingPort) |
getExpireWithPageFlow, setExpireWithPageFlow, valueBound, valueUnbound
createMethodBinding, createMethodExpression, createValueBinding, createValueExpression, createValueExpression, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
public String getImpersonatedUser()
public void setImpersonatedUser(String userToImpersonate)
public static CSPSessionManager create(String serverName, String host, int port, int streamingPort)
public Session createSession(Credentials credentials) throws AuthenticationException, Exception
Session
for a given username and passwordcredentials
- - used to specify username/passwordSession
object for a given username and passwordException
AuthenticationException
public static RetrievalModule getRetrievalModule(Session session) throws COMM_Exception
COMM_Exception
public RetrievalModule getRetrievalModule(String username, String password) throws AuthenticationException, Exception
AuthenticationException
Exception
public static ConversionService getConversionService(Session session) throws COMM_Exception
COMM_Exception
public ConversionService getConversionService(String username, String password) throws AuthenticationException, Exception
AuthenticationException
Exception
public static SecurityModule getSecurityModule(Session session) throws COMM_Exception
COMM_Exception
public SecurityModule getSecurityModule(String username, String password) throws COMM_Exception, AuthenticationException, Exception
COMM_Exception
AuthenticationException
Exception
protected void release()
BaseFacesSessionBean
release
in class BaseFacesSessionBean
protected void finalize() throws Throwable
public boolean isConnected()
public Session getCurrentSession() throws Exception
Exception
public Credentials getCredentials()
public void setCredentials(Credentials credentials)
public String getServerName()
public String getHost()
public static String getHost(Session session) throws COMM_Exception
COMM_Exception
public int getPort()
public int getStreamingPort()
public void setServerName(String serverName)
public void setHost(String host)
public void setPort(int port)
public void setStreamingPort(int streamingPort)