@ExperimentalApi
public interface RemoteContentBodyConversionService
ContentBodyConversionService
implementation that communicates with Confluence remotely using the Confluence REST api.
Provides future returning equivalents for the methods in ContentBodyConversionService.
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.
|
@Deprecated com.atlassian.util.concurrent.Promise<ContentBody> convert(ContentBody body, ContentRepresentation representation) throws BadRequestException
convertCompletionStage(ContentBody, ContentRepresentation)
instead.body
- the content to convertrepresentation
- the ContentRepresentation
to convert toBadRequestException
- if any validation errors are found during the conversion@Deprecated com.atlassian.util.concurrent.Promise<ContentBody> convert(ContentBody body, ContentRepresentation representation, Expansion... expansions) throws BadRequestException
convertCompletionStage(ContentBody, ContentRepresentation, Expansion...)
instead.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 conversionNotFoundException
- if the contentBody specifies a contentId that does not existCompletionStage<ContentBody> convertCompletionStage(ContentBody body, ContentRepresentation representation) throws BadRequestException
body
- the content to convertrepresentation
- the ContentRepresentation
to convert toBadRequestException
- if any validation errors are found during the conversionCompletionStage<ContentBody> convertCompletionStage(ContentBody body, ContentRepresentation representation, Expansion... expansions) throws BadRequestException
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 conversionNotFoundException
- if the contentBody specifies a contentId that does not existCopyright © 2003–2019 Atlassian. All rights reserved.