?? configuration.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 + -