Class AttachmentJsonator
- java.lang.Object
-
- 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
Constructors Constructor Description AttachmentJsonator(ContextPathHolder context, ThumbnailManager thumbnailManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Json
convert(Attachment attachment)
Creates aJson
representation of a given object
-
-
-
Constructor Detail
-
AttachmentJsonator
public AttachmentJsonator(ContextPathHolder context, ThumbnailManager thumbnailManager)
-
-
Method Detail
-
convert
public Json convert(Attachment attachment)
Description copied from interface:Jsonator
Creates aJson
representation of a given object- Specified by:
convert
in interfaceJsonator<Attachment>
- Parameters:
attachment
- the object to be serialized- Returns:
- Json JSON representation of the given object
-
-