Class AttachmentJsonator
java.lang.Object
com.atlassian.confluence.json.jsonator.AttachmentJsonator
- All Implemented Interfaces:
Jsonator<Attachment>
Creates JSON objects for attachments.
Strings are not HTML escaped.
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentJsonator(ContextPathHolder context, ThumbnailManager thumbnailManager) -
Method Summary
Modifier and TypeMethodDescriptionconvert(Attachment attachment) Creates aJsonrepresentation of a given object
-
Constructor Details
-
AttachmentJsonator
-
-
Method Details
-
convert
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
-