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

📄 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.busy.gateway;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=true;    public int minRTPHolePort=9000;    public int maxRTPHolePort=9900;        // Logging    public boolean accessLogViaRMI;    public String logRMIPort;    public String logLifetime;    public boolean enableDebug=true;    public String serverLogFile="server_gateway_log.txt";    public String badMessageLogFile="bad_message_gateway_log.txt";    public String debugLogFile="debug_gateway_log.txt";    //public String outputProxy="proxy_output.txt";    public String outputProxy=null;        public String pstnGateway="129.6.55.81";    public String phoneNumberToCall="+993019752915";    public int maxRTPPacketSize=5000;        //address translation    public boolean isRegistered=false;    public String serviceGuy="sip:jean@nist.gov";        /** Creates a new instance of Configuration */    public Configuration() {        enableRTPGateway=false;        stackConfigurationList=new Vector();    }         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 + -