com.atlassian.confluence.rest.client
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.
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService |
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, deleteFuture, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuture |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteContentBodyConversionServiceImpl
public RemoteContentBodyConversionServiceImpl(AuthenticatedWebResourceProvider provider,
com.google.common.util.concurrent.ListeningExecutorService executorService)
convert
public com.atlassian.util.concurrent.Promise<ContentBody> convert(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:
convert
in interface RemoteContentBodyConversionService
- Parameters:
body
- the content to convertrepresentation
- the ContentRepresentation
to convert to
- Returns:
- the converted body
- Throws:
BadRequestException
- if any validation errors are found during the conversion
Copyright © 2003–2015 Atlassian. All rights reserved.