Class DateTimeSerializer
- java.lang.Object
-
- org.codehaus.jackson.map.JsonSerializer<T>
-
- org.codehaus.jackson.map.ser.std.SerializerBase<org.joda.time.DateTime>
-
- com.atlassian.confluence.rest.serialization.DateTimeSerializer
-
- All Implemented Interfaces:
org.codehaus.jackson.schema.SchemaAware
public class DateTimeSerializer extends org.codehaus.jackson.map.ser.std.SerializerBase<org.joda.time.DateTime>
Serializes DateTime to string using the TIME_FORMAT inDates
-
-
Constructor Summary
Constructors Constructor Description DateTimeSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serialize(org.joda.time.DateTime value, org.codehaus.jackson.JsonGenerator jsonGen, org.codehaus.jackson.map.SerializerProvider provider)
-
Methods inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
createObjectNode, createSchemaNode, createSchemaNode, getSchema, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrow
-
-
-
-
Method Detail
-
serialize
public void serialize(org.joda.time.DateTime value, org.codehaus.jackson.JsonGenerator jsonGen, org.codehaus.jackson.map.SerializerProvider provider) throws IOException, org.codehaus.jackson.JsonGenerationException
- Specified by:
serialize
in classorg.codehaus.jackson.map.ser.std.SerializerBase<org.joda.time.DateTime>
- Throws:
IOException
org.codehaus.jackson.JsonGenerationException
-
-