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, toString
public 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)
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 ObjectMap toMap()
SessionArgs
toMap
in class SessionArgs
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.