Package net.i2p.jetty
Class JettyStart
- java.lang.Object
-
- net.i2p.jetty.JettyStart
-
- All Implemented Interfaces:
net.i2p.app.ClientApp
public class JettyStart extends Object implements net.i2p.app.ClientApp
Start Jetty where the args are one or more XML files. Save a reference to the Server so it can be cleanly stopped later. Caller must call startup() This is like XmlConfiguration.main(), which is essentially what org.mortbay.start.Main does.- Since:
- 0.9.4
-
-
Constructor Summary
Constructors Constructor Description JettyStart(net.i2p.I2PAppContext context, net.i2p.app.ClientAppManager mgr, String[] args)All args must be XML file names.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayName()StringgetName()net.i2p.app.ClientAppStategetState()static voidmain(String[] args)For use in a plugin clients.configvoidparseArgs(String[] args)Modified from XmlConfiguration.main()voidshutdown(String[] args)voidstartup()
-
-
-
Constructor Detail
-
JettyStart
public JettyStart(net.i2p.I2PAppContext context, net.i2p.app.ClientAppManager mgr, String[] args) throws ExceptionAll args must be XML file names. Does not support any of the other argument types from org.mortbay.start.Main.- Parameters:
context- may be nullmgr- may be null e.g. for use in plugins- Throws:
Exception
-
-
Method Detail
-
parseArgs
public void parseArgs(String[] args) throws Exception
Modified from XmlConfiguration.main()- Throws:
Exception
-
startup
public void startup()
- Specified by:
startupin interfacenet.i2p.app.ClientApp
-
shutdown
public void shutdown(String[] args)
- Specified by:
shutdownin interfacenet.i2p.app.ClientApp
-
getState
public net.i2p.app.ClientAppState getState()
- Specified by:
getStatein interfacenet.i2p.app.ClientApp
-
getName
public String getName()
- Specified by:
getNamein interfacenet.i2p.app.ClientApp
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfacenet.i2p.app.ClientApp
-
main
public static void main(String[] args)
For use in a plugin clients.config- Parameters:
args- passed to constructor- Since:
- 0.9.6
-
-