|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ccl.servlet.DebugServer
The debug server is a simple socket server that prints each incoming request to standard output as well as works as an echo server, just like in the Java Tutorial example. Its intended purposes is to quickly see HTTP GET or POST requests to learn and try something about this or other network protocols.
The user has to Ctrl-c to exit the process. The default port is 4444.
Field Summary | |
static int |
DEFAULT_PORT
|
Constructor Summary | |
DebugServer()
Create this object and invoke the run method if you want to start the server out of another object. |
Method Summary | |
void |
initialize(java.lang.String[] asArg,
java.lang.String sRCSHeader)
This method is invoked to setup the application. |
static void |
main(java.lang.String[] asArg)
|
void |
run()
This method contains the main batch logic. |
void |
setExit()
Implements 'ccl.util.Exitable' interface. |
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
Constructor Detail |
public DebugServer()
Method Detail |
public void setExit()
setExit
in interface Exitable
public void initialize(java.lang.String[] asArg, java.lang.String sRCSHeader)
public void run()
run
in interface java.lang.Runnable
public static void main(java.lang.String[] asArg)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |