net.sourceforge.java.feednread.backend.configuration
Class ConfigurationManager

java.lang.Object
  extended bynet.sourceforge.java.feednread.backend.configuration.ConfigurationManager

public class ConfigurationManager
extends Object

Manages and organizes the entire application configuration. The class itself only holds the keys to access the configuration values from the internal data structure in shape of the CONFIG_STORE.

Author:
Sebastian Machhausen

Field Summary
static String ADDRESSBAR_VIEW_KEY
           The key to access the NewsFeedAddressBar visibility: true if visible; false if invisible.
static String ADOPT_REFRESH_INTERVAL_RECURSIVE_KEY
           true if refresh interval setting should be adopted recursively to all Favorites in a Category or false which means that the setting should only be adopted to all Favorites situated directly one level beneath a Category (non recursive)
static String APPLICATION_BUGTRACKER_HOMEPAGE
           The url of the application bug tracker
static String APPLICATION_COPYRIGHT
           The application copyright
static String APPLICATION_FEATURE_REQUEST_HOMEPAGE
           The url of the application feature request tracker
static String APPLICATION_FORUM_HOMEPAGE
           The url of the application forum
static String APPLICATION_HOMEPAGE
           The url of the application homepage
static String APPLICATION_MAILING_LIST_HOMEPAGE
           The url of the application mailing list
static String APPLICATION_NAME
           The application name
static String APPLICATION_TITLE
           The full application title
static String APPLICATION_VERSION
           The application version [x.y.z(status)]
static String ARCHIVE_OPTIONS_KEY
           The key to access the archive options
static String ASK_ON_NEWSFEED_LINK_DETECTION_KEY
           true to ask if a Favorite should be created if a link is detected that potentially points to a NewsFeed.
static String ASK_ON_REMOVE_CATEGORY_KEY
           The flag to decide whether to ask if a Category should be really deleted by the help of an user dialog.
static String ASK_ON_REMOVE_FAVORITE_KEY
           The flag to decide whether to ask if a Favorite should be really deleted by the help of an user dialog.
static String ASK_ON_REMOVE_WATCH_FOLDER_KEY
           The flag to decide whether to ask if a WatchFolder should be really deleted by the help of an user dialog.
static String ASK_ON_REMOVE_WATCH_KEY
           The flag to decide whether to ask if a Watch should be really deleted by the help of an user dialog.
static String AUTHOR_EMAIL
           The author email
static String BROWSER_OPTIONS_KEY
           Key to access the browser options
static String CACHE_OPTIONS_KEY
           The key to access the cache options
static ConfigurationStore CONFIG_STORE
           The ConfigurationStore used to administrate the persistent configuration settings.
static String CONFIGURATION_FILENAME
           The application configuration filename
static String CONNECTION_OPTIONS_KEY
           Key to access the connection options
static String CONNECTION_TIMEOUT_KEY
           Specifies the timeout (in milliseconds) to establish the connection to the host.
static String CONTROL_DIVIDER_OPTIONS_KEY
           The key to access the control divider options
static String CONTROL_OPTIONS_KEY
           The key to access the control options
static String COOLBAR_OPTIONS_KEY
           The key to access the coolbar options
static String COOLBAR_ORDER_KEY
           The CoolBar order
static String COOLBAR_SIZE_KEY
           The CoolBar size
static String COOLBAR_VIEW_KEY
           The key to access the CoolBar visibility: true if visible; false if invisible.
static String COOLBAR_WRAPPING_KEY
           The CoolBar wrapping
static String DEFAULT_ARCHIVE_DIRECTORY_KEY
           The default directory to store archived newsfeeds in
static String DEFAULT_ARCHIVED_FILE_SUFFIX
           The default file suffix of archived newsfeeds
static String DEFAULT_CACHE_DIRECTORY_KEY
           The default directory to cache newsfeeds to
static String DEFAULT_CACHED_FILE_SUFFIX
           The default file suffix of cached newsfeeds
