public abstract class WebSessionFactory<R extends RequestContext> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_httpOnly |
protected boolean |
_isSecure |
protected long |
_maxInactiveTimeMillis |
protected Key |
_sessionKey |
| Constructor and Description |
|---|
WebSessionFactory() |
| Modifier and Type | Method and Description |
|---|---|
WebSession |
createSession() |
WebSession |
createSession(boolean loggedIn) |
WebSession |
createSession(boolean loggedIn,
Map<String,String> vars) |
WebSession |
fromRequestContext(R requestContext) |
abstract String |
getCookieName() |
boolean |
isExpired(R requestContext) |
boolean |
isLoggedIn(R requestContext) |
void |
login(R requestContext,
Map<String,String> vars) |
void |
logout(R requestContext) |
boolean |
shouldLogin(R requestContext) |
boolean |
shouldLogin(WebSession webSession) |
void |
updateSession(R requestContext,
Map<String,String> vars) |
void |
updateSession(R requestContext,
String var,
String value) |
protected Key _sessionKey
protected long _maxInactiveTimeMillis
protected boolean _httpOnly
protected boolean _isSecure
public abstract String getCookieName()
public WebSession createSession()
public WebSession createSession(boolean loggedIn)
public WebSession createSession(boolean loggedIn, Map<String,String> vars)
public void logout(R requestContext)
public boolean isLoggedIn(R requestContext)
public boolean isExpired(R requestContext)
public boolean shouldLogin(R requestContext)
public boolean shouldLogin(WebSession webSession)
public WebSession fromRequestContext(R requestContext)
Copyright © 2017. All rights reserved.