Java Web Server...
This software is a Java Servlet webserver written in Java.
The server works
on Windows, Linux and BSD operating systems.
The java web server implements the Java Servlets API.
The server is multithreaded thread pool deisign and
allows for JSP Scripts and Axis XML SOAP web services.
Digital certificates are supported
and can be used for an encrypted
seucure socket layer https web servers.
The server allso implemnets the Common Gateway Interface (CGI)
protocol.
The server can also be run as an NT Service on Microsoft Windows operating systems.
Download:
httpd.zip - this file is an archive containing the Java Web Server sorce code, directory structure and compiled .jar files
Configuration:
httpd.properties - confiuration file
server.port - this is the port the server will listen for connections on (80 is http and 443 is https)
server.backlog - is a value passed to the operating system telling it how big to make the backlog of connnections
server.connnection.queue.max.size - the maximum number of connections in the thread pools queue
server.accept.thread.pool.size - this is the number of threads used to call the Socket.accept() method for fast connection
queueing
server.min.handler.thread.pool.size - minumum number of threads in the thread pool
server.max.handler.thread.pool.size - maximum number of threads in the thread pool
server.headler.thread.timout - how long of a time with no connections to wait before shrinking the thread pool thread list
server.ifAddress - the domain name or ip address of the server
server.default.document - the name of the default web document (index.html)
server.timeout - a time value for when their is no data is read from the client connection that
the server closes the connection
server.max.header - maximum number of HTTP headers allowed
server.max.buffer - how big to make the buffer for reading and writing information from the web client
server.type - TEXT is plain socket input and output; TLS is secure socket layer encrypted network input and output
server.keyfile - the file with the digital certificate in the file
server.keyfile.passphrase - password for the digital certificate key file
server.document.root - the web server document root
server.error.page - the HTTP error page
server.servelt.log.file - the servelt log file
server.temp.dir - temporary file directory
server.run.clean.thread.every - check to shrink the thread pool of threads every N seconds
content.type.html - content type for files with the file extention .html (text/html)
content.type.txt - content type for files with the file extention .txt (text/plain)
server.session.management - file or memory for HTTP session data for web clients (note: the HTTP session is inseucure)
server.session.save.dir - session data directory in session is in file mode
servlet.n - the number of servlet bindings (insted of http://matthewcoan.com/servlet/ChatServlet you could bind it to
http://matthewcoan.com/chat
servlet.1.pattern - the names that call the servlet as a regular expression
servlet.1.class - the name of the servelt class file
filter.n - the number of filter servlets
filter.1.name - the name of the filter
filter.1.className - the name of the filter class name
filter.1.pattern - the regular expression used to apply the filter to a web request
Example Source Code:
redir.java - redirect example
cookie.java - cookie example servlet
hello2.java - hello world example servlet
session.java - session servlet
ChatService.jws - SOAP Axis chat service
web_service_chat.html - SOAP Axis chat service
test.jsp - test java server pages script (JSP)