|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.rest.resources.ContentBodyResource
public class ContentBodyResource
Used for converting ContentBody objects from one format to another.
| Constructor Summary | |
|---|---|
ContentBodyResource(ContentBodyConversionService service)
|
|
| Method Summary | |
|---|---|
ContentBody |
convert(ContentBody body,
ContentRepresentation toRepresentation)
Converts between content body representations. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentBodyResource(ContentBodyConversionService service)
| Method Detail |
|---|
@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 |
body - the body to convert fromtoRepresentation - the representation to convert to
ServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||