|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xins.common.servlet.container.HTTPServletStarter
HTTP Server used to invoke the XINS Servlet.
Field Summary | |
static int |
DEFAULT_PORT_NUMBER
The default port number. |
Constructor Summary | |
HTTPServletStarter(File warFile)
Creates a new HTTPServletStarter for the specified WAR
file, on the default port, as a daemon thread. |
|
HTTPServletStarter(File warFile,
int port)
Creates a new HTTPServletStarter for the specified WAR
file, on the specified port, as a daemon thread. |
|
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. |
|
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 | |
static void |
main(String[] args)
Starts the Servlet container for the specific API. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEFAULT_PORT_NUMBER
Constructor Detail |
public HTTPServletStarter(File warFile) throws ServletException, IOException
HTTPServletStarter
for the specified WAR
file, on the default port, as a daemon thread.
A listener is started on the port immediately.
warFile
- the WAR file of the application to deploy, cannot be
null
.
ServletException
- if the servlet cannot be initialized.
IOException
- if the servlet container cannot be started.public HTTPServletStarter(File warFile, int port) throws ServletException, IOException
HTTPServletStarter
for the specified WAR
file, on the specified port, as a daemon thread.
A listener is started on the port immediately.
warFile
- the WAR file of the application to deploy, cannot be
null
.port
- the port to run the web server on.
ServletException
- if the servlet cannot be initialized.
IOException
- if the servlet container cannot be started.public HTTPServletStarter(File warFile, int port, boolean deamon) throws ServletException, IOException
HTTPServletStarter
for the specified WAR
file, on the specified port, optionally as a daemon thread.
A listener is started on the port immediately.
warFile
- The war file of the application to deploy, cannot be null
.port
- The port of the web server, cannot be null
.deamon
- true
if the thread listening to connection should be a
deamon thread, false
otherwise.
ServletException
- if the servlet cannot be initialized.
IOException
- if the servlet container cannot be started.public HTTPServletStarter(String servletClassName, int port, boolean deamon) throws ServletException, IOException
HTTPServletStarter
for the specified servlet
class, on the specified port, optionally as a daemon thread.
A listener is started on the port immediately.
servletClassName
- The name of the servlet to load, cannot be null
.port
- The port of the web server, cannot be null
.deamon
- true
if the thread listening to connection should be a
deamon thread, false
otherwise.
ServletException
- if the servlet cannot be initialized.
IOException
- if the servlet container cannot be started.Method Detail |
public static void main(String[] args)
args
- The command line arguments, the first argument should be the location
of 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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |