org.nuiton.util.war
Class JettyLauncher

java.lang.Object
  extended by org.nuiton.util.war.JettyLauncher
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 JettyLauncher
extends Object
implements ActionListener, MouseListener

War main class launcher (jetty based). To use it : java -jar app-xxx.war

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

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

jettyServer

protected org.eclipse.jetty.server.Server jettyServer
Deprecated. 
Jetty server instance.


serverUri

protected URI serverUri
Deprecated. 
Server URI.


port

protected int port
Deprecated. 
Default port.


serverName

protected String serverName
Deprecated. 
Server name.

Constructor Detail

JettyLauncher

public JettyLauncher()
Deprecated. 
Method Detail

main

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

Parameters:
args - args
Throws:
Exception

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 Exception
Deprecated. 
Launch servlet container.

Parameters:
args - args
Throws:
Exception

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.