@ExperimentalApi
public interface RemoteContentBodyConversionService
ContentBodyConversionService implementation that communicates with Confluence remotely using the Confluence REST api.
Provides future returning equivalents for the methods in ContentBodyConversionService.
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.util.concurrent.Promise<ContentBody> |
convert(ContentBody body,
ContentRepresentation representation)
Convert a ContentBody value into another format, performing validation during the conversion.
|
com.atlassian.util.concurrent.Promise<ContentBody> |
convert(ContentBody body,
ContentRepresentation representation,
Expansion... expansions)
Convert a ContentBody value into another format, performing validation during the conversion.
|
com.atlassian.util.concurrent.Promise<ContentBody> convert(ContentBody body, ContentRepresentation representation) throws BadRequestException
body - the content to convertrepresentation - the ContentRepresentation to convert toBadRequestException - if any validation errors are found during the conversioncom.atlassian.util.concurrent.Promise<ContentBody> convert(ContentBody body, ContentRepresentation representation, Expansion... expansions) throws BadRequestException
body - the content to convertrepresentation - the ContentRepresentation to convert toexpansions - determins the expansion done on the conversion. This expansion must match the expansions
available to ContentBody. An example expansion string would be 'webresource'.BadRequestException - if any validation errors are found during the conversionNotFoundException - if the contentBody specifies a contentId that does not existCopyright © 2003–2017 Atlassian. All rights reserved.