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>
 

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

Field Summary
static java.lang.String theFileNameElement
           
static java.lang.String theFileTypeElement
           
static java.lang.String theRefreshPeriodElement
           
 
Constructor Summary
FileMapCreator()
           
 
Method Summary
 java.util.Map create(AttributeMapFactory factory, org.w3c.dom.Element config)
          Method create.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

FileMapCreator

public FileMapCreator()
Method Detail

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)