Class ContentBodyResource


  • public class ContentBodyResource
    extends Object
    Used for converting ContentBody objects from one format to another.
    • Method Detail

      • convert

        @PublicApi
        public ContentBody convert​(ContentBody body,
                                   ContentRepresentation toRepresentation,
                                   String expand)
                            throws ServiceException

        Converts between content body representations.

        Not all representations can be converted to/from other formats. Supported conversions:

        Source RepresentationDestination Representation Supported
        storageview,export_view,styled_view,editor
        editorstorage
        viewNone
        export_viewNone
        styled_viewNone

        Example request URI(s):

        • http://example.com/confluence/rest/api/contentbody/convert/view
        Parameters:
        body - the body to convert from
        toRepresentation - the representation to convert to
        Returns:
        the representation
        Throws:
        ServiceException