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

📄 initservlet.java

📁 It is Java for SIP phone
💻 JAVA
字号:
/* * InitServlet.java * * Created on June 30, 2003, 4:19 PM */package gov.nist.applet.phone.webapp.phone;import javax.servlet.*;import javax.servlet.http.*;/** Initializes the web appplication * @author DERUELLE Jean */public class InitServlet extends HttpServlet {        /**     * Initializes the servlet.     * @param config - The ServletConfig of the webapp     * @throws ServletException - a servletException can be thrown is something mess up     */    public void init(ServletConfig config) throws ServletException {        super.init(config);        		/**		InetAddress ipAddress=null;	        try{				ipAddress=InetAddress.getByName(config.getInitParameter("ip-address"));	        }			catch(UnknownHostException uhe){				uhe.printStackTrace();				System.out.println("Application not started");				return;			}			int port;			try{				port=Integer.parseInt(config.getInitParameter("socket-manager-port"));			}			catch(NumberFormatException nfe){				nfe.printStackTrace();				System.out.println("Application not started");				return;			}	        IPAddressSocketManager ipAddressSocketManager=new IPAddressSocketManager(ipAddress,port);	        ipAddressSocketManager.start();		**/    }               }

⌨️ 快捷键说明

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