| java.lang.Object org.xins.common.servlet.container.HTTPServletStarter
HTTPServletStarter | public class HTTPServletStarter (Code) | | HTTP Server used to invoke the XINS Servlet.
version: $Revision: 1.26 $ $Date: 2007/09/18 08:45:08 $ author: Anthony Goubard |
Constructor Summary | |
public | HTTPServletStarter(File warFile) Creates a new HTTPServletStarter for the specified WAR
file, on the default port, as a daemon thread. | public | HTTPServletStarter(File warFile, int port) Creates a new HTTPServletStarter for the specified WAR
file, on the specified port, as a daemon thread. | public | HTTPServletStarter(File warFile, int port, boolean deamon) Creates a new HTTPServletStarter for the specified WAR
file, on the specified port, optionally as a daemon thread. | public | HTTPServletStarter(File warFile, int port, boolean deamon, int loaderMode) Creates a new HTTPServletStarter for the specified servlet
class, on the specified port, optionally as a daemon thread. | public | HTTPServletStarter(String servletClassName, int port, boolean deamon) Creates a new HTTPServletStarter for the specified servlet
class, on the specified port, optionally as a daemon thread. |
Method Summary | |
public static void | main(String[] args) Starts the Servlet container for the specific API. |
DEFAULT_PORT_NUMBER | final public static int DEFAULT_PORT_NUMBER(Code) | | The default port number.
|
HTTPServletStarter | public HTTPServletStarter(File warFile) throws Exception(Code) | | Creates a new HTTPServletStarter for the specified WAR
file, on the default port, as a daemon thread.
A listener is started on the port immediately.
Parameters: warFile - the WAR file of the application to deploy, cannot benull . throws: ServletException - if the servlet cannot be initialized. throws: IOException - if the servlet container cannot be started. |
HTTPServletStarter | public HTTPServletStarter(File warFile, int port) throws Exception(Code) | | Creates a new HTTPServletStarter for the specified WAR
file, on the specified port, as a daemon thread.
A listener is started on the port immediately.
Parameters: warFile - the WAR file of the application to deploy, cannot benull . Parameters: port - the port to run the web server on. throws: ServletException - if the servlet cannot be initialized. throws: IOException - if the servlet container cannot be started. |
HTTPServletStarter | public HTTPServletStarter(File warFile, int port, boolean deamon) throws Exception(Code) | | Creates a new HTTPServletStarter for the specified WAR
file, on the specified port, optionally as a daemon thread.
A listener is started on the port immediately.
Parameters: warFile - The war file of the application to deploy, cannot be null . Parameters: port - The port of the web server, cannot be null . Parameters: deamon - true if the thread listening to connection should be adeamon thread, false otherwise. throws: ServletException - if the servlet cannot be initialized. throws: IOException - if the servlet container cannot be started. |
HTTPServletStarter | public HTTPServletStarter(File warFile, int port, boolean deamon, int loaderMode) throws Exception(Code) | | Creates a new HTTPServletStarter for the specified servlet
class, on the specified port, optionally as a daemon thread.
A listener is started on the port immediately.
Parameters: servletClassName - The name of the servlet to load, cannot be null . Parameters: port - The port of the web server, cannot be null . Parameters: deamon - true if the thread listening to connection should be adeamon thread, false otherwise. Parameters: loaderMode - the way the ClassLoader should locate and load the classes.See ServletClassLoader]. throws: ServletException - if the servlet cannot be initialized. throws: IOException - if the servlet container cannot be started. since: XINS 2.1. |
HTTPServletStarter | public HTTPServletStarter(String servletClassName, int port, boolean deamon) throws Exception(Code) | | Creates a new HTTPServletStarter for the specified servlet
class, on the specified port, optionally as a daemon thread.
A listener is started on the port immediately.
Parameters: servletClassName - The name of the servlet to load, cannot be null . Parameters: port - The port of the web server, cannot be null . Parameters: deamon - true if the thread listening to connection should be adeamon thread, false otherwise. throws: ServletException - if the servlet cannot be initialized. throws: IOException - if the servlet container cannot be started. |
main | public static void main(String[] args)(Code) | | Starts the Servlet container for the specific API.
Parameters: args - The command line arguments, the first argument should be the locationof the WAR file or the name of the class of the servlet to load,the optional second argument is the port number.If no port number is specified, 8080 is used as default. |
|
|