Constructor and Description |
---|
Session() |
Session(Map<String,String> data) |
Session(play.api.mvc.Session underlying) |
Modifier and Type | Method and Description |
---|---|
Http.Session |
adding(Map<String,String> values)
Returns a new session with the values from the given map added.
|
Http.Session |
adding(String key,
String value)
Returns a new session with the given key-value pair added.
|
Optional<String> |
apply(String key)
Deprecated.
Deprecated as of 2.8.0. Use
get(String) instead. |
play.api.mvc.Session |
asScala()
Convert this session to a Scala session.
|
Map<String,String> |
data() |
Optional<String> |
get(String key)
Optionally returns the session value associated with a key.
|
Optional<String> |
getOptional(String key)
Deprecated.
Deprecated as of 2.8.0. Renamed to
get(String) . |
Http.Session |
removing(String... keys)
Returns a new session with the given keys removed.
|
public Optional<String> get(String key)
@Deprecated public Optional<String> getOptional(String key)
get(String)
.@Deprecated public Optional<String> apply(String key)
get(String)
instead.public Http.Session removing(String... keys)
public Http.Session adding(String key, String value)
public Http.Session adding(Map<String,String> values)
public play.api.mvc.Session asScala()