use of org.apache.catalina.Session in project Payara by payara.
the class PESessionLocker method getSession.
private Session getSession(ServletRequest request) {
javax.servlet.http.HttpServletRequest httpReq = (javax.servlet.http.HttpServletRequest) request;
javax.servlet.http.HttpSession httpSess = httpReq.getSession(false);
if (httpSess == null) {
return null;
}
String id = httpSess.getId();
Manager mgr = _context.getManager();
Session sess = null;
try {
sess = mgr.findSession(id);
} catch (java.io.IOException ex) {
}
return sess;
}
use of org.apache.catalina.Session in project Payara by payara.
the class ReplicationManagerBase method removeSessionFromManagerCache.
public void removeSessionFromManagerCache(Session session) {
if (_logger.isLoggable(Level.FINE)) {
_logger.fine("in " + this.getClass().getName() + ">>removeSessionFromManagerCache:session = " + session);
}
if (session == null) {
return;
}
Session removed = null;
removed = sessions.remove(session.getIdInternal());
if (removed != null && _logger.isLoggable(Level.FINE)) {
_logger.fine("Remove from manager cache id=" + session.getId());
}
}
use of org.apache.catalina.Session in project Payara by payara.
the class ReplicationStore method loadFromBackingStore.
private Session loadFromBackingStore(String id, String version) throws IOException, ClassNotFoundException, BackingStoreException {
SimpleMetadata metaData = getSimpleMetadataBackingStore().load(id, version);
if (_logger.isLoggable(Level.FINEST)) {
_logger.finest("ReplicationStore>>loadFromBackingStore:id=" + id + ", metaData=" + metaData);
}
Session session = getSession(metaData);
if (_logger.isLoggable(Level.FINEST)) {
_logger.finest("ReplicationStore->Session is " + session);
}
return session;
}
Aggregations