static String DEFAULT_CATEGORY_REFRESH_INTERVAL_KEY
           The default refresh interval for new Categories
static String DEFAULT_CONFGIGURATION_ROOT_KEY
           The default root configuration key
static String DEFAULT_CONFIGURATION_FILENAME
           The application default configuration filename
static String DEFAULT_CONFIGURATION_NAMESPACE
           The default configuration xml namespace
static String DEFAULT_ENCLOSURE_DIRECTORY_KEY
           The default directory to store rss enclosures to
static String DEFAULT_FAVORITE_REFRESH_INTERVAL_KEY
           The default refresh interval for new Favorites
static String DEFAULT_ICON_CACHE_DIRECTORY
           The default directory where newsfeed favorite icons are cached.
static String DEFAULT_ICON_FILE_SUFFIX
           The default file suffix of newsfeed favorite icons.
static String DEFAULT_IMAGE_DIRECTORY
           The default directory where all application images are stored.
static String DEFAULT_NEWSFEED_ADDRESS_BAR_FILE
           The default file to persist the NewsFeedAddressBarContentProvider entries to
static String DEFAULT_NEWSFEED_FAVORITES_FILE
           The default opml file to export the NewsFeedFavoritesTree structure to
static String DEFAULT_NEWSFEED_WATCHES_FILE
           The default file to export the NewsFeedWatchessTree structure to
static String DEFAULT_PODCAST_DIRECTORY_KEY
           The default directory to store rss podcast enclosures to
static String DISPLAY_FAVORITE_ICONS_KEY
           true if individual Favorite icons are displayed; false otherwise, i.e. a default icon is used instead
static String ENCLOSURE_OPTIONS_KEY
           Key to access the enclosure options
static String EXECUTE_ENCLOSURE_AFTER_DOWNLOAD_KEY
           true to automatically execute a downloaded enclosure in its associated application after its download completed.
static String EXTERNAL_BROWSER_PATH
           The path to the external browser executable
static String FAVORITE_OPTIONS_KEY
           The key to access the favorite options
static String GENERAL_OPTIONS_KEY
           The key to access the general options
static String HTTP_KEEP_ALIVE_KEY
           true if http keep alive is enabled; false if disabled.
static String LANGUAGE_KEY
           The language setting as iso2 code which determines the language of the user interface.
static String LANGUAGE_OPTIONS_KEY
           The key to access the language options
static File LICENSE_FILE
           The license file
static String MAIN_VIEW_DIVIDER_RATIO_KEY
           The key to acces the main view divider ratio
static String MARK_ALL_NEWS_READ_ON_CLOSE_TAB
           true if all news of a NewsFeed have to be marked as read when closing a tab; false otherwise
static String MAX_ARCHIVE_ITEM_SIZE_KEY
           The maximum of news items in an archived newsfeed
static String MAX_CONNECTIONS_KEY
           The maximum of parallel connections
static String MAX_LIVE_ARCHIVE_SIZE_KEY
           The maximum live archive size in newsfeeds
static String MAX_LIVE_CACHE_SIZE_KEY
           The maximum live cache size in newsfeeds
static String MAX_PERSISTENT_ARCHIVE_SIZE_KEY
           The maximum archive size in kilobytes
static String MAX_PERSISTENT_CACHE_SIZE_KEY
           The maximum persistent cache size in kilobytes
static String MAX_TRAY_NOTIFICATION_NEWS_KEY
           The maximum number of news titles to display in a tray notification.
static String NEWS_CONTENT_VIEW_KEY
           The key to access the NewsContentView visibility: true if visible; false if invisible.
static String NEWSFEED_TAB_BAR_VIEW_KEY
           The key to access the NewsFeedTabBar visibility: true if visible; false if invisible.
static String NEWSFEED_VIEW_DIVIDER_RATIO_KEY
           The key to acces the newsfeed view divider ratio
static String NOTIFICATION_BAR_VIEW_KEY
           The key to access the NotificationBar view visibility: true if visible; false if invisible.
static String NOTIFICATION_DISPLAY_TIME_KEY
           The time in milliseconds to display a notification
static Point NOTIFICATION_SHELL_SIZE
           The size of the notification Shell
static String ON_OPEN_LINK_BEHAVIOUR
           The behaviour to apply when the end-user opens a link
static String OPEN_FAVORITE_ON_CREATION_KEY
           true if a Favorite is opened automatically after its creation.
static String OUTPUT_VIEW_DIVIDER_RATIO_KEY
           The key to acces the output view divider ratio
static String PLAY_PODCAST_AFTER_DOWNLOAD_KEY
           true to automatically play a downloaded podcast in its associated application after its download completed.
static String PODCAST_OPTIONS_KEY
           Key to access the podcast options
static String PROXY_ENABLED_KEY
           The key to acces the proxy server enabled flag
static String PROXY_LOGIN_KEY
           The key to access the proxy login
static String PROXY_OPTIONS_KEY
           The key to access the proxy options
static String PROXY_PASSWORD_KEY
           The key to access the proxy password
static String PROXY_PORT_KEY
           The key to access the proxy port
static String PROXY_SERVER_KEY
           The key to access the proxy server
static String READ_TIMEOUT_KEY
           Specifies the timeout (in milliseconds) when reading from input stream when a connection is established to a resource.
static String SEND_TO_TRAY_ON_CLOSE_KEY
           true to send to system tray if the MainApplicationWindow is closed.
static String SEND_TO_TRAY_ON_MINIMIZE_KEY
           true to send to system tray if the MainApplicationWindow is minimized.
static String SEND_TO_TRAY_ON_STARTUP_KEY
           true to send to tray if the application starts up.
static String SIDEBAR_VIEW_KEY
           The key to access the SideBar visibility: true if visible; false if invisible.
static String TRAY_NOTIFICATION_OPTIONS_KEY
           Key to access the tray notification options
static String TRAY_OPTIONS_KEY
           Key to access the tray options
static String USE_DEFAULT_EXTERNAL_BROWSER
           Constant indicating that the default external browser should be used
static String USE_INTERNAL_BROWSER
           Constant indicating that the internal browser should be used
static String USE_USERDEFINED_EXTERNAL_BROWSER
           Constant indicating that an userdefined external browser should be used
static String WINDOW_HEIGHT_KEY
           The window height setting
static String WINDOW_LOCATION_KEY
           The window location
static String WINDOW_OPTIONS_KEY
           The key to access the window options
static String WINDOW_SIZE_KEY
           The window size
static String WINDOW_WIDTH_KEY
           The window width setting
static String WINDOW_X_KEY
           The window x coordinate setting
static String WINDOW_Y_KEY
           The window y coordinate setting
 
Constructor Summary
private ConfigurationManager()
           Private constructor to prevent direct instantiation.
 
Method Summary
private static ConfigurationStore createConfigurationStore()
           Creates the default ConfigurationStore used to administrate the persistant configuration settings.
private static void createDirectories()
           Create the required application directories if necessary, i.e. if the directories denoted by the following keys do not exist: DEFAULT_CACHE_DIRECTORY_KEY for the cache DEFAULT_ARCHIVE_DIRECTORY_KEY for the archive DEFAULT_ENCLOSURE_DIRECTORY_KEY for rss enclosures DEFAULT_PODCAST_DIRECTORY_KEY for rss podcast enclosures DEFAULT_ICON_CACHE_DIRECTORY for the icon cache
private static void verifyDirectorySetting(String key)
           Verifies if the directory denoted by the given key exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_STORE

public static final ConfigurationStore CONFIG_STORE

The ConfigurationStore used to administrate the persistent configuration settings.


DEFAULT_NEWSFEED_FAVORITES_FILE

public static final String DEFAULT_NEWSFEED_FAVORITES_FILE

