org.placelab.proxy
Class HTTPServer
java.lang.Object
org.placelab.proxy.SocketServer
org.placelab.proxy.HTTPServer
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- ServletServer
- public abstract class HTTPServer
- extends SocketServer
|
Constructor Summary |
HTTPServer(int port,
int threadCount,
java.lang.String label)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTPServer
public HTTPServer(int port,
int threadCount,
java.lang.String label)
serviceSocket
public void serviceSocket(java.net.Socket s)
- Specified by:
serviceSocket in class SocketServer
getByteArray
public byte[] getByteArray(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
getHeaders
public static java.util.Hashtable getHeaders(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
serviceRequest
public abstract HTTPResponse serviceRequest(HTTPRequest request)