public final class SerializerSessionArgs extends BeanSessionArgs
This object specifies information such as session locale or URI context.
DEFAULT
Constructor and Description |
---|
SerializerSessionArgs()
Constructor
|
SerializerSessionArgs(ObjectMap properties,
Method javaMethod,
Locale locale,
TimeZone timeZone,
MediaType mediaType,
UriContext uriContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public SerializerSessionArgs()
public SerializerSessionArgs(ObjectMap properties, Method javaMethod, Locale locale, TimeZone timeZone, MediaType mediaType, UriContext uriContext)
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. uriContext
- The URI context.
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 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 properties(ObjectMap properties)
SessionArgs
properties
in class BeanSessionArgs
properties
- Session-level properties.
Copyright © 2018 Apache. All rights reserved.