Package org.tinyradius.dictionary
Each attribute type is represented by an instance of the
object AttributeType
. This class stores the
type code, the type name and the vendor ID for each
attribute type.
The interface Dictionary
declares the methods necessary
to access a dictionary. Every class that implements this
interface can be used to resolve AttributeType objects.
Dictionaries that can be changed after construction should
implement the interface WritableDictionary
.
You can use the class DictionaryParser
to populate WritableDictionary
objects with
data from a dictionary file in the well-known Radiator
dictionary file format.
MemoryDictionary
is the default implementation
of WritableDictionary
. It manages a dictionary held
in the RAM. This class is used together with the
DictionaryParser
by the class DefaultDictionary
which is a singleton object containing the default dictionary
that is used if there is no dictionary explicitly specified.
The DefaultDictionary
class is initialised from the
classpath resource
org.tinyradius.dictionary.default_dictionary
.
-
Interface Summary Interface Description Dictionary A dictionary retrieves AttributeType objects by name or type code.DictionaryParser.ResourceResolver WritableDictionary A dictionary that is not read-only. -
Class Summary Class Description DefaultDictionary The default dictionary is a singleton object containing a dictionary in the memory that is filled on application startup using the default dictionary file from the classpath resourceorg.tinyradius.dictionary.default_dictionary
.DictionaryParser Parses a dictionary in "Radiator format" and fills a WritableDictionary.DictionaryParser.ClasspathResourceResolver DictionaryParser.FileResourceResolver MemoryDictionary A dictionary that keeps the values and names in hash maps in the memory.