|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.gridshib.config.SAMLToolsConfigLoader
public class SAMLToolsConfigLoader
Configuration property file loader for
the GridShib SAML Tools. This loader maintains
a static SAML Tools configuration object that may be
retrieved at any time using getToolConfig().
Calling load(File) or load(InputStream)
initializes the configuration object with the loaded
configuration properties. On the other hand, calling
overlay(InputStream) overlays the current
configuration object with the configuration properties
on the input stream.
This loader performs the following optimizations.
A configuration file loaded with load(File)
is cached such that the next request to load the same
file is short-circuited. Subsequent calls to
load(InputStream) or overlay(InputStream)
clear the cache, that is, the next call to load(File)
is guaranteed not to short-circuit.
| Method Summary | |
|---|---|
static SAMLToolsConfig |
getToolConfig()
Gets the SAML Tools configuration object. |
static SAMLToolsConfig |
getToolConfig(File defaultConfigFile)
Gets the SAML Tools configuration object. |
static void |
load()
A convenience method that loads the default config file specified in the bootstrap properties file. |
static void |
load(File configFile)
Load the properties from the given config file. |
static void |
load(InputStream in)
Load the properties from the given input stream. |
static void |
overlay(InputStream in)
Overlays the config properties on the given input stream on top of the existing configuration object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SAMLToolsConfig getToolConfig()
throws GridShibConfigException
GridShibConfigException - if there was an error loading the default config fileBootstrapConfigLoader.getConfigFileDefault()
public static SAMLToolsConfig getToolConfig(File defaultConfigFile)
throws GridShibConfigException
defaultConfigFile - a default config file to load
if the configuration object is null
GridShibConfigException - if there was an error loading the given config fileBootstrapConfigLoader.getConfigFileDefault()
public static void load()
throws GridShibConfigException
GridShibConfigException - if there was an error loading the default config fileBootstrapConfigLoader.getConfigFileDefault()
public static void load(File configFile)
throws GridShibConfigException
configFile - the config file to be loaded
GridShibConfigException - if there was an error loading the indicated config fileBootstrapConfigLoader.getConfigFileDefault()
public static void load(InputStream in)
throws GridShibConfigException
This method clears the cache, that is, the next
call to load(File) is guaranteed not to
short-circuit.
in - an input stream of config properties
GridShibConfigException - if there was an error loading the config properties
on the input stream
public static void overlay(InputStream in)
throws GridShibConfigException
If this method is called without previously loading
any config properties, the effect is the same as
calling load(InputStream).
This method clears the cache, that is, the next
call to load(File) is guaranteed not to
short-circuit.
in - an input stream of config properties
GridShibConfigException - if there was an error loading the config properties
on the input stream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||