public class RemoteContentBodyConversionServiceImpl extends AbstractRemoteService<ContentBodyConversionService> implements RemoteContentBodyConversionService
ContentBodyConversionService implementation that communicates with Confluence remotely.| Constructor and Description | 
|---|
RemoteContentBodyConversionServiceImpl(AuthenticatedWebResourceProvider provider,
                                      com.google.common.util.concurrent.ListeningExecutorService executorService)  | 
| 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. 
 | 
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, deleteFuture, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuturepublic RemoteContentBodyConversionServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executorService)
public com.atlassian.util.concurrent.Promise<ContentBody> convert(ContentBody body, ContentRepresentation representation) throws BadRequestException
RemoteContentBodyConversionServiceconvert in interface RemoteContentBodyConversionServicebody - the content to convertrepresentation - the ContentRepresentation to convert toBadRequestException - if any validation errors are found during the conversionpublic com.atlassian.util.concurrent.Promise<ContentBody> convert(ContentBody body, ContentRepresentation representation, Expansion... expansions) throws BadRequestException
RemoteContentBodyConversionServiceconvert in interface RemoteContentBodyConversionServicebody - 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 conversionCopyright © 2003–2017 Atlassian. All rights reserved.