com.atlassian.confluence.rest.client
Class RemoteContentBodyConversionServiceImpl

java.lang.Object
  extended by com.atlassian.confluence.rest.client.AbstractRemoteService<ContentBodyConversionService>
      extended by 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.


Constructor Summary
RemoteContentBodyConversionServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executorService)
           
 
Method Summary
 com.atlassian.util.concurrent.Promise<ContentBody> convert(ContentBody body, ContentRepresentation representation)
          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, deleteFuture, deleteFuture, getFutureGenericCollection, 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
 

Constructor Detail

RemoteContentBodyConversionServiceImpl

public RemoteContentBodyConversionServiceImpl(AuthenticatedWebResourceProvider provider,
                                              com.google.common.util.concurrent.ListeningExecutorService executorService)
Method Detail

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 convert
representation - the ContentRepresentation to convert to
Returns:
the converted body
Throws:
BadRequestException - if any validation errors are found during the conversion


Copyright © 2003-2014 Atlassian. All Rights Reserved.