📄 jetty.java
字号:
package org.jpos.q2.jetty;import org.jpos.q2.QBeanSupport;import org.mortbay.jetty.Server;/** * @author Alejandro Revilla * @version $Revision: 1.1 $ $Date: 2003/08/07 18:55:52 $ * @jmx:mbean description="Jetty QBean" extends="org.jpos.q2.QBeanSupportMBean" */public class Jetty extends QBeanSupport implements JettyMBean { Server server; String config; public void initService () throws Exception { server = new Server(config); } public void startService () throws Exception { server.start (); } public void stopService () throws Exception { server.stop (); } /** * @jmx:managed-attribute description="Configuration File" */ public void setConfig (String config) { this.config = config; } /** * @jmx:managed-attribute description="Configuration File" */ public String getConfig () { return config; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -