com.atlassian.confluence.json.jsonator
Class AttachmentJsonator

java.lang.Object
  extended by com.atlassian.confluence.json.jsonator.AttachmentJsonator
All Implemented Interfaces:
Jsonator<Attachment>

public class AttachmentJsonator
extends Object
implements Jsonator<Attachment>

Creates JSON objects for attachments. Strings are not HTML escaped.


Constructor Summary
AttachmentJsonator(ContextPathHolder context, ThumbnailManager thumbnailManager)
           
 
Method Summary
 Json convert(Attachment attachment)
          Creates a Json representation of a given object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentJsonator

public AttachmentJsonator(ContextPathHolder context,
                          ThumbnailManager thumbnailManager)
Method Detail

convert

public Json convert(Attachment attachment)
Description copied from interface: Jsonator
Creates a Json representation of a given object

Specified by:
convert in interface Jsonator<Attachment>
Parameters:
attachment - the object to be serialized
Returns:
Json JSON representation of the given object


Copyright © 2003-2013 Atlassian. All Rights Reserved.