public class BeanSessionArgs extends SessionArgs
Modifier and Type | Field and Description |
---|---|
static BeanSessionArgs |
DEFAULT
Default empty session arguments.
|
Constructor and Description |
---|
BeanSessionArgs()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static BeanSessionArgs |
create()
Static creator method.
|
BeanSessionArgs |
debug(Boolean value)
Debug mode.
|
BeanSessionArgs |
locale(Locale value)
The session locale.
|
BeanSessionArgs |
mediaType(MediaType value)
The session media type.
|
BeanSessionArgs |
properties(OMap value)
Session-level properties.
|
BeanSessionArgs |
property(String key,
Object value)
Adds a property to this session.
|
BeanSessionArgs |
schema(HttpPartSchema value)
HTTP-part schema.
|
BeanSessionArgs |
timeZone(TimeZone value)
The session timezone.
|
OMap |
toMap()
Returns the properties defined on this object as a simple map for debugging purposes.
|
getProperty, toString
public static final BeanSessionArgs DEFAULT
public BeanSessionArgs()
public static BeanSessionArgs create()
BeanSessionArgs
object.public BeanSessionArgs schema(HttpPartSchema value)
Used for schema-based serializers and parsers to define additional formatting.
value
- The new value for this property.
public BeanSessionArgs debug(Boolean value)
SessionArgs
Enables the following additional information during parsing:
If not specified, defaults to Context.CONTEXT_debug
.
debug
in class SessionArgs
value
- The new value for this property.
public BeanSessionArgs locale(Locale value)
SessionArgs
Specifies the default locale for serializer and parser sessions.
If not specified, defaults to Context.CONTEXT_locale
.
locale
in class SessionArgs
value
- The new value for this property.
public BeanSessionArgs mediaType(MediaType value)
SessionArgs
Specifies the default media type value for serializer and parser sessions.
If not specified, defaults to Context.CONTEXT_mediaType
.
mediaType
in class SessionArgs
value
- The new value for this property.
public BeanSessionArgs properties(OMap value)
SessionArgs
Overrides context-level properties.
properties
in class SessionArgs
value
- The new value for this property.
public BeanSessionArgs property(String key, Object value)
SessionArgs
property
in class SessionArgs
key
- The property key.value
- The property value.public BeanSessionArgs timeZone(TimeZone value)
SessionArgs
Specifies the default timezone for serializer and parser sessions.
If not specified, defaults to Context.CONTEXT_timeZone
.
timeZone
in class SessionArgs
value
- The new value for this property.
public OMap toMap()
SessionArgs
toMap
in class SessionArgs
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.