The default opml file to export the NewsFeedFavoritesTree structure to

See Also:
Constant Field Values

DEFAULT_NEWSFEED_WATCHES_FILE

public static final String DEFAULT_NEWSFEED_WATCHES_FILE

The default file to export the NewsFeedWatchessTree structure to

See Also:
Constant Field Values

DEFAULT_NEWSFEED_ADDRESS_BAR_FILE

public static final String DEFAULT_NEWSFEED_ADDRESS_BAR_FILE

The default file to persist the NewsFeedAddressBarContentProvider entries to

See Also:
Constant Field Values

CONFIGURATION_FILENAME

public static final String CONFIGURATION_FILENAME

The application configuration filename

See Also:
Constant Field Values

DEFAULT_CONFIGURATION_FILENAME

public static final String DEFAULT_CONFIGURATION_FILENAME

The application default configuration filename

See Also:
Constant Field Values

DEFAULT_CONFIGURATION_NAMESPACE

public static final String DEFAULT_CONFIGURATION_NAMESPACE

The default configuration xml namespace

See Also:
Constant Field Values

DEFAULT_CONFGIGURATION_ROOT_KEY

public static final String DEFAULT_CONFGIGURATION_ROOT_KEY

The default root configuration key

See Also:
Constant Field Values

APPLICATION_NAME

public static final String APPLICATION_NAME

The application name

See Also:
Constant Field Values

APPLICATION_VERSION

public static final String APPLICATION_VERSION

The application version [x.y.z(status)]

See Also:
Constant Field Values

APPLICATION_COPYRIGHT

public static final String APPLICATION_COPYRIGHT

The application copyright

See Also:
Constant Field Values

APPLICATION_TITLE

public static final String APPLICATION_TITLE

The full application title

See Also:
Constant Field Values

APPLICATION_HOMEPAGE

public static final String APPLICATION_HOMEPAGE

The url of the application homepage

See Also:
Constant Field Values

APPLICATION_MAILING_LIST_HOMEPAGE

public static final String APPLICATION_MAILING_LIST_HOMEPAGE

The url of the application mailing list

See Also:
Constant Field Values

APPLICATION_FORUM_HOMEPAGE

public static final String APPLICATION_FORUM_HOMEPAGE

The url of the application forum

See Also:
Constant Field Values

APPLICATION_BUGTRACKER_HOMEPAGE

public static final String APPLICATION_BUGTRACKER_HOMEPAGE

The url of the application bug tracker

See Also:
Constant Field Values

APPLICATION_FEATURE_REQUEST_HOMEPAGE

public static final String APPLICATION_FEATURE_REQUEST_HOMEPAGE

The url of the application feature request tracker

See Also:
Constant Field Values

AUTHOR_EMAIL

public static final String AUTHOR_EMAIL

The author email

See Also:
Constant Field Values

WINDOW_OPTIONS_KEY

public static final String WINDOW_OPTIONS_KEY

The key to access the window options

See Also:
Constant Field Values

WINDOW_LOCATION_KEY

public static final String WINDOW_LOCATION_KEY

The window location

See Also:
Constant Field Values

WINDOW_SIZE_KEY

public static final String WINDOW_SIZE_KEY

The window size

See Also:
Constant Field Values

WINDOW_X_KEY

public static final String WINDOW_X_KEY

The window x coordinate setting

See Also:
Constant Field Values

WINDOW_Y_KEY

public static final String WINDOW_Y_KEY

The window y coordinate setting

See Also:
Constant Field Values

WINDOW_WIDTH_KEY

public static final String WINDOW_WIDTH_KEY

The window width setting

See Also:
Constant Field Values

WINDOW_HEIGHT_KEY

public static final String WINDOW_HEIGHT_KEY

The window height setting

See Also:
Constant Field Values

COOLBAR_OPTIONS_KEY

public static final String COOLBAR_OPTIONS_KEY

The key to access the coolbar options

