Olá Pessoal!
Alguém pode explicar o código abaixo.
Tenho uma página jsp q tem a seguinte declaração:
boolean crivoPF = ((TesteServerControler)session.getAttribute("sessionDT")).getSession().getOperatorCompany().isCrivoPF();
classe: TesteServerControler
public class TesteServerControler{
private ITesteTotalServer server;
private String sessionID = "";
public TesteServerControler(ITesteTotalServer server) {
this.server = server;
}
public void login(String operatorCompanyName, String userName, String password, int userType) throws InvalidLoginException, DatabaseException, RemoteException, TestetotalException {
sessionID = server.login(operatorCompanyName, userName, password, userType);
}
public void logout() throws RemoteException {
server.logout(sessionID);
}
public void shutdown() throws AccessDeniedException, RemoteException {
server.shutdown();
}
public Session getSession() throws InvalidLoginException, RemoteException{
return server.getSession(sessionID);
}
public Remote getServiceToTrace(String serviceName) throws ServiceNotFoundException, ServiceNotInitializedException, InvalidLoginException, RemoteException{
return server.getService(sessionID, serviceName, false);
}
public Remote getService(String serviceName) throws ServiceNotFoundException, ServiceNotInitializedException, InvalidLoginException, RemoteException{
return server.getService(sessionID, serviceName, true);
}
public Remote getService(Class serviceInterface) throws ServiceNotFoundException, ServiceNotInitializedException, InvalidLoginException, RemoteException{
return server.getService(sessionID, serviceInterface);
}
public String getSessionID() {
return this.sessionID;
}
public String getServerVersion() throws RemoteException {
return server.getServerVersion();
}
public com.testebrasil.testetotal.util.Date getDate() throws RemoteException, TestetotalException {
return server.getDate();
}
public String getTesteTotalHomePath() throws RemoteException, TestetotalException {
return server.getTesteTotalHomePath();
}
public Collection listAllConnections() throws RemoteException, TestetotalException, InvalidSessionException, AccessDeniedException {
return server.listAllConnections(this.sessionID);
}
public MonitorServerInfo getServerInfo() throws RemoteException
{
return server.getServerInfo();
}
public Collection<CacheEntry> getCaches() throws RemoteException {
return server.getCaches();
}
}
Agradeço desde já.
