Package org.ametys.core.util
Class ZonedDateTimeSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<T>
com.fasterxml.jackson.databind.ser.std.StdSerializer<ZonedDateTime>
org.ametys.core.util.ZonedDateTimeSerializer
- All Implemented Interfaces:
JsonFormatVisitable
,SchemaAware
,Serializable
,Component
Serializer for
ZonedDateTime
.
Returns the formatted date for JSON value to ISO 8601 standard format (e.g. 2013-02-28T17:13:50.000+02:00)- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
JsonSerializer.None
-
Field Summary
Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
serialize
(ZonedDateTime value, JsonGenerator jgen, SerializerProvider provider) Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId
-
Field Details
-
ROLE
The Avalon Role
-
-
Constructor Details
-
ZonedDateTimeSerializer
public ZonedDateTimeSerializer()Constructor
-
-
Method Details
-
serialize
public void serialize(ZonedDateTime value, JsonGenerator jgen, SerializerProvider provider) throws IOException - Specified by:
serialize
in classStdSerializer<ZonedDateTime>
- Throws:
IOException
-