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() |
Duration |
getTimeout() |
Set<Session.SessionTrackingMode> |
getTrackingModes() |
boolean |
isPersistent() |
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()
public void setTrackingModes(Set<Session.SessionTrackingMode> trackingModes)
public boolean isPersistent()
public void setPersistent(boolean persistent)
public File getStoreDir()
public void setStoreDir(File storeDir)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.