com.atlassian.confluence.rest.serialization
Class JsonStringSerializer

java.lang.Object
  extended by org.codehaus.jackson.map.JsonSerializer<T>
      extended by org.codehaus.jackson.map.ser.std.SerializerBase<JsonString>
          extended by com.atlassian.confluence.rest.serialization.JsonStringSerializer
All Implemented Interfaces:
org.codehaus.jackson.schema.SchemaAware

public class JsonStringSerializer
extends org.codehaus.jackson.map.ser.std.SerializerBase<JsonString>

Serializes JsonStrings. Could be implemented via JsonRawValue, but that breaks encapsulation, and we still have to provide the JsonStringDeserializer.

Since:
5.6

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonSerializer
org.codehaus.jackson.map.JsonSerializer.None
 
Field Summary
 
Fields inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
_handledType
 
Constructor Summary
JsonStringSerializer()
           
 
Method Summary
 void serialize(JsonString value, org.codehaus.jackson.JsonGenerator generator, 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
 
Methods inherited from class org.codehaus.jackson.map.JsonSerializer
isUnwrappingSerializer, serializeWithType, unwrappingSerializer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonStringSerializer

public JsonStringSerializer()
Method Detail

serialize

public void serialize(JsonString value,
                      org.codehaus.jackson.JsonGenerator generator,
                      org.codehaus.jackson.map.SerializerProvider provider)
               throws IOException
Specified by:
serialize in class org.codehaus.jackson.map.ser.std.SerializerBase<JsonString>
Throws:
IOException


Copyright © 2003–2015 Atlassian. All rights reserved.