org.nuiton.util.war
Class WinstoneLauncher

java.lang.Object
  extended by org.nuiton.util.war.WinstoneLauncher
All Implemented Interfaces:
ActionListener, MouseListener, EventListener

Deprecated. since 2.0, moved to nuiton-web 1.0, will be removed in 2.1

@Deprecated
public class WinstoneLauncher
extends Object
implements ActionListener, MouseListener

War main class launcher (winstone based). Based on winstone micro container. To use it : java -jar app-xxx.war

Since:
1.1.2
Version:
$Id: WinstoneLauncher.java 2007 2011-01-07 12:42:48Z fdesbois $
Author:
chatellier

Field Summary
protected  String serverName
          Deprecated. Server name.
protected  URI serverUri
          Deprecated. Server URI.
protected  winstone.Launcher winstone
          Deprecated. Winstone server instance.
 
Constructor Summary
WinstoneLauncher()
          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

winstone

protected winstone.Launcher winstone
Deprecated. 
Winstone server instance.


serverUri

protected URI serverUri
Deprecated. 
Server URI.


serverName

protected String serverName
Deprecated. 
Server name.

Constructor Detail

WinstoneLauncher

public WinstoneLauncher()
Deprecated. 
Method Detail

main

public static void main(String[] args)
                 throws IOException
Deprecated. 
Main method (used by war in manifest).

Parameters:
args - args
Throws:
IOException

readInformation

protected void readInformation()
Deprecated. 
Parse WEB-INF/web.xml file and get server display name.

Since:
1.1.3

readAsString

protected String readAsString(InputStream stream)
Deprecated. 
Read input stream as string. Code from commons io.

Parameters:
stream - stream to read
Returns:
content as string
Since:
1.1.3

startServer

protected void startServer(String[] args)
                    throws IOException
Deprecated. 
Launch servlet container.

Parameters:
args - args
Throws:
IOException

stopServer

protected void stopServer()
Deprecated. 
Shutdown server.


installSystemTray

protected void installSystemTray()
Deprecated. 
Install system tray to stop server.


actionPerformed

public void actionPerformed(ActionEvent e)
Deprecated. 
Specified by:
actionPerformed in interface ActionListener

openBrowser

protected void openBrowser()
Deprecated. 
Open browser.

Throws:
IOException

mouseClicked

public void mouseClicked(MouseEvent e)
Deprecated. 
Specified by:
mouseClicked in interface MouseListener

mousePressed

public void mousePressed(MouseEvent e)
Deprecated. 
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Deprecated. 
Specified by:
mouseReleased in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent e)
Deprecated. 
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Deprecated. 
Specified by:
mouseExited in interface MouseListener


Copyright © 2004-2011 CodeLutin. All Rights Reserved.