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