All Packages Class Hierarchy This Package Previous Next Index
Class org.apache.jserv.JServHandler
java.lang.Object
|
+----java.lang.Thread
|
+----org.apache.jserv.JServHandler
- public class JServHandler
- extends Thread
- implements JServSendError, JServDebug. DebugConstants
JServHandler
is the entry point to the Java part of
mod_jserv.
It sets up the server, initalizes everything, and listens on a TCP
port for requests for the server. When it gets a request, it
launches a JServConnection thread.
- Author:
- Alexei Kosut
-
auth
-
-
DEFAULT_PORT
-
-
listen_socket
-
-
localhostcheck
-
-
port
-
-
signal_handler
-
-
version
-
-
JServHandler(int, String)
-
-
fail(Exception, String)
-
-
main(String[])
-
-
run()
- The body of the server thread.
-
sendError(int, String)
- Report a problem encountered while initializing.
-
sendError(Throwable)
- Report an exception or error encountered while loading a servlet.
version
public static final String version
DEFAULT_PORT
public static final int DEFAULT_PORT
port
protected static int port
signal_handler
protected static JServSignals signal_handler
listen_socket
protected ServerSocket listen_socket
auth
protected static String auth
localhostcheck
protected static boolean localhostcheck
JServHandler
public JServHandler(int port,
String auth)
main
public static void main(String args[])
fail
public static void fail(Exception e,
String msg)
sendError
public void sendError(int sc,
String msg)
- Report a problem encountered while initializing.
sendError
public void sendError(Throwable e)
- Report an exception or error encountered while loading a servlet.
run
public void run()
- The body of the server thread. Loop forever, listening for and
accepting connections from clients. For each connection,
create a JServConnection object to handle communication through the
new Socket.
- Overrides:
- run in class Thread
All Packages Class Hierarchy This Package Previous Next Index