Class StorageClientFactory

java.lang.Object
org.codelibs.fess.storage.StorageClientFactory

public final class StorageClientFactory extends Object
Factory for creating appropriate StorageClient based on configuration.
  • Method Details

    • detectStorageType

      public static StorageType detectStorageType(String endpoint)
      Auto-detect storage type from endpoint URL.
      Parameters:
      endpoint - the storage endpoint URL
      Returns:
      detected storage type
    • createClient

      public static StorageClient createClient(org.codelibs.fess.mylasta.direction.FessConfig fessConfig)
      Creates a StorageClient based on FessConfig.
      Parameters:
      fessConfig - the Fess configuration
      Returns:
      configured StorageClient
    • createClient

      public static StorageClient createClient()
      Creates a StorageClient using the default FessConfig.
      Returns:
      configured StorageClient