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, java.util.concurrent.ExecutorService executorService)
           
 
Method Summary
 java.util.concurrent.Future<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, deleteFuture, getFutureOption, getFuturePageResponseList, newRestWebResource, postFuture, 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,
                                              java.util.concurrent.ExecutorService executorService)
Method Detail

convert

public java.util.concurrent.Future<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-2013 Atlassian. All Rights Reserved.