Package org.codelibs.fess.storage
Class StorageClientFactory
java.lang.Object
org.codelibs.fess.storage.StorageClientFactory
Factory for creating appropriate StorageClient based on configuration.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StorageClientCreates a StorageClient using the default FessConfig.static StorageClientcreateClient(org.codelibs.fess.mylasta.direction.FessConfig fessConfig) Creates a StorageClient based on FessConfig.static StorageTypedetectStorageType(String endpoint) Auto-detect storage type from endpoint URL.
-
Method Details
-
detectStorageType
Auto-detect storage type from endpoint URL.- Parameters:
endpoint- the storage endpoint URL- Returns:
- detected storage type
-
createClient
Creates a StorageClient based on FessConfig.- Parameters:
fessConfig- the Fess configuration- Returns:
- configured StorageClient
-
createClient
Creates a StorageClient using the default FessConfig.- Returns:
- configured StorageClient
-