public class Session extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Session.Cookie
Cookie properties.
|
static class |
Session.SessionTrackingMode
Available session tracking modes (mirrors
SessionTrackingMode . |
Constructor and Description |
---|
Session() |
Modifier and Type | Method and Description |
---|---|
Session.Cookie |
getCookie() |
File |
getStoreDir()
Return the directory used to store session data.
|
Duration |
getTimeout() |
Set<Session.SessionTrackingMode> |
getTrackingModes()
Return the
session tracking modes . |
boolean |
isPersistent()
Return whether to persist session data between restarts.
|
void |
setPersistent(boolean persistent) |
void |
setStoreDir(File storeDir) |
void |
setTimeout(Duration timeout) |
void |
setTrackingModes(Set<Session.SessionTrackingMode> trackingModes) |
public Session.Cookie getCookie()
public Duration getTimeout()
public void setTimeout(Duration timeout)
public Set<Session.SessionTrackingMode> getTrackingModes()
session tracking modes
.public void setTrackingModes(Set<Session.SessionTrackingMode> trackingModes)
public boolean isPersistent()
true
to persist session data between restarts.public void setPersistent(boolean persistent)
public File getStoreDir()
public void setStoreDir(File storeDir)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.