Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.preview.adapter.base
Class ConverterBasedHtmlPreviewAdapter

java.lang.Object
  extended by org.nuxeo.ecm.platform.preview.adapter.base.AbstractHtmlPreviewAdapter
      extended by org.nuxeo.ecm.platform.preview.adapter.base.ConverterBasedHtmlPreviewAdapter
All Implemented Interfaces:
HtmlPreviewAdapter

public class ConverterBasedHtmlPreviewAdapter
extends AbstractHtmlPreviewAdapter

Base class for preview based on "on the fly" HTML transformers

Author:
tiry

Constructor Summary
ConverterBasedHtmlPreviewAdapter()
           
 
Method Summary
 boolean cachable()
           
 void cleanup()
           
static ConversionService getConversionService()
           
 String getMimeType(File file)
           
 MimetypeRegistry getMimeTypeService()
           
 List<Blob> getPreviewBlobs()
           
 List<Blob> getPreviewBlobs(String xpath)
           
 void setDefaultPreviewFieldXPath(String xPath)
           
 
Methods inherited from class org.nuxeo.ecm.platform.preview.adapter.base.AbstractHtmlPreviewAdapter
getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewURL, getFilePreviewURL, setAdaptedDocument
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterBasedHtmlPreviewAdapter

public ConverterBasedHtmlPreviewAdapter()
Method Detail

getConversionService

public static ConversionService getConversionService()
                                              throws Exception
Throws:
Exception

setDefaultPreviewFieldXPath

public void setDefaultPreviewFieldXPath(String xPath)

getPreviewBlobs

public List<Blob> getPreviewBlobs()
                           throws PreviewException
Throws:
PreviewException

getPreviewBlobs

public List<Blob> getPreviewBlobs(String xpath)
                           throws PreviewException
Throws:
PreviewException

getMimeType

public String getMimeType(File file)
                   throws ConversionException
Throws:
ConversionException

getMimeTypeService

public MimetypeRegistry getMimeTypeService()
                                    throws ConversionException
Throws:
ConversionException

cleanup

public void cleanup()

cachable

public boolean cachable()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.