Package org.sonews.storage
Class StorageManager
java.lang.Object
org.sonews.storage.StorageManager
Provides access to a storage backend.
- Since:
- sonews/1.0
- Author:
- Christian Lins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Article
static Article
createArticle
(String headers, byte[] body) static Article
createArticle
(javax.mail.Message msg) static Storage
current()
static void
Disables the current provider.static void
dispose()
static void
enableProvider
(StorageProvider provider) Sets the current storage provider.
-
Constructor Details
-
StorageManager
public StorageManager()
-
-
Method Details
-
createArticle
-
createArticle
-
createArticle
public static Article createArticle(javax.mail.Message msg) throws IOException, javax.mail.MessagingException - Throws:
IOException
javax.mail.MessagingException
-
current
- Throws:
StorageBackendException
-
dispose
public static void dispose() -
enableProvider
Sets the current storage provider.- Parameters:
provider
-
-
disableProvider
public static void disableProvider()Disables the current provider.
-