See Also:
Constant Field Values

COOLBAR_ORDER_KEY

public static final String COOLBAR_ORDER_KEY

The CoolBar order

See Also:
Constant Field Values

COOLBAR_WRAPPING_KEY

public static final String COOLBAR_WRAPPING_KEY

The CoolBar wrapping

See Also:
Constant Field Values

COOLBAR_SIZE_KEY

public static final String COOLBAR_SIZE_KEY

The CoolBar size

See Also:
Constant Field Values

CONTROL_OPTIONS_KEY

public static final String CONTROL_OPTIONS_KEY

The key to access the control options

See Also:
Constant Field Values

ADDRESSBAR_VIEW_KEY

public static final String ADDRESSBAR_VIEW_KEY

The key to access the NewsFeedAddressBar visibility: true if visible; false if invisible.

See Also:
Constant Field Values

COOLBAR_VIEW_KEY

public static final String COOLBAR_VIEW_KEY

The key to access the CoolBar visibility: true if visible; false if invisible.

See Also:
Constant Field Values

SIDEBAR_VIEW_KEY

public static final String SIDEBAR_VIEW_KEY

The key to access the SideBar visibility: true if visible; false if invisible.

See Also:
Constant Field Values

NEWSFEED_TAB_BAR_VIEW_KEY

public static final String NEWSFEED_TAB_BAR_VIEW_KEY

The key to access the NewsFeedTabBar visibility: true if visible; false if invisible.

See Also:
Constant Field Values

NEWS_CONTENT_VIEW_KEY

public static final String NEWS_CONTENT_VIEW_KEY

The key to access the NewsContentView visibility: true if visible; false if invisible.

See Also:
Constant Field Values

NOTIFICATION_BAR_VIEW_KEY

public static final String NOTIFICATION_BAR_VIEW_KEY

The key to access the NotificationBar view visibility: true if visible; false if invisible.

See Also:
Constant Field Values

CONTROL_DIVIDER_OPTIONS_KEY

public static final String CONTROL_DIVIDER_OPTIONS_KEY

The key to access the control divider options

See Also:
Constant Field Values

NEWSFEED_VIEW_DIVIDER_RATIO_KEY

public static final String NEWSFEED_VIEW_DIVIDER_RATIO_KEY

The key to acces the newsfeed view divider ratio

See Also:
Constant Field Values

OUTPUT_VIEW_DIVIDER_RATIO_KEY

public static final String OUTPUT_VIEW_DIVIDER_RATIO_KEY

The key to acces the output view divider ratio

See Also:
Constant Field Values

MAIN_VIEW_DIVIDER_RATIO_KEY

public static final String MAIN_VIEW_DIVIDER_RATIO_KEY

The key to acces the main view divider ratio

See Also:
Constant Field Values

GENERAL_OPTIONS_KEY

public static final String GENERAL_OPTIONS_KEY

The key to access the general options

See Also:
Constant Field Values

ASK_ON_REMOVE_FAVORITE_KEY

public static final String ASK_ON_REMOVE_FAVORITE_KEY

The flag to decide whether to ask if a Favorite should be really deleted by the help of an user dialog.

See Also:
Constant Field Values

ASK_ON_REMOVE_CATEGORY_KEY

public static final String ASK_ON_REMOVE_CATEGORY_KEY

The flag to decide whether to ask if a Category should be really deleted by the help of an user dialog.

See Also:
Constant Field Values

ASK_ON_REMOVE_WATCH_KEY

public static final String ASK_ON_REMOVE_WATCH_KEY

The flag to decide whether to ask if a Watch should be really deleted by the help of an user dialog.

See Also:
Constant Field Values

ASK_ON_REMOVE_WATCH_FOLDER_KEY

public static final String ASK_ON_REMOVE_WATCH_FOLDER_KEY

The flag to decide whether to ask if a WatchFolder should be really deleted by the help of an user dialog.

See Also:
Constant Field Values

