Class RemoteContentBodyConversionServiceImpl
- java.lang.Object
-
- com.atlassian.confluence.rest.client.AbstractRemoteService<ContentBodyConversionService>
-
- com.atlassian.confluence.rest.client.RemoteContentBodyConversionServiceImpl
-
- All Implemented Interfaces:
RemoteContentBodyConversionService
public class RemoteContentBodyConversionServiceImpl extends AbstractRemoteService<ContentBodyConversionService> implements RemoteContentBodyConversionService
ContentBodyConversionService
implementation that communicates with Confluence remotely.
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider
-
-
Constructor Summary
Constructors Constructor Description RemoteContentBodyConversionServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
Deprecated.since 8.8RemoteContentBodyConversionServiceImpl(AuthenticatedWebResourceProvider provider, ExecutorService executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, deleteFuture, deleteFuture, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFutureOptional, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, postVoidCompletionStage, putCompletionStage, putFuture
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.rest.client.RemoteContentBodyConversionService
convert, convert
-
-
-
-
Constructor Detail
-
RemoteContentBodyConversionServiceImpl
public RemoteContentBodyConversionServiceImpl(AuthenticatedWebResourceProvider provider, ExecutorService executor)
- Since:
- 8.8
-
RemoteContentBodyConversionServiceImpl
@Deprecated public RemoteContentBodyConversionServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
Deprecated.since 8.8
-
-
Method Detail
-
convertCompletionStage
public CompletionStage<ContentBody> convertCompletionStage(ContentBody body, ContentRepresentation representation) throws BadRequestException
Description copied from interface:RemoteContentBodyConversionService
Convert a ContentBody value into another format, performing validation during the conversion.- Specified by:
convertCompletionStage
in interfaceRemoteContentBodyConversionService
- Parameters:
body
- the content to convertrepresentation
- theContentRepresentation
to convert to- Returns:
- the converted body
- Throws:
BadRequestException
- if any validation errors are found during the conversion
-
convertCompletionStage
public CompletionStage<ContentBody> convertCompletionStage(ContentBody body, ContentRepresentation representation, Expansion... expansions) throws BadRequestException
Description copied from interface:RemoteContentBodyConversionService
Convert a ContentBody value into another format, performing validation during the conversion.- Specified by:
convertCompletionStage
in interfaceRemoteContentBodyConversionService
- Parameters:
body
- the content to convertrepresentation
- theContentRepresentation
to convert toexpansions
- determins the expansion done on the conversion. This expansion must match the expansions available toContentBody
. An example expansion string would be'webresource'
.- Returns:
- the converted body
- Throws:
BadRequestException
- if any validation errors are found during the conversion
-
-