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 |
static String |
LOGGED_IN_KEY |
protected long |
maxInactiveTimeMillis |
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() |
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 boolean isSecure
protected boolean isHttpOnly
protected Key sessionKey
protected long maxInactiveTimeMillis
protected String cookieName
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 © 2019. All rights reserved.