public class SessionArgs extends Object
Modifier and Type | Field and Description |
---|---|
static SessionArgs |
DEFAULT
Default empty session arguments.
|
Constructor and Description |
---|
SessionArgs()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
getProperty(String key)
Returns a property on this session.
|
SessionArgs |
properties(ObjectMap value)
Session-level properties.
|
SessionArgs |
property(String key,
Object value)
Adds a property to this session.
|
ObjectMap |
toMap()
Returns the properties defined on this object as a simple map for debugging purposes.
|
String |
toString() |
public static final SessionArgs DEFAULT
public SessionArgs()
public SessionArgs properties(ObjectMap value)
Overrides context-level properties.
value
- The new value for this property.
public SessionArgs property(String key, Object value)
key
- The property key.value
- The property value.public Object getProperty(String key)
key
- The property key.public ObjectMap toMap()
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.