org.edg.security.authorization.map
Class FileMapCreator
java.lang.Object
|
+--org.edg.security.authorization.map.FileMapCreator
- All Implemented Interfaces:
- AttributeMapCreator
- public class FileMapCreator
- extends java.lang.Object
- implements AttributeMapCreator
Class FileMapCreator.
Creates a FileMap from the following XML snippet:
<!-- the supplied "config" node -->
<map type="file">
<filename>filename</filename>
<filetype>filetype</filetype>
<refreshperiod>[seconds]</refreshperiod>
</map>
filetype
The file syntax. Supported values are listed
in the FileMap
class.
filename
The file name
refreshperiod
The period (in seconds) to perform a
reload on the file:
- Default value is
300
seconds.
- If set to
0
, the file will only be read once upon
startup: no reload will occur.
- If set to
-1
, a "stat" on the file will be performed at
each lookup, to determine whether the modify date has changed and a reload
is necessary
- Version:
- $Id: FileMapCreator.java,v 1.13 2003/10/27 15:56:12 gianluca Exp $
- Author:
- Niklas Karlsson HIP, Olle Mulmo PDC
- See Also:
FileMap
,
AttributeMapCreator
,
AttributeMapFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
theFileNameElement
public static final java.lang.String theFileNameElement
- See Also:
- Constant Field Values
theFileTypeElement
public static final java.lang.String theFileTypeElement
- See Also:
- Constant Field Values
theRefreshPeriodElement
public static final java.lang.String theRefreshPeriodElement
- See Also:
- Constant Field Values
FileMapCreator
public FileMapCreator()
create
public java.util.Map create(AttributeMapFactory factory,
org.w3c.dom.Element config)
throws java.text.ParseException
- Description copied from interface:
AttributeMapCreator
- Method create.
Creates a Map from the supplied XML definition.
- Specified by:
create
in interface AttributeMapCreator
- Parameters:
config
- The configuration.
- Returns:
- Map The resulting map, mapping a key to a List of String values
java.text.ParseException
- See Also:
AttributeMapCreator.create(AttributeMapFactory,Element)