Package org.ametys.core.util
Class LocalDateSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<T>
-
- com.fasterxml.jackson.databind.ser.std.StdSerializer<LocalDate>
-
- org.ametys.core.util.LocalDateSerializer
-
- All Implemented Interfaces:
JsonFormatVisitable
,SchemaAware
,Serializable
,Component
public class LocalDateSerializer extends StdSerializer<LocalDate> implements Component
Serializer forLocalDate
. Returns the formatted date for JSON value to ISO 8601 standard format (e.g. 2013-02-28T17:13:50.000+02:00)- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
JsonSerializer.None
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROLE
The Avalon Role-
Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType
-
-
Constructor Summary
Constructors Constructor Description LocalDateSerializer()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serialize(LocalDate 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
-
-
-
-
Constructor Detail
-
LocalDateSerializer
public LocalDateSerializer()
Constructor
-
-
Method Detail
-
serialize
public void serialize(LocalDate value, JsonGenerator jgen, SerializerProvider provider) throws IOException
- Specified by:
serialize
in classStdSerializer<LocalDate>
- Throws:
IOException
-
-