public class Session extends Object
| Constructor and Description |
|---|
Session(Serializable id) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
asMap()
Returns the session as a
Map representation. |
Object |
get(String key) |
String |
getAlias(String key) |
Set<String> |
getAliasKeys() |
Integer |
getCommitCount() |
String |
getCurrent() |
Serializable |
getId() |
String |
getMaxTitleLength() |
String |
getPath() |
InterruptSignalHandler |
getSignalHandler() |
String |
getTitleKeys() |
boolean |
has(String key) |
String[] |
keys() |
Object |
remove(String key)
Removes a value from the session.
|
void |
removeAlias(String key) |
void |
set(String key,
Object value)
Sets a session value.
|
void |
setAlias(String key,
String value) |
void |
setCommitCount(int commitCount) |
void |
setCurrent(String value) |
void |
setPath(String path) |
public Session(Serializable id)
public Serializable getId()
public InterruptSignalHandler getSignalHandler()
public void set(String key, Object value) throws ShellException
key - the session key.value - the value.ShellException - if the execution failspublic Object get(String key) throws ShellException
key - the key to get the session value for.key or null if not found.ShellException - if the execution failspublic boolean has(String key)
key - the key to check the session value for.public Object remove(String key) throws ShellException
key - the session key to remove.null if none.ShellException - if the execution failspublic String[] keys()
public Map<String,Object> asMap()
Map representation. Changes in the
returned instance won't be reflected in the session.Map.public void removeAlias(String key)
public void setPath(String path)
public String getPath()
public void setCurrent(String value)
public String getCurrent()
public Integer getCommitCount()
public void setCommitCount(int commitCount)
public String getTitleKeys() throws ShellException
ShellExceptionpublic String getMaxTitleLength() throws ShellException
ShellExceptionCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.