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 |
---|---|
SessionArgs |
debug(Boolean value)
Debug mode.
|
Object |
getProperty(String key)
Returns a property on this session.
|
SessionArgs |
locale(Locale value)
The session locale.
|
SessionArgs |
mediaType(MediaType value)
The session media type.
|
SessionArgs |
properties(OMap value)
Session-level properties.
|
SessionArgs |
property(String key,
Object value)
Adds a property to this session.
|
SessionArgs |
timeZone(TimeZone value)
The session timezone.
|
OMap |
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 debug(Boolean value)
Enables the following additional information during parsing:
If not specified, defaults to Context.CONTEXT_debug
.
value
- The new value for this property.
public SessionArgs locale(Locale value)
Specifies the default locale for serializer and parser sessions.
If not specified, defaults to Context.CONTEXT_locale
.
value
- The new value for this property.
public SessionArgs mediaType(MediaType value)
Specifies the default media type value for serializer and parser sessions.
If not specified, defaults to Context.CONTEXT_mediaType
.
value
- The new value for this property.
public SessionArgs timeZone(TimeZone value)
Specifies the default timezone for serializer and parser sessions.
If not specified, defaults to Context.CONTEXT_timeZone
.
value
- The new value for this property.
public SessionArgs properties(OMap 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 OMap toMap()
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.