当前位置: 首页>>代码示例>>Java>>正文


Java AttributeFactory.loadAttributeDictionary方法代码示例

本文整理汇总了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);
}
 
开发者ID:coova,项目名称:jradius,代码行数:29,代码来源:JRadiusSimulator.java

示例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.");
}
 
开发者ID:coova,项目名称:jradius,代码行数:28,代码来源:JRadiusServer.java

示例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));
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:5,代码来源:RadiusDetectorClient.java


注:本文中的net.jradius.packet.attribute.AttributeFactory.loadAttributeDictionary方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。