|
||||||||||
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 display 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. |
static void |
main(String[] args)
For use in a plugin clients.config |
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
context
- may be nullmgr
- may be null e.g. for use in plugins
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
args
- generally null but could be stopArgs from clients.configpublic ClientAppState getState()
ClientApp
getState
in interface ClientApp
public String getName()
ClientApp
getName
in interface ClientApp
public String getDisplayName()
ClientApp
getDisplayName
in interface ClientApp
public static void main(String[] args)
args
- passed to constructor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |