|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jradius.server.config.Configuration
public class Configuration
Reads JRadius configuration options and provides methods to access them
Constructor Summary | |
---|---|
Configuration()
|
Method Summary | |
---|---|
static DictionaryConfigurationItem |
dictionaryConfigurationForName(java.lang.String name)
|
static HandlerConfigurationItem |
eventHandlerConfigurationForName(java.lang.String name)
|
static JRCommand |
eventHandlerForName(java.lang.String name)
|
static org.apache.commons.chain.Command |
getCommand(java.lang.String commandID)
|
static java.lang.String |
getConfigFileDir()
|
static java.util.Collection |
getDictionaryConfigs()
A collection of DictionaryConfigurationItems, corresponding to the <load-dictionaries> elements in the configuration file. |
static java.util.Collection |
getEventHandlers()
A collection of HandlerConfigurationItems, corresponding to the <event-handler> elements in the configuration file. |
static java.util.Collection |
getListenerConfigs()
A collection of ListenerConfigurationItems, corresponding to the <listener> elements in the configuration file. |
static java.util.Collection |
getPacketHandlers()
A collection of PacketHandlerConfigurationItems, corresponding to the <packet-handler> elements in the configuration file. |
static int |
getTimeoutSeconds()
The number of seconds to wait for packets, corresponding to the <timeout> option in the configuration file. |
static void |
initialize(java.io.File file)
|
static boolean |
isDebug()
Corresponds to the <debug>true/false</debug> configuration option. |
static ListenerConfigurationItem |
listenerConfigurationForName(java.lang.String name)
|
static PacketHandlerConfigurationItem |
packetHandlerConfigurationForName(java.lang.String name)
|
static JRCommand |
packetHandlerForName(java.lang.String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Configuration()
Method Detail |
---|
public static void initialize(java.io.File file) throws java.io.FileNotFoundException, org.apache.commons.configuration.ConfigurationException
java.io.FileNotFoundException
org.apache.commons.configuration.ConfigurationException
public static boolean isDebug()
public static java.lang.String getConfigFileDir()
public static java.util.Collection getPacketHandlers()
public static java.util.Collection getEventHandlers()
public static PacketHandlerConfigurationItem packetHandlerConfigurationForName(java.lang.String name)
public static HandlerConfigurationItem eventHandlerConfigurationForName(java.lang.String name)
public static JRCommand packetHandlerForName(java.lang.String name)
public static JRCommand eventHandlerForName(java.lang.String name)
public static org.apache.commons.chain.Command getCommand(java.lang.String commandID) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static java.util.Collection getListenerConfigs()
public static ListenerConfigurationItem listenerConfigurationForName(java.lang.String name)
public static java.util.Collection getDictionaryConfigs()
public static DictionaryConfigurationItem dictionaryConfigurationForName(java.lang.String name)
public static int getTimeoutSeconds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |