public final class SerializerSessionArgs extends BeanSessionArgs
This object specifies information such as session locale or URI context.
Modifier and Type | Field and Description |
---|---|
static SerializerSessionArgs |
DEFAULT
Default serializer session args.
|
Constructor and Description |
---|
SerializerSessionArgs()
Constructor
|
SerializerSessionArgs(ObjectMap properties,
Method javaMethod,
Locale locale,
TimeZone timeZone,
MediaType mediaType,
HttpPartSchema schema,
Boolean debug,
UriContext uriContext,
Boolean useWhitespace)
Constructor.
|
SerializerSessionArgs(ObjectMap properties,
Method javaMethod,
Locale locale,
TimeZone timeZone,
MediaType mediaType,
UriContext uriContext)
|
Modifier and Type | Method and Description |
---|---|
SerializerSessionArgs |
debug(Boolean debug)
Debug mode.
|
SerializerSessionArgs |
javaMethod(Method javaMethod)
The java method that called this serializer, usually the method in a REST servlet.
|
SerializerSessionArgs |
locale(Locale locale)
The session locale.
|
SerializerSessionArgs |
mediaType(MediaType mediaType)
The session media type.
|
SerializerSessionArgs |
properties(ObjectMap properties)
Session-level properties.
|
SerializerSessionArgs |
timeZone(TimeZone timeZone)
The session timezone.
|
SerializerSessionArgs |
uriContext(UriContext uriContext)
The URI context.
|
SerializerSessionArgs |
useWhitespace(Boolean useWhitespace)
Use-whitespace flag
|
public static final SerializerSessionArgs DEFAULT
public SerializerSessionArgs()
public SerializerSessionArgs(ObjectMap properties, Method javaMethod, Locale locale, TimeZone timeZone, MediaType mediaType, HttpPartSchema schema, Boolean debug, UriContext uriContext, Boolean useWhitespace)
properties
- Session-level properties.
javaMethod
- The java method that called this serializer, usually the method in a REST servlet.
locale
- The session locale.
timeZone
- The session timezone.
mediaType
- The session media type (e.g. schema
- The part schema for the serialized part.
debug
- Enable debug mode for this session.
uriContext
- The URI context.
useWhitespace
- Override the use-whitespace flag on the serializer.@Deprecated public SerializerSessionArgs(ObjectMap properties, Method javaMethod, Locale locale, TimeZone timeZone, MediaType mediaType, UriContext uriContext)
public SerializerSessionArgs javaMethod(Method javaMethod)
javaMethod
- The java method that called this serializer, usually the method in a REST servlet.
public SerializerSessionArgs uriContext(UriContext uriContext)
uriContext
- The URI context.
public SerializerSessionArgs useWhitespace(Boolean useWhitespace)
useWhitespace
- The use-whitespace flag.
public SerializerSessionArgs locale(Locale locale)
BeanSessionArgs
locale
in class BeanSessionArgs
locale
- The session locale.
public SerializerSessionArgs timeZone(TimeZone timeZone)
BeanSessionArgs
timeZone
in class BeanSessionArgs
timeZone
- The session timezone.
public SerializerSessionArgs mediaType(MediaType mediaType)
BeanSessionArgs
mediaType
in class BeanSessionArgs
mediaType
- The session media type (e.g. public SerializerSessionArgs debug(Boolean debug)
BeanSessionArgs
debug
in class BeanSessionArgs
debug
- Debug mode flag.
public SerializerSessionArgs properties(ObjectMap properties)
SessionArgs
properties
in class BeanSessionArgs
properties
- Session-level properties.
Copyright © 2018 Apache. All rights reserved.