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 Jsonconvert(Attachment attachment)Creates aJsonrepresentation 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:JsonatorCreates aJsonrepresentation of a given object- Specified by:
convertin interfaceJsonator<Attachment>- Parameters:
attachment- the object to be serialized- Returns:
- Json JSON representation of the given object
-
-