public class CSPSessionManager extends BaseFacesSessionBean implements Serializable
COMMProxy.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) |
biz.i2z.client.proxy.COMMProxy.Session |
createSession(Credentials credentials)
Creates and returns
COMMProxy.Session for a given username and password |
void |
disconnect() |
protected void |
finalize() |
static biz.i2z.stubifaces.ConversionService |
getConversionService(biz.i2z.client.proxy.COMMProxy.Session session) |
biz.i2z.stubifaces.ConversionService |
getConversionService(String username,
String password) |
Credentials |
getCredentials() |
biz.i2z.client.proxy.COMMProxy.Session |
getCurrentSession()
Check if session is open and if not create a new Session.
|
String |
getHost() |
static String |
getHost(biz.i2z.client.proxy.COMMProxy.Session session) |
String |
getImpersonatedUser() |
int |
getPort() |
static biz.i2z.stubifaces.RetrievalModule |
getRetrievalModule(biz.i2z.client.proxy.COMMProxy.Session session) |
biz.i2z.stubifaces.RetrievalModule |
getRetrievalModule(String username,
String password) |
static biz.i2z.stubifaces.SecurityModule |
getSecurityModule(biz.i2z.client.proxy.COMMProxy.Session session) |
biz.i2z.stubifaces.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, createValueBinding, 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 biz.i2z.client.proxy.COMMProxy.Session createSession(Credentials credentials) throws biz.i2z.client.proxy.AuthenticationException, Exception
COMMProxy.Session
for a given username and passwordcredentials
- - used to specify username/passwordCOMMProxy.Session
object for a given username and passwordException
biz.i2z.client.proxy.AuthenticationException
public static biz.i2z.stubifaces.RetrievalModule getRetrievalModule(biz.i2z.client.proxy.COMMProxy.Session session) throws biz.i2z.comm.COMM_Exception
biz.i2z.comm.COMM_Exception
public biz.i2z.stubifaces.RetrievalModule getRetrievalModule(String username, String password) throws biz.i2z.client.proxy.AuthenticationException, Exception
biz.i2z.client.proxy.AuthenticationException
Exception
public static biz.i2z.stubifaces.ConversionService getConversionService(biz.i2z.client.proxy.COMMProxy.Session session) throws biz.i2z.comm.COMM_Exception
biz.i2z.comm.COMM_Exception
public biz.i2z.stubifaces.ConversionService getConversionService(String username, String password) throws biz.i2z.client.proxy.AuthenticationException, Exception
biz.i2z.client.proxy.AuthenticationException
Exception
public static biz.i2z.stubifaces.SecurityModule getSecurityModule(biz.i2z.client.proxy.COMMProxy.Session session) throws biz.i2z.comm.COMM_Exception
biz.i2z.comm.COMM_Exception
public biz.i2z.stubifaces.SecurityModule getSecurityModule(String username, String password) throws biz.i2z.comm.COMM_Exception, biz.i2z.client.proxy.AuthenticationException, Exception
biz.i2z.comm.COMM_Exception
biz.i2z.client.proxy.AuthenticationException
Exception
protected void release()
BaseFacesSessionBean
release
in class BaseFacesSessionBean
protected void finalize() throws Throwable
public boolean isConnected()
public biz.i2z.client.proxy.COMMProxy.Session getCurrentSession() throws Exception
Exception
public Credentials getCredentials()
public void setCredentials(Credentials credentials)
public String getServerName()
public String getHost()
public static String getHost(biz.i2z.client.proxy.COMMProxy.Session session) throws biz.i2z.comm.COMM_Exception
biz.i2z.comm.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)