public class HTMLRenderingEngine extends AbstractRenderingEngine
ContentService
standard transformers into basic, clean
HTML.
The HTML that is produced probably isn't going to be suitable
for direct web publishing, as it's likely going to be too
basic. Instead, it should be simple and clean HTML, suitable
for being the basis of some web-friendly HTML once edited
/ further transformed.AbstractRenderingEngine.RenderingContext
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
static String |
PARAM_BODY_CONTENTS_ONLY
This optional parameter, when set to true, causes only the
contents of the HTML body to be written out as the rendition.
|
static String |
PARAM_IMAGES_SAME_FOLDER
This optional parameter, when set to true, causes any embedded
images to be written into the same folder as the html, with
a name prefix.
|
actionTrackingService, CONTENT_READER_NOT_FOUND_MESSAGE, contentService, DEFAULT_RUN_AS_NAME, mimetypeMap, nodeService, PARAM_ENCODING, PARAM_MIME_TYPE, PARAM_PLACEHOLDER_RESOURCE_PATH, PARAM_RUN_AS, PARAM_SOURCE_CONTENT_PROPERTY, PARAM_TARGET_CONTENT_PROPERTY, PARAM_UPDATE_RENDITIONS_ON_ANY_PROPERTY_CHANGE
actionDefinition, applicableTypes, publicAction
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionService
name
PARAM_RESULT
Constructor and Description |
---|
HTMLRenderingEngine() |
Modifier and Type | Method and Description |
---|---|
protected Collection<ParameterDefinition> |
getParameterDefinitions()
Supplies the list of parameters required by this rendering engine.
|
protected void |
render(AbstractRenderingEngine.RenderingContext context) |
void |
setMetadataExtracterConfig(MetadataExtracterConfig metadataExtracterConfig)
The metadata extracter config.
|
void |
setTikaConfig(org.apache.tika.config.TikaConfig tikaConfig)
Injects the TikaConfig to use
|
addParameterDefinitions, checkActionIsRenditionDefinition, checkParameterValues, checkSourceNodeExists, createActionDefinition, executeImpl, executeImpl, executeRenditionImpl, getCheckedParam, getDefaultRenditionContentProp, getDefaultRenditionNodeType, getExecutionSummary, getParamDisplayLabel, getParamWithDefault, getRenditionContentProperty, getTargetEncoding, getTargetMimeType, notifyCallbackOfException, notifyCallbackOfResult, resolveRenditionLocation, setActionTrackingService, setBehaviourFilter, setContentService, setDefaultRenditionContentProp, setDefaultRenditionNodeType, setMimetypeMap, setNodeService, setRenditionLocationResolver, setRenditionService, switchToFinalRenditionNode, tagSourceNodeAsRenditioned, throwWrappedException
execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, onLogException, setApplicableTypes, setBaseNodeService, setDictionaryService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatus
checkMandatoryProperties, getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toString
setBeanName
public static final String PARAM_BODY_CONTENTS_ONLY
public static final String PARAM_IMAGES_SAME_FOLDER
public static final String NAME
protected Collection<ParameterDefinition> getParameterDefinitions()
AbstractRenderingEngine
getParameterDefinitions
in class AbstractRenderingEngine
public void setTikaConfig(org.apache.tika.config.TikaConfig tikaConfig)
tikaConfig
- The Tika Config to usepublic void setMetadataExtracterConfig(MetadataExtracterConfig metadataExtracterConfig)
protected void render(AbstractRenderingEngine.RenderingContext context)
render
in class AbstractRenderingEngine
Copyright © 2005–2017 Alfresco Software. All rights reserved.