Class FessStandardTransformer
java.lang.Object
org.codelibs.fess.crawler.transformer.impl.AbstractTransformer
org.codelibs.fess.crawler.transformer.AbstractFessFileTransformer
org.codelibs.fess.crawler.transformer.FessStandardTransformer
- All Implemented Interfaces:
FessTransformer,org.codelibs.fess.crawler.transformer.Transformer
Standard transformer implementation for the Fess search engine.
This transformer handles document transformation and content extraction using
the standard Fess file transformation process with support for various content types.
It extends AbstractFessFileTransformer to provide file-specific transformation capabilities while using the appropriate extractor for each document type.
-
Field Summary
Fields inherited from class org.codelibs.fess.crawler.transformer.AbstractFessFileTransformer
dataSerializer, fessConfig, metaContentMappingFields inherited from class org.codelibs.fess.crawler.transformer.impl.AbstractTransformer
nameFields inherited from interface org.codelibs.fess.crawler.transformer.FessTransformer
parentEncodingMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.codelibs.fess.crawler.extractor.ExtractorgetExtractor(org.codelibs.fess.crawler.entity.ResponseData responseData) Gets the appropriate extractor for the given response data.org.codelibs.fess.mylasta.direction.FessConfigGets the Fess configuration instance.org.apache.logging.log4j.LoggerGets the logger instance for this transformer.voidinit()Initializes the transformer after dependency injection.Methods inherited from class org.codelibs.fess.crawler.transformer.AbstractFessFileTransformer
addMetaContentMapping, createExtractParams, generateData, getData, getExtractData, getHostOnFile, getLastModified, getResourceName, getRoleTypes, getSiteOnFile, hasTitle, transformMethods inherited from class org.codelibs.fess.crawler.transformer.impl.AbstractTransformer
getName, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codelibs.fess.crawler.transformer.FessTransformer
abbreviateSite, decodeUrlAsName, evaluateValue, getFileName, getHost, getMaxSiteLength, getParentEncoding, getSite, processFieldConfigs, putResultDataBody, putResultDataWithTemplate
-
Constructor Details
-
FessStandardTransformer
public FessStandardTransformer()Default constructor.
-
-
Method Details
-
init
@PostConstruct public void init()Initializes the transformer after dependency injection. Sets up the Fess configuration and data serializer components. -
getFessConfig
public org.codelibs.fess.mylasta.direction.FessConfig getFessConfig()Gets the Fess configuration instance.- Returns:
- the Fess configuration
-
getLogger
public org.apache.logging.log4j.Logger getLogger()Gets the logger instance for this transformer.- Returns:
- the logger instance
-
getExtractor
protected org.codelibs.fess.crawler.extractor.Extractor getExtractor(org.codelibs.fess.crawler.entity.ResponseData responseData) Gets the appropriate extractor for the given response data. Selects an extractor based on the MIME type or falls back to the Tika extractor.- Specified by:
getExtractorin classAbstractFessFileTransformer- Parameters:
responseData- the response data containing the document to extract- Returns:
- the extractor instance for processing the document
- Throws:
FessSystemException- if no suitable extractor can be found
-