ASK_ON_NEWSFEED_LINK_DETECTION_KEY

public static final String ASK_ON_NEWSFEED_LINK_DETECTION_KEY

true to ask if a Favorite should be created if a link is detected that potentially points to a NewsFeed.

See Also:
Constant Field Values

MARK_ALL_NEWS_READ_ON_CLOSE_TAB

public static final String MARK_ALL_NEWS_READ_ON_CLOSE_TAB

true if all news of a NewsFeed have to be marked as read when closing a tab; false otherwise

See Also:
Constant Field Values

FAVORITE_OPTIONS_KEY

public static final String FAVORITE_OPTIONS_KEY

The key to access the favorite options

See Also:
Constant Field Values

DISPLAY_FAVORITE_ICONS_KEY

public static final String DISPLAY_FAVORITE_ICONS_KEY

true if individual Favorite icons are displayed; false otherwise, i.e. a default icon is used instead

See Also:
Constant Field Values

OPEN_FAVORITE_ON_CREATION_KEY

public static final String OPEN_FAVORITE_ON_CREATION_KEY

true if a Favorite is opened automatically after its creation.

See Also:
Constant Field Values

ADOPT_REFRESH_INTERVAL_RECURSIVE_KEY

public static final String ADOPT_REFRESH_INTERVAL_RECURSIVE_KEY

true if refresh interval setting should be adopted recursively to all Favorites in a Category or false which means that the setting should only be adopted to all Favorites situated directly one level beneath a Category (non recursive)

See Also:
Constant Field Values

DEFAULT_CATEGORY_REFRESH_INTERVAL_KEY

public static final String DEFAULT_CATEGORY_REFRESH_INTERVAL_KEY

The default refresh interval for new Categories

See Also:
Constant Field Values

DEFAULT_FAVORITE_REFRESH_INTERVAL_KEY

public static final String DEFAULT_FAVORITE_REFRESH_INTERVAL_KEY

The default refresh interval for new Favorites

See Also:
Constant Field Values

LANGUAGE_OPTIONS_KEY

public static final String LANGUAGE_OPTIONS_KEY

The key to access the language options

See Also:
Constant Field Values

LANGUAGE_KEY

public static final String LANGUAGE_KEY

The language setting as iso2 code which determines the language of the user interface.

See Also:
Constant Field Values

CACHE_OPTIONS_KEY

public static final String CACHE_OPTIONS_KEY

The key to access the cache options

See Also:
Constant Field Values

DEFAULT_CACHED_FILE_SUFFIX

public static final String DEFAULT_CACHED_FILE_SUFFIX

The default file suffix of cached newsfeeds

See Also:
Constant Field Values

DEFAULT_CACHE_DIRECTORY_KEY

public static final String DEFAULT_CACHE_DIRECTORY_KEY

The default directory to cache newsfeeds to

See Also:
Constant Field Values

MAX_LIVE_CACHE_SIZE_KEY

public static final String MAX_LIVE_CACHE_SIZE_KEY

The maximum live cache size in newsfeeds

See Also:
Constant Field Values

MAX_PERSISTENT_CACHE_SIZE_KEY

public static final String MAX_PERSISTENT_CACHE_SIZE_KEY

The maximum persistent cache size in kilobytes

See Also:
Constant Field Values

ARCHIVE_OPTIONS_KEY

public static final String ARCHIVE_OPTIONS_KEY

The key to access the archive options

See Also:
Constant Field Values

DEFAULT_ARCHIVED_FILE_SUFFIX

public static final String DEFAULT_ARCHIVED_FILE_SUFFIX

The default file suffix of archived newsfeeds

See Also:
Constant Field Values

DEFAULT_ARCHIVE_DIRECTORY_KEY

public static final String DEFAULT_ARCHIVE_DIRECTORY_KEY

The default directory to store archived newsfeeds in

See Also:
Constant Field Values

MAX_ARCHIVE_ITEM_SIZE_KEY

