public class JettyLauncher extends Object implements ActionListener, MouseListener
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.jetty.server.Server |
jettyServer
Jetty server instance.
|
protected int |
port
Default port.
|
protected String |
serverName
Server name.
|
protected URI |
serverUri
Server URI.
|
| Constructor and Description |
|---|
JettyLauncher() |
| Modifier and Type | Method and Description |
|---|---|
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 String |
readAsString(InputStream stream)
Read input stream as string.
|
protected void |
readInformation()
Parse WEB-INF/web.xml file and get server display name.
|
protected void |
startServer(String[] args)
Launch servlet container.
|
protected void |
stopServer()
Shutdown server.
|
protected org.eclipse.jetty.server.Server jettyServer
protected URI serverUri
protected int port
protected String serverName
public static void main(String[] args) throws Exception
args - argsExceptionprotected void readInformation()
protected String readAsString(InputStream stream)
stream - stream to readprotected void startServer(String[] args) throws Exception
args - argsExceptionprotected 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 MouseListenerCopyright © 2011-2013 CodeLutin. All Rights Reserved.