Class Session
- java.lang.Object
-
- io.vertx.reactivex.ext.shell.session.Session
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<Session>__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Sessioncreate()Create a new empty session.booleanequals(Object o)<T> Tget(String key)Get some data from the sessionSessiongetDelegate()inthashCode()static SessionnewInstance(Session arg)Sessionput(String key, Object obj)Put some data in a session<T> Tremove(String key)Remove some data from the sessionStringtoString()
-
-
-
Method Detail
-
getDelegate
public Session getDelegate()
-
create
public static Session create()
Create a new empty session.- Returns:
- the created session
-
put
public Session put(String key, Object obj)
Put some data in a session- Parameters:
key- the key for the dataobj- the data- Returns:
- a reference to this, so the API can be used fluently
-
get
public <T> T get(String key)
Get some data from the session- Parameters:
key- the key of the data- Returns:
- the data
-
remove
public <T> T remove(String key)
Remove some data from the session- Parameters:
key- the key of the data- Returns:
- the data that was there or null if none there
-
-