/** * Session from a request. * * @param request */ protected Session (HttpServletRequest request) { super(JDBCSessionManager.this,request); int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (System.currentTimeMillis() + maxInterval*1000L)); _virtualHost = JDBCSessionManager.getVirtualHost(_context); _canonicalContext = canonicalize(_context.getContextPath()); _lastNode = getSessionIdManager().getWorkerName(); }
/** * Session from a request. * * @param request the request */ protected Session (HttpServletRequest request) { super(JDBCSessionManager.this,request); int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (System.currentTimeMillis() + maxInterval*1000L)); _virtualHost = JDBCSessionManager.getVirtualHost(_context); _canonicalContext = canonicalize(_context.getContextPath()); _lastNode = getSessionIdManager().getWorkerName(); }
/** * Session from a request. * * @param request */ protected Session (HttpServletRequest request) { super(JDBCSessionManager.this,request); int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (System.currentTimeMillis() + maxInterval*1000L)); _virtualHost = JDBCSessionManager.getVirtualHost(_context); _canonicalContext = canonicalize(_context.getContextPath()); _lastNode = getSessionIdManager().getWorkerName(); }
/** * Entry to session. * Called by SessionHandler on inbound request and the session already exists in this node's memory. * * @see org.eclipse.jetty.server.session.AbstractSession#access(long) */ @Override protected boolean access(long time) { synchronized (this) { if (super.access(time)) { int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (time + maxInterval*1000L)); return true; } return false; } }
/** * Entry to session. * Called by SessionHandler on inbound request and the session already exists in this node's memory. * * @see org.eclipse.jetty.server.session.AbstractSession#access(long) */ @Override protected boolean access(long time) { synchronized (this) { if (super.access(time)) { int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (time + maxInterval*1000L)); return true; } return false; } }
/** * Entry to session. * Called by SessionHandler on inbound request and the session already exists in this node's memory. * * @see org.eclipse.jetty.server.session.AbstractSession#access(long) */ @Override protected boolean access(long time) { synchronized (this) { if (super.access(time)) { int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (time + maxInterval*1000L)); return true; } return false; } }
/** * Entry to session. * Called by SessionHandler on inbound request and the session already exists in this node's memory. * * @see org.eclipse.jetty.server.session.AbstractSession#access(long) */ @Override protected boolean access(long time) { if (super.access(time)) { _data.setLastAccessed(_data.getAccessed()); _data.setAccessed(time); int maxInterval=getMaxInactiveInterval(); _data.setExpiryTime(maxInterval <= 0 ? 0 : (time + maxInterval*1000L)); return true; } return false; }
/** * Entry to session. * Called by SessionHandler on inbound request and the session already exists in this node's memory. * * @see org.eclipse.jetty.server.session.AbstractSession#access(long) */ @Override protected boolean access(long time) { synchronized (this) { if (super.access(time)) { int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (time + maxInterval*1000L)); return true; } return false; } }
/** * Entry to session. * Called by SessionHandler on inbound request and the session already exists in this node's memory. * * @see org.eclipse.jetty.server.session.AbstractSession#access(long) */ @Override protected boolean access(long time) { synchronized (this) { if (super.access(time)) { int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (time + maxInterval*1000L)); return true; } return false; } }
/** * Entry to session. * Called by SessionHandler on inbound request and the session already exists in this node's memory. * * @see org.eclipse.jetty.server.session.AbstractSession#access(long) */ @Override protected boolean access(long time) { synchronized (this) { if (super.access(time)) { int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (time + maxInterval*1000L)); return true; } return false; } }
/** * Entry to session. * Called by SessionHandler on inbound request and the session already exists in this node's memory. * * @see org.eclipse.jetty.server.session.AbstractSession#access(long) */ @Override protected boolean access(long time) { synchronized (this) { if (super.access(time)) { int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (time + maxInterval*1000L)); return true; } return false; } }
/** * Entry to session. * Called by SessionHandler on inbound request and the session already exists in this node's memory. * * @see org.eclipse.jetty.server.session.AbstractSession#access(long) */ @Override protected boolean access(long time) { if (super.access(time)) { _data.setLastAccessed(_data.getAccessed()); _data.setAccessed(time); int maxInterval=getMaxInactiveInterval(); _data.setExpiryTime(maxInterval <= 0 ? 0 : (time + maxInterval*1000L)); return true; } return false; }
/** * Session from a request. * * @param request */ protected Session (HttpServletRequest request) { super(JDBCSessionManager.this,request); _data = new SessionData(getClusterId(),getAttributeMap()); if (_dftMaxIdleSecs>0) _data.setMaxIdleMs(_dftMaxIdleSecs*1000L); _data.setCanonicalContext(canonicalize(_context.getContextPath())); _data.setVirtualHost(getVirtualHost(_context)); int maxInterval=getMaxInactiveInterval(); _data.setExpiryTime(maxInterval <= 0 ? 0 : (System.currentTimeMillis() + maxInterval*1000L)); }
/** * Session from a request. * * @param request */ protected Session (HttpServletRequest request) { super(JDBCSessionManager.this,request); _data = new SessionData(getClusterId(),getAttributeMap()); if (_dftMaxIdleSecs>0) _data.setMaxIdleMs(_dftMaxIdleSecs*1000L); _data.setCanonicalContext(canonicalize(_context.getContextPath())); _data.setVirtualHost(getVirtualHost(_context)); int maxInterval=getMaxInactiveInterval(); _data.setExpiryTime(maxInterval <= 0 ? 0 : (System.currentTimeMillis() + maxInterval*1000L)); }
/** * Session from a request. * * @param request */ protected Session (HttpServletRequest request) { super(JDBCSessionManager.this,request); int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (System.currentTimeMillis() + maxInterval*1000L)); _virtualHost = JDBCSessionManager.getVirtualHost(_context); _canonicalContext = canonicalize(_context.getContextPath()); _lastNode = getSessionIdManager().getWorkerName(); }
/** * Session from a request. * * @param request */ protected Session (HttpServletRequest request) { super(JDBCSessionManager.this,request); int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (System.currentTimeMillis() + maxInterval*1000L)); _virtualHost = JDBCSessionManager.getVirtualHost(_context); _canonicalContext = canonicalize(_context.getContextPath()); _lastNode = getSessionIdManager().getWorkerName(); }
/** * Session from a request. * * @param request */ protected Session (HttpServletRequest request) { super(JDBCSessionManager.this,request); int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (System.currentTimeMillis() + maxInterval*1000L)); _virtualHost = JDBCSessionManager.getVirtualHost(_context); _canonicalContext = canonicalize(_context.getContextPath()); _lastNode = getSessionIdManager().getWorkerName(); }
/** * Session from a request. * * @param request */ protected Session (HttpServletRequest request) { super(JDBCSessionManager.this,request); int maxInterval=getMaxInactiveInterval(); _expiryTime = (maxInterval <= 0 ? 0 : (System.currentTimeMillis() + maxInterval*1000L)); _virtualHost = JDBCSessionManager.getVirtualHost(_context); _canonicalContext = canonicalize(_context.getContextPath()); _lastNode = getSessionIdManager().getWorkerName(); }
@Override public String toString () { return "Session rowId="+_rowId+",id="+getId()+",lastNode="+_lastNode+ ",created="+getCreationTime()+",accessed="+getAccessed()+ ",lastAccessed="+getLastAccessedTime()+",cookieSet="+_cookieSet+ ",maxInterval="+getMaxInactiveInterval()+",lastSaved="+_lastSaved+",expiry="+_expiryTime; } }
@Override public String toString () { return "Session rowId="+_rowId+",id="+getId()+",lastNode="+_lastNode+ ",created="+getCreationTime()+",accessed="+getAccessed()+ ",lastAccessed="+getLastAccessedTime()+",cookieSet="+getCookieSetTime()+ ",maxInterval="+getMaxInactiveInterval()+",lastSaved="+_lastSaved+",expiry="+_expiryTime; } }