com.atlassian.confluence.rest.client
Interface RemoteContentBodyConversionService

All Known Implementing Classes:
RemoteContentBodyConversionServiceImpl

@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.


Method Summary
 com.atlassian.util.concurrent.Promise<ContentBody> convert(ContentBody body, ContentRepresentation representation)
          Convert a ContentBody value into another format, performing validation during the conversion.
 

Method Detail

convert

com.atlassian.util.concurrent.Promise<ContentBody> convert(ContentBody body,
                                                           ContentRepresentation representation)
                                                           throws BadRequestException
Convert a ContentBody value into another format, performing validation during the conversion.

Parameters:
body - the content to convert
representation - the ContentRepresentation to convert to
Returns:
the converted body
Throws:
BadRequestException - if any validation errors are found during the conversion


Copyright © 2003–2015 Atlassian. All rights reserved.