public int getMaxInactiveInterval() { checkValid(); return (int)(_maxIdleMs/1000); }
public boolean isNew() throws IllegalStateException { checkValid(); return _newSession; }
@Override public boolean isNew() throws IllegalStateException { checkValid(); return _newSession; }
public Object getAttribute(String name) { synchronized (this) { checkValid(); return _attributes.get(name); } }
public int getAttributes() { synchronized (this) { checkValid(); return _attributes.size(); } }
@Deprecated public HttpSessionContext getSessionContext() throws IllegalStateException { checkValid(); return AbstractSessionManager.__nullSessionContext; }
public int getAttributes() { synchronized (this) { checkValid(); return _attributes.size(); } }
public Object getAttribute(String name) { synchronized (this) { checkValid(); return _attributes.get(name); } }
@Deprecated @Override public HttpSessionContext getSessionContext() throws IllegalStateException { checkValid(); return AbstractSessionManager.__nullSessionContext; }
public Object getAttribute(String name) { synchronized (this) { checkValid(); return _attributes.get(name); } }
@Deprecated @Override public HttpSessionContext getSessionContext() throws IllegalStateException { checkValid(); return AbstractSessionManager.__nullSessionContext; }
public int getAttributes() { synchronized (this) { checkValid(); return _attributes.size(); } }
@Deprecated public HttpSessionContext getSessionContext() throws IllegalStateException { checkValid(); return AbstractSessionManager.__nullSessionContext; }
public Object getAttribute(String name) { synchronized (this) { checkValid(); return _attributes.get(name); } }
@Deprecated public HttpSessionContext getSessionContext() throws IllegalStateException { checkValid(); return AbstractSessionManager.__nullSessionContext; }
@SuppressWarnings({ "unchecked" }) public Enumeration<String> getAttributeNames() { synchronized (this) { checkValid(); List<String> names=_attributes==null?Collections.EMPTY_LIST:new ArrayList<String>(_attributes.keySet()); return Collections.enumeration(names); } }
protected void checkValid() { if (_hashSessionManager._idleSavePeriodMs!=0) deIdle(); super.checkValid(); }
@Override public Enumeration<String> getAttributeNames() { synchronized (this) { checkValid(); return doGetAttributeNames(); } }
protected void checkValid() { if (_hashSessionManager._idleSavePeriodMs!=0) deIdle(); super.checkValid(); }
@Override public void invalidate() throws IllegalStateException { checkValid(); // remove session from context and invalidate other sessions with same ID. _manager.removeSession(this,true); doInvalidate(); }