|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.util.war.JettyLauncher
public class JettyLauncher
War main class launcher (jetty based). To use it : java -jar app-xxx.war
| Field Summary | |
|---|---|
protected org.eclipse.jetty.server.Server |
jettyServer
Jetty server instance. |
protected int |
port
Default port. |
protected URI |
serverUri
Server URI. |
| Constructor Summary | |
|---|---|
JettyLauncher()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
protected void |
installSystemTray()
Install system tray to stop server. |
static void |
main(String[] args)
Main method (used by war in manifest). |
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
protected void |
openBrowser()
Open browser. |
protected void |
startServer(String[] args)
Launch servlet container. |
protected void |
stopServer()
Shutdown server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.eclipse.jetty.server.Server jettyServer
protected URI serverUri
protected int port
| Constructor Detail |
|---|
public JettyLauncher()
| Method Detail |
|---|
public static void main(String[] args)
throws Exception
args - args
Exception
protected void startServer(String[] args)
throws Exception
args - args
Exceptionprotected void stopServer()
protected void installSystemTray()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerprotected void openBrowser()
IOExceptionpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||