Class TikaServerConfig

java.lang.Object
org.apache.tika.server.core.TikaServerConfig

public class TikaServerConfig extends Object
  • Field Details

    • DEFAULT_PORT

      public static final int DEFAULT_PORT
      See Also:
    • DEFAULT_HOST

      public static final String DEFAULT_HOST
      See Also:
    • LOG_LEVELS

      public static final Set<String> LOG_LEVELS
    • DEFAULT_FORKED_STARTUP_MILLIS

      public static final long DEFAULT_FORKED_STARTUP_MILLIS
      Number of milliseconds to wait for forked process to startup
      See Also:
  • Constructor Details

    • TikaServerConfig

      public TikaServerConfig()
  • Method Details

    • load

      public static TikaServerConfig load()
      Config with only the defaults
    • load

      public static TikaServerConfig load(org.apache.commons.cli.CommandLine commandLine) throws IOException, TikaException
      Throws:
      IOException
      TikaException
    • getPort

      public int getPort()
    • setPort

      public void setPort(int port)
    • getIdBase

      public String getIdBase()
    • isEnableUnsecureFeatures

      public boolean isEnableUnsecureFeatures()
    • setEnableUnsecureFeatures

      public void setEnableUnsecureFeatures(boolean enableUnsecureFeatures)
    • getHost

      public String getHost()
    • setHost

      public void setHost(String host)
    • getLogLevel

      public String getLogLevel()
    • setLogLevel

      public void setLogLevel(String level) throws TikaConfigException
      Throws:
      TikaConfigException
    • getCors

      public String getCors()
      Returns:
      the origin url for cors, can be "*"
    • setCors

      public void setCors(String cors)
    • hasConfigFile

      public boolean hasConfigFile()
    • getConfigPath

      public Path getConfigPath()
    • setConfigPath

      public void setConfigPath(String path)
    • getDigestMarkLimit

      public int getDigestMarkLimit()
    • setDigestMarkLimit

      public void setDigestMarkLimit(int digestMarkLimit)
    • getDigest

      public String getDigest()
      digest configuration string, e.g. md5 or sha256, alternately w 16 or 32 encoding, e.g. md5:32,sha256:16 would result in two digests per file
      Returns:
    • setDigest

      public void setDigest(String digest)
    • isReturnStackTrace

      public boolean isReturnStackTrace()
    • setReturnStackTrace

      public void setReturnStackTrace(boolean returnStackTrace)
    • getTlsConfig

      public TlsConfig getTlsConfig()
    • setTlsConfig

      public void setTlsConfig(TlsConfig tlsConfig)
    • getEndpoints

      public ArrayList<String> getEndpoints()
    • setEndpoints

      public void setEndpoints(ArrayList<String> endpoints)
    • getId

      public String getId()
    • setId

      public void setId(String id)