|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.jetty.JettyStart
public class JettyStart
Start Jetty where the args are one or more XML files. Save a reference to the Server so it can be cleanly stopped later. This is like XmlConfiguration.main(), which is essentially what org.mortbay.start.Main does.
Constructor Summary | |
---|---|
JettyStart(I2PAppContext context,
ClientAppManager mgr,
String[] args)
All args must be XML file names. |
Method Summary | |
---|---|
String |
getDisplayName()
The dislplay name of the ClientApp, used in user interfaces. |
String |
getName()
The generic name of the ClientApp, used for registration, e.g. |
ClientAppState |
getState()
The current state of the ClientApp. |
void |
parseArgs(String[] args)
Modified from XmlConfiguration.main() |
void |
shutdown(String[] args)
Do not take a long time. |
void |
startup()
Do not take a long time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JettyStart(I2PAppContext context, ClientAppManager mgr, String[] args) throws Exception
Exception
Method Detail |
---|
public void parseArgs(String[] args) throws Exception
Exception
public void startup()
ClientApp
startup
in interface ClientApp
public void shutdown(String[] args)
ClientApp
shutdown
in interface ClientApp
public ClientAppState getState()
ClientApp
getState
in interface ClientApp
public String getName()
ClientApp
getName
in interface ClientApp
public String getDisplayName()
ClientApp
getDisplayName
in interface ClientApp
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |