com.atlassian.confluence.plugins.restapi.resources
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentBodyResource
public ContentBodyResource(ContentBodyConversionService service)
convert
@PublicApi
public ContentBody convert(ContentBody body,
ContentRepresentation toRepresentation)
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,editor |
editor | storage |
view | None |
export_view | None |
Example request URI(s):
http://example.com/rest/api/contentbody/convert/view
- Parameters:
body
- the body to convert fromtoRepresentation
- the representation to convert to
- Returns:
- the representation
- Throws:
ServiceException
Copyright © 2003–2015 Atlassian. All rights reserved.