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