public class WebSession extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WebSession.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
cookieName |
protected boolean |
isHttpOnly |
protected boolean |
isSecure |
static String |
LAST_ACTIVE_TIME |
protected long |
lastActiveTimeMillis |
static String |
LOGGED_IN_KEY |
protected long |
maxInactiveTimeMillis |
protected String |
sessionId |
protected Key |
sessionKey |
protected int |
sessionVersion |
protected Map<String,String> |
vars |
| Constructor and Description |
|---|
WebSession() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCookieName() |
long |
getLastActiveTimeMillis() |
long |
getMaxInactiveTimeMillis() |
String |
getSessionId() |
Key |
getSessionKey() |
int |
getSessionVersion() |
String |
getVar(String key) |
Map<String,String> |
getVars() |
boolean |
isExpired() |
boolean |
isHttpOnly() |
boolean |
isLoggedIn() |
boolean |
isSecure() |
javax.servlet.http.Cookie |
toCookie() |
public static final String LOGGED_IN_KEY
public static final String LAST_ACTIVE_TIME
protected int sessionVersion
protected String sessionId
protected boolean isSecure
protected boolean isHttpOnly
protected Key sessionKey
protected long lastActiveTimeMillis
protected long maxInactiveTimeMillis
protected String cookieName
public String getSessionId()
public boolean isLoggedIn()
public int getSessionVersion()
public boolean isSecure()
public boolean isHttpOnly()
public Key getSessionKey()
public long getLastActiveTimeMillis()
public long getMaxInactiveTimeMillis()
public String getCookieName()
public boolean isExpired()
public javax.servlet.http.Cookie toCookie()
Copyright © 2017. All rights reserved.