本文整理汇总了Java中net.jradius.packet.attribute.AttributeFactory.loadAttributeDictionary方法的典型用法代码示例。如果您正苦于以下问题:Java AttributeFactory.loadAttributeDictionary方法的具体用法?Java AttributeFactory.loadAttributeDictionary怎么用?Java AttributeFactory.loadAttributeDictionary使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.jradius.packet.attribute.AttributeFactory
的用法示例。
在下文中一共展示了AttributeFactory.loadAttributeDictionary方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialize
import net.jradius.packet.attribute.AttributeFactory; //导入方法依赖的package包/类
/**
* This method initializes this
*
* @return void
*/
private void initialize() {
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setJMenuBar(getJJMenuBar());
this.setSize(650, 600);
this.setContentPane(getMainContentPane());
this.setTitle("JRadiusSimulator");
this.setVisible(true);
String osName = System.getProperty("os.name");
if (osName.indexOf("Windows") != -1) windows = true;
else windows = false;
logSent = new PrintStream(logConsole.createFilteredStream(LogConsole.CATEGORY_PACKETS_SENT));
logRecv = new PrintStream(logConsole.createFilteredStream(LogConsole.CATEGORY_PACKETS_RECV));
logErr = new PrintStream(logConsole.createFilteredStream(LogConsole.CATEGORY_ERROR));
AttributeFactory.loadAttributeDictionary("net.jradius.dictionary.AttributeDictionaryImpl");
try { loadConfigFile(configFileUrl); } catch (Exception e) { e.printStackTrace(); }
statusLabel.setText("Ready");
fileMenu.setEnabled(true);
mainTabPane.setEnabled(true);
runButton.setEnabled(true);
}
示例2: initializeServer
import net.jradius.packet.attribute.AttributeFactory; //导入方法依赖的package包/类
/**
* Read the configuration and initialize the JRadiusServer
* @throws SecurityException
* @throws IllegalArgumentException
* @throws ClassNotFoundException
* @throws NoSuchMethodException
* @throws InstantiationException
* @throws IllegalAccessException
* @throws InvocationTargetException
*/
private void initializeServer() throws Exception
{
RadiusLog.info("Initializing JRadius Server....");
for (Iterator i = Configuration.getDictionaryConfigs().iterator(); i.hasNext();)
{
DictionaryConfigurationItem dictionaryConfig = (DictionaryConfigurationItem) i.next();
RadiusLog.info("Loading dictionary: " + dictionaryConfig.getClassName());
AttributeFactory.loadAttributeDictionary((AttributeDictionary)Configuration.getBean(dictionaryConfig.getClassName()));
}
for (ListenerConfigurationItem listenerConfig : Configuration.getListenerConfigs())
{
LinkedBlockingQueue<ListenerRequest> queue = new LinkedBlockingQueue<ListenerRequest>();
createListenerWithConfigAndQueue(listenerConfig, queue);
createProcessorsWithConfigAndQueue(listenerConfig, queue);
}
RadiusLog.info("JRadius Server succesfully Initialized.");
}
示例3: connect
import net.jradius.packet.attribute.AttributeFactory; //导入方法依赖的package包/类
public void connect(final InetAddress address, final int port, final int timeout) throws IOException, Exception {
AttributeFactory.loadAttributeDictionary("net.jradius.dictionary.AttributeDictionaryImpl");
m_radiusClient = new RadiusClient(address, getSecret(), getAuthPort(), getAcctPort(), convertTimeout(timeout));
}