Class OsddHelper

java.lang.Object
org.codelibs.fess.helper.OsddHelper

public class OsddHelper extends Object
Helper class for Open Search Description Document.
  • Field Details

    • osddPath

      protected String osddPath
      The OSDD file path.
    • encoding

      protected String encoding
      The encoding for OSDD file.
    • contentType

      protected String contentType
      The content type for OSDD response.
    • osddFile

      protected File osddFile
      The OSDD file.
  • Constructor Details

    • OsddHelper

      public OsddHelper()
      Default constructor.
  • Method Details

    • init

      @PostConstruct public void init()
      Initializes the OSDD helper.
    • getOsddFile

      protected File getOsddFile()
      Gets the OSDD file.
      Returns:
      the OSDD file
    • isOsddLinkEnabled

      protected boolean isOsddLinkEnabled()
      Checks if OSDD link is enabled.
      Returns:
      true if OSDD link is enabled
    • hasOpenSearchFile

      public boolean hasOpenSearchFile()
      Checks if the OpenSearch file exists.
      Returns:
      true if the OpenSearch file exists
    • asStream

      public org.lastaflute.web.response.StreamResponse asStream()
      Returns the OSDD as a stream response.
      Returns:
      the stream response
    • setOsddPath

      public void setOsddPath(String osddPath)
      Sets the OSDD path.
      Parameters:
      osddPath - the OSDD path
    • setEncoding

      public void setEncoding(String encoding)
      Sets the encoding.
      Parameters:
      encoding - the encoding
    • setContentType

      public void setContentType(String contentType)
      Sets the content type.
      Parameters:
      contentType - the content type