proproxy
Class ProHTTPListener
java.lang.Object
|
+--proproxy.ProAbstractTCPListener
|
+--proproxy.ProHTTPListener
- All Implemented Interfaces:
- java.lang.Runnable
- public class ProHTTPListener
- extends ProAbstractTCPListener
ProHTTPListener
The HTTP connection listener. Waits for a new connection, creates a new
ProHTTPProcessor for each new connection. ProHTTPProcessors are cached in a
stack. Each ProHTTPProcessor puts itself back to the cache when it is done
so that it can be used for the next request.
You are free to use this code and to make modifications provided
this notice is retained.
If you found this useful, please add a note of acknowledgement to my
guestbook.
If you would like to report a bug or suggest some improvements,
you are most welcome. I will be happy to help you use this piece of code.
- Version:
- 1.10, 28th Jan, 2001
- Author:
- Tanmay K. Mohapatra
Constructor Summary |
ProHTTPListener(int iListenPort,
java.lang.String sIncludeList,
java.lang.String sExcludeList)
Save the connection parameters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProHTTPListener
public ProHTTPListener(int iListenPort,
java.lang.String sIncludeList,
java.lang.String sExcludeList)
- Save the connection parameters
createAndProcessRequest
public void createAndProcessRequest(java.net.Socket newSocket)
- Overrides:
createAndProcessRequest
in class ProAbstractTCPListener
processRequest
public void processRequest(java.lang.Object processor,
java.net.Socket newSocket)
- Overrides:
processRequest
in class ProAbstractTCPListener