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(ObjectMap 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.
|
ObjectMap |
toMap()
Returns the properties defined on this object as a simple map for debugging purposes.
|
getProperty, toStringpublic static final BeanSessionArgs DEFAULT
public BeanSessionArgs()
public static BeanSessionArgs create()
BeanSessionArgs object.public BeanSessionArgs debug(Boolean value)
Enables the following additional information during parsing:
If not specified, defaults to BeanContext.BEAN_debug.
value - The new value for this property.
public BeanSessionArgs locale(Locale value)
Specifies the default locale for serializer and parser sessions.
If not specified, defaults to BeanContext.BEAN_locale.
value - The new value for this property.
public BeanSessionArgs mediaType(MediaType value)
Specifies the default media type value for serializer and parser sessions.
If not specified, defaults to BeanContext.BEAN_mediaType.
value - The new value for this property.
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 timeZone(TimeZone value)
Specifies the default timezone for serializer and parser sessions.
If not specified, defaults to BeanContext.BEAN_timeZone.
value - The new value for this property.
public BeanSessionArgs properties(ObjectMap value)
SessionArgsOverrides context-level properties.
properties in class SessionArgsvalue - The new value for this property.
public BeanSessionArgs property(String key, Object value)
SessionArgsproperty in class SessionArgskey - The property key.value - The property value.public ObjectMap toMap()
SessionArgstoMap in class SessionArgsCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.