public class RemoteContentBodyConversionServiceImpl extends AbstractRemoteService<ContentBodyConversionService> implements RemoteContentBodyConversionService
ContentBodyConversionService
implementation that communicates with Confluence remotely.provider
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)
Deprecated.
since 7.0.1. Use
convertCompletionStage(ContentBody, ContentRepresentation) instead. |
com.atlassian.util.concurrent.Promise<ContentBody> |
convert(ContentBody body,
ContentRepresentation representation,
Expansion... expansions)
Deprecated.
since 7.0.1. Use
convertCompletionStage(ContentBody, ContentRepresentation, Expansion...) instead. |
CompletionStage<ContentBody> |
convertCompletionStage(ContentBody body,
ContentRepresentation representation)
Convert a ContentBody value into another format, performing validation during the conversion.
|
CompletionStage<ContentBody> |
convertCompletionStage(ContentBody body,
ContentRepresentation representation,
Expansion... expansions)
Convert a ContentBody value into another format, performing validation during the conversion.
|
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, deleteFuture, deleteFuture, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, putCompletionStage, putFuture
public RemoteContentBodyConversionServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executorService)
@Deprecated public com.atlassian.util.concurrent.Promise<ContentBody> convert(ContentBody body, ContentRepresentation representation) throws BadRequestException
convertCompletionStage(ContentBody, ContentRepresentation)
instead.RemoteContentBodyConversionService
convert
in interface RemoteContentBodyConversionService
body
- the content to convertrepresentation
- the ContentRepresentation
to convert toBadRequestException
- if any validation errors are found during the conversion@Deprecated public com.atlassian.util.concurrent.Promise<ContentBody> convert(ContentBody body, ContentRepresentation representation, Expansion... expansions) throws BadRequestException
convertCompletionStage(ContentBody, ContentRepresentation, Expansion...)
instead.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 CompletionStage<ContentBody> convertCompletionStage(ContentBody body, ContentRepresentation representation) throws BadRequestException
RemoteContentBodyConversionService
convertCompletionStage
in interface RemoteContentBodyConversionService
body
- the content to convertrepresentation
- the ContentRepresentation
to convert toBadRequestException
- if any validation errors are found during the conversionpublic CompletionStage<ContentBody> convertCompletionStage(ContentBody body, ContentRepresentation representation, Expansion... expansions) throws BadRequestException
RemoteContentBodyConversionService
convertCompletionStage
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 conversionCopyright © 2003–2020 Atlassian. All rights reserved.