public class ConverterBasedHtmlPreviewAdapter extends AbstractHtmlPreviewAdapter
Modifier and Type | Field and Description |
---|---|
protected static String |
ALLOW_ZIP_PREVIEW |
protected String |
defaultFieldXPath |
protected MimetypeRegistry |
mimeTypeService |
adaptedDoc, previewManager
Constructor and Description |
---|
ConverterBasedHtmlPreviewAdapter() |
Modifier and Type | Method and Description |
---|---|
boolean |
cachable() |
void |
cleanup() |
ConversionService |
getConversionService() |
protected String |
getDefaultPreviewFieldXPath() |
protected static String |
getMimeType(Blob blob) |
String |
getMimeType(File file) |
protected String |
getMimeType(String xpath) |
MimetypeRegistry |
getMimeTypeService() |
List<Blob> |
getPreviewBlobs() |
List<Blob> |
getPreviewBlobs(String xpath) |
protected PreviewAdapterManager |
getPreviewManager() |
boolean |
hasBlobToPreview()
Check if the document holds some blobs that are suitable for preview
|
boolean |
hasPreview(String xpath) |
void |
setDefaultPreviewFieldXPath(String xPath) |
protected void |
setDigest(BlobHolder result) |
protected void |
setMimeType(BlobHolder result) |
getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewBlobs, getFilePreviewURL, getFilePreviewURL, getPreviewTitle, postProcessBlobs, setAdaptedDocument, updateTitleInHtml, updateTitleInHtml
protected String defaultFieldXPath
protected MimetypeRegistry mimeTypeService
protected static final String ALLOW_ZIP_PREVIEW
public ConverterBasedHtmlPreviewAdapter()
public ConversionService getConversionService()
protected PreviewAdapterManager getPreviewManager()
getPreviewManager
in class AbstractHtmlPreviewAdapter
protected static String getMimeType(Blob blob)
protected String getMimeType(String xpath)
protected String getDefaultPreviewFieldXPath()
public void setDefaultPreviewFieldXPath(String xPath)
public List<Blob> getPreviewBlobs() throws PreviewException
getPreviewBlobs
in class AbstractHtmlPreviewAdapter
PreviewException
public boolean hasPreview(String xpath)
public List<Blob> getPreviewBlobs(String xpath) throws PreviewException
getPreviewBlobs
in class AbstractHtmlPreviewAdapter
PreviewException
protected void setMimeType(BlobHolder result)
protected void setDigest(BlobHolder result)
public String getMimeType(File file) throws ConversionException
ConversionException
public MimetypeRegistry getMimeTypeService() throws ConversionException
ConversionException
public void cleanup()
public boolean cachable()
public boolean hasBlobToPreview() throws PreviewException
HtmlPreviewAdapter
PreviewException
Copyright © 2018 Nuxeo. All rights reserved.