public static final String MAX_ARCHIVE_ITEM_SIZE_KEY

The maximum of news items in an archived newsfeed

See Also:
Constant Field Values

MAX_LIVE_ARCHIVE_SIZE_KEY

public static final String MAX_LIVE_ARCHIVE_SIZE_KEY

The maximum live archive size in newsfeeds

See Also:
Constant Field Values

MAX_PERSISTENT_ARCHIVE_SIZE_KEY

public static final String MAX_PERSISTENT_ARCHIVE_SIZE_KEY

The maximum archive size in kilobytes

See Also:
Constant Field Values

CONNECTION_OPTIONS_KEY

public static final String CONNECTION_OPTIONS_KEY

Key to access the connection options

See Also:
Constant Field Values

MAX_CONNECTIONS_KEY

public static final String MAX_CONNECTIONS_KEY

The maximum of parallel connections

See Also:
Constant Field Values

CONNECTION_TIMEOUT_KEY

public static final String CONNECTION_TIMEOUT_KEY

Specifies the timeout (in milliseconds) to establish the connection to the host. For example for http connections it is the timeout when establishing the connection to the http server. For ftp connection it is the timeout when establishing the connection to ftp servers.

See Also:
Constant Field Values

READ_TIMEOUT_KEY

public static final String READ_TIMEOUT_KEY

Specifies the timeout (in milliseconds) when reading from input stream when a connection is established to a resource.

See Also:
Constant Field Values

HTTP_KEEP_ALIVE_KEY

public static final String HTTP_KEEP_ALIVE_KEY

true if http keep alive is enabled; false if disabled.

See Also:
Constant Field Values

PROXY_OPTIONS_KEY

public static final String PROXY_OPTIONS_KEY

The key to access the proxy options

See Also:
Constant Field Values

PROXY_ENABLED_KEY

public static final String PROXY_ENABLED_KEY

The key to acces the proxy server enabled flag

See Also:
Constant Field Values

PROXY_SERVER_KEY

public static final String PROXY_SERVER_KEY

The key to access the proxy server

See Also:
Constant Field Values

PROXY_PORT_KEY

public static final String PROXY_PORT_KEY

The key to access the proxy port

See Also:
Constant Field Values

PROXY_LOGIN_KEY

public static final String PROXY_LOGIN_KEY

The key to access the proxy login

See Also:
Constant Field Values

PROXY_PASSWORD_KEY

public static final String PROXY_PASSWORD_KEY

The key to access the proxy password

See Also:
Constant Field Values

DEFAULT_IMAGE_DIRECTORY

public static final String DEFAULT_IMAGE_DIRECTORY

The default directory where all application images are stored.

See Also:
Constant Field Values

DEFAULT_ICON_CACHE_DIRECTORY

public static final String DEFAULT_ICON_CACHE_DIRECTORY

The default directory where newsfeed favorite icons are cached.

See Also:
Constant Field Values

DEFAULT_ICON_FILE_SUFFIX

public static final String DEFAULT_ICON_FILE_SUFFIX

The default file suffix of newsfeed favorite icons.

See Also:
Constant Field Values

ENCLOSURE_OPTIONS_KEY

public static final String ENCLOSURE_OPTIONS_KEY

Key to access the enclosure options

See Also:
Constant Field Values

DEFAULT_ENCLOSURE_DIRECTORY_KEY

public static final String DEFAULT_ENCLOSURE_DIRECTORY_KEY

The default directory to store rss enclosures to

See Also:
Constant Field Values

EXECUTE_ENCLOSURE_AFTER_DOWNLOAD_KEY

public static final String EXECUTE_ENCLOSURE_AFTER_DOWNLOAD_KEY

true to automatically execute a downloaded enclosure in its associated application after its download completed. false for quiet mode (no automatic execution).

See Also:
Constant Field Values

PODCAST_OPTIONS_KEY

public static final String PODCAST_OPTIONS_KEY

