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 SummaryFields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteServiceprovider
- 
Constructor SummaryConstructorsConstructorDescriptionRemoteContentBodyConversionServiceImpl(AuthenticatedWebResourceProvider provider, ExecutorService executor) 
- 
Method SummaryModifier and TypeMethodDescriptionconvertCompletionStage(ContentBody body, ContentRepresentation representation) Convert a ContentBody value into another format, performing validation during the conversion.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.AbstractRemoteServiceaddExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfGenericListResponse, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, newExperimentalRestWebTarget, newWebTarget, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postVoidCompletionStage, putCompletionStage, putVoidCompletionStage
- 
Constructor Details- 
RemoteContentBodyConversionServiceImplpublic RemoteContentBodyConversionServiceImpl(AuthenticatedWebResourceProvider provider, ExecutorService executor) - Since:
- 9.0
 
 
- 
- 
Method Details- 
convertCompletionStagepublic CompletionStage<ContentBody> convertCompletionStage(ContentBody body, ContentRepresentation representation) throws BadRequestException Description copied from interface:RemoteContentBodyConversionServiceConvert a ContentBody value into another format, performing validation during the conversion.- Specified by:
- convertCompletionStagein interface- RemoteContentBodyConversionService
- Parameters:
- body- the content to convert
- representation- the- ContentRepresentationto convert to
- Returns:
- the converted body
- Throws:
- BadRequestException- if any validation errors are found during the conversion
 
- 
convertCompletionStagepublic CompletionStage<ContentBody> convertCompletionStage(ContentBody body, ContentRepresentation representation, Expansion... expansions) throws BadRequestException Description copied from interface:RemoteContentBodyConversionServiceConvert a ContentBody value into another format, performing validation during the conversion.- Specified by:
- convertCompletionStagein interface- RemoteContentBodyConversionService
- Parameters:
- body- the content to convert
- representation- the- ContentRepresentationto convert to
- expansions- determins the expansion done on the conversion. This expansion must match the expansions available to- ContentBody. An example expansion string would be- 'webresource'.
- Returns:
- the converted body
- Throws:
- BadRequestException- if any validation errors are found during the conversion
 
 
-