Class ContentBodyResource
- java.lang.Object
-
- com.atlassian.confluence.plugins.restapi.resources.ContentBodyResource
-
public class ContentBodyResource extends Object
Used for converting ContentBody objects from one format to another.
-
-
Constructor Summary
Constructors Constructor Description ContentBodyResource(ContentBodyConversionService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentBody
convert(ContentBody body, ContentRepresentation toRepresentation, String expand)
Converts between content body representations.
-
-
-
Constructor Detail
-
ContentBodyResource
public ContentBodyResource(ContentBodyConversionService service)
-
-
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 Representation Destination Representation Supported storage view,export_view,styled_view,editor editor storage view None export_view None styled_view None Example request URI(s):
http://example.com/confluence/rest/api/contentbody/convert/view
- Parameters:
body
- the body to convert fromtoRepresentation
- the representation to convert to- Returns:
- the representation
- Throws:
ServiceException
-
-