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.
|
com.atlassian.util.concurrent.Promise<ContentBody> |
convertUsingExperimental(ContentBody body,
ContentRepresentation representation,
Expansion... expansions) |
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, deleteFuture, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuture
public RemoteContentBodyConversionServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executorService)
public com.atlassian.util.concurrent.Promise<ContentBody> convert(ContentBody body, ContentRepresentation representation) throws BadRequestException
RemoteContentBodyConversionService
convert
in interface RemoteContentBodyConversionService
body
- 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
RemoteContentBodyConversionService
convert
in interface RemoteContentBodyConversionService
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 conversionpublic com.atlassian.util.concurrent.Promise<ContentBody> convertUsingExperimental(ContentBody body, ContentRepresentation representation, Expansion... expansions)
Copyright © 2003–2015 Atlassian. All rights reserved.