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 Details

    • JettyStart

      public JettyStart(net.i2p.I2PAppContext context, net.i2p.app.ClientAppManager mgr, String[] args) throws Exception
      All args must be XML file names. Does not support any of the other argument types from org.mortbay.start.Main.
      Parameters:
      context - may be null
      mgr - may be null e.g. for use in plugins
      Throws:
      Exception
  • Method Details

    • startup

      public void startup()
      Specified by:
      startup in interface net.i2p.app.ClientApp
    • shutdown

      public void shutdown(String[] args)
      Specified by:
      shutdown in interface net.i2p.app.ClientApp
    • getState

      public net.i2p.app.ClientAppState getState()
      Specified by:
      getState in interface net.i2p.app.ClientApp
    • getName

      public String getName()
      Specified by:
      getName in interface net.i2p.app.ClientApp
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface net.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