public class WinstoneLauncher extends Object implements ActionListener, MouseListener
| Modifier and Type | Field and Description |
|---|---|
protected String |
serverName
Server name.
|
protected URI |
serverUri
Server URI.
|
protected winstone.Launcher |
winstone
Winstone server instance.
|
| Constructor and Description |
|---|
WinstoneLauncher() |
| 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 winstone.Launcher winstone
protected URI serverUri
protected String serverName
public static void main(String[] args) throws IOException
args - argsIOExceptionprotected void readInformation()
protected String readAsString(InputStream stream)
stream - stream to readprotected void startServer(String[] args) throws IOException
args - argsIOExceptionprotected 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.