|
||||||||||
| 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 java.lang.String |
serverName
Server name. |
protected java.net.URI |
serverUri
Server URI. |
| Constructor Summary | |
|---|---|
JettyLauncher()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
protected void |
installSystemTray()
Install system tray to stop server. |
static void |
main(java.lang.String[] args)
Main method (used by war in manifest). |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
protected void |
openBrowser()
Open browser. |
protected java.lang.String |
readAsString(java.io.InputStream stream)
Read input stream as string. |
protected void |
readInformation()
Parse WEB-INF/web.xml file and get server display name. |
protected void |
startServer(java.lang.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 java.net.URI serverUri
protected int port
protected java.lang.String serverName
| Constructor Detail |
|---|
public JettyLauncher()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - args
java.lang.Exceptionprotected void readInformation()
protected java.lang.String readAsString(java.io.InputStream stream)
stream - stream to read
protected void startServer(java.lang.String[] args)
throws java.lang.Exception
args - args
java.lang.Exceptionprotected void stopServer()
protected void installSystemTray()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerprotected void openBrowser()
java.io.IOExceptionpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||