⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configuration.java

📁 First of all, the Applet-phone is a SIP User-Agent with audio and text messaging capabilities. But
💻 JAVA
字号:
/* * Configuration.java * * Created on February 3, 2003, 3:21 PM */package gov.nist.examples.pcc;import java.util.*;/****@version  JAIN-SIP-1.1**@author Olivier Deruelle <deruelle@nist.gov>  <br/>**<a href="{@docRoot}/uncopyright.html">This code is in the public domain.</a>**/public class Configuration {        public Vector stackConfigurationList;        // RTP gateway:    public boolean enableRTPGateway;    public int minRTPHolePort;    public int maxRTPHolePort;        // Logging    public boolean accessLogViaRMI;    public String logRMIPort;    public String logLifetime;    public boolean enableDebug;    public String serverLogFile;    public String badMessageLogFile;    public String debugLogFile;    public String outputCallLauncher;        public Vector callerAgentsList;      public String pstnGateway;        // Registrations    public boolean enableRegistrations;    public int expiresTime=3600;    public String registrationsFile;    //address translation    public boolean isRegistered=false;    public String serviceGuy="sip:jean@nist.gov";        /** Creates a new instance of Configuration */    public Configuration() {               enableRTPGateway=false;              callerAgentsList=new Vector();        stackConfigurationList=new Vector();    }       public void addCallerAgent(Agent agent) {       if ( agent!=null ){            callerAgentsList.addElement(agent);       }    }     protected boolean check(String s) {        return  (s!=null && !s.trim().equals(""));    }            public boolean isValidConfiguration() {        // Just a warning check for the basics methods        for (int i=0;i<stackConfigurationList.size();i++) {            StackConfiguration stack=(StackConfiguration)stackConfigurationList.elementAt(i);                       if ( !stack.isValidConfiguration()) return false;                   }        return true;    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -