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

public class FessStandardTransformer extends AbstractFessFileTransformer
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.

  • 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:
      getExtractor in class AbstractFessFileTransformer
      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