Class AbstractHtmlPreviewAdapter
java.lang.Object
org.nuxeo.ecm.platform.preview.adapter.base.AbstractHtmlPreviewAdapter
- All Implemented Interfaces:
HtmlPreviewAdapter
- Direct Known Subclasses:
ConverterBasedHtmlPreviewAdapter
,PreprocessedHtmlPreviewAdapter
Abstract base class for PreviewAdapters
- Author:
- tiry
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFilePreviewBlobs
(boolean postProcess) getFilePreviewBlobs
(String xpath) getFilePreviewBlobs
(String xpath, boolean postProcess) getFilePreviewURL
(String xpath) getPreviewBlobs
(String xpath) protected PreviewAdapterManager
protected String
postProcessBlobs
(List<Blob> blobs) void
protected void
updateTitleInHtml
(File file) protected String
updateTitleInHtml
(String htmlContent) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.platform.preview.api.HtmlPreviewAdapter
cachable, cleanup, hasBlobToPreview, hasPreview
-
Field Details
-
adaptedDoc
-
-
Constructor Details
-
AbstractHtmlPreviewAdapter
public AbstractHtmlPreviewAdapter()
-
-
Method Details
-
getPreviewManager
-
setAdaptedDocument
- Specified by:
setAdaptedDocument
in interfaceHtmlPreviewAdapter
-
getFilePreviewURL
- Specified by:
getFilePreviewURL
in interfaceHtmlPreviewAdapter
-
getFilePreviewURL
- Specified by:
getFilePreviewURL
in interfaceHtmlPreviewAdapter
-
updateTitleInHtml
-
updateTitleInHtml
- Throws:
IOException
-
getPreviewTitle
-
getFilePreviewBlobs
- Specified by:
getFilePreviewBlobs
in interfaceHtmlPreviewAdapter
- Throws:
PreviewException
-
getFilePreviewBlobs
- Specified by:
getFilePreviewBlobs
in interfaceHtmlPreviewAdapter
- Throws:
PreviewException
-
getFilePreviewBlobs
- Specified by:
getFilePreviewBlobs
in interfaceHtmlPreviewAdapter
- Throws:
PreviewException
-
getPreviewBlobs
- Throws:
PreviewException
-
getFilePreviewBlobs
- Specified by:
getFilePreviewBlobs
in interfaceHtmlPreviewAdapter
- Throws:
PreviewException
-
getPreviewBlobs
- Throws:
PreviewException
-
postProcessBlobs
- Throws:
PreviewException
-