Key to access the podcast options

See Also:
Constant Field Values

DEFAULT_PODCAST_DIRECTORY_KEY

public static final String DEFAULT_PODCAST_DIRECTORY_KEY

The default directory to store rss podcast enclosures to

See Also:
Constant Field Values

PLAY_PODCAST_AFTER_DOWNLOAD_KEY

public static final String PLAY_PODCAST_AFTER_DOWNLOAD_KEY

true to automatically play a downloaded podcast in its associated application after its download completed. false for quiet mode (no automatic play).

See Also:
Constant Field Values

LICENSE_FILE

public static final File LICENSE_FILE

The license file


TRAY_OPTIONS_KEY

public static final String TRAY_OPTIONS_KEY

Key to access the tray options

See Also:
Constant Field Values

SEND_TO_TRAY_ON_MINIMIZE_KEY

public static final String SEND_TO_TRAY_ON_MINIMIZE_KEY

true to send to system tray if the MainApplicationWindow is minimized.

See Also:
Constant Field Values

SEND_TO_TRAY_ON_CLOSE_KEY

public static final String SEND_TO_TRAY_ON_CLOSE_KEY

true to send to system tray if the MainApplicationWindow is closed.

See Also:
Constant Field Values

SEND_TO_TRAY_ON_STARTUP_KEY

public static final String SEND_TO_TRAY_ON_STARTUP_KEY

true to send to tray if the application starts up.

See Also:
Constant Field Values

TRAY_NOTIFICATION_OPTIONS_KEY

public static final String TRAY_NOTIFICATION_OPTIONS_KEY

Key to access the tray notification options

See Also:
Constant Field Values

MAX_TRAY_NOTIFICATION_NEWS_KEY

public static final String MAX_TRAY_NOTIFICATION_NEWS_KEY

The maximum number of news titles to display in a tray notification.

See Also:
Constant Field Values

NOTIFICATION_SHELL_SIZE

public static final Point NOTIFICATION_SHELL_SIZE

The size of the notification Shell


NOTIFICATION_DISPLAY_TIME_KEY

public static final String NOTIFICATION_DISPLAY_TIME_KEY

The time in milliseconds to display a notification

See Also:
Constant Field Values

BROWSER_OPTIONS_KEY

public static final String BROWSER_OPTIONS_KEY

Key to access the browser options

See Also:
Constant Field Values

ON_OPEN_LINK_BEHAVIOUR

public static final String ON_OPEN_LINK_BEHAVIOUR

The behaviour to apply when the end-user opens a link

See Also:
Constant Field Values

EXTERNAL_BROWSER_PATH

public static final String EXTERNAL_BROWSER_PATH

The path to the external browser executable

See Also:
Constant Field Values

USE_INTERNAL_BROWSER

public static final String USE_INTERNAL_BROWSER

Constant indicating that the internal browser should be used

See Also:
Constant Field Values

USE_DEFAULT_EXTERNAL_BROWSER

public static final String USE_DEFAULT_EXTERNAL_BROWSER

Constant indicating that the default external browser should be used

See Also:
Constant Field Values

USE_USERDEFINED_EXTERNAL_BROWSER

public static final String USE_USERDEFINED_EXTERNAL_BROWSER

Constant indicating that an userdefined external browser should be used

See Also:
EXTERNAL_BROWSER_PATH, Constant Field Values
Constructor Detail

ConfigurationManager

private ConfigurationManager()

Private constructor to prevent direct instantiation.

Method Detail

createConfigurationStore

private static ConfigurationStore createConfigurationStore()

Creates the default ConfigurationStore used to administrate the persistant configuration settings.


createDirectories

private static void createDirectories()

Create the required application directories if necessary, i.e. if the directories denoted by the following keys do not exist:


verifyDirectorySetting

private static void verifyDirectorySetting(String key)

Verifies if the directory denoted by the given key exists. If not it is created.

Parameters:
key - the key to access the directory setting