java.lang.Object
java.lang.Thread
Freenet.contrib.fproxy.HttpHandler
- All Implemented Interfaces:
- java.lang.Runnable
- public class HttpHandler
- extends java.lang.Thread
Thread to handle incoming HTTP connections for the ProxyServer
Nested classes inherited from class java.lang.Thread |
java.lang.Thread.UncaughtExceptionHandler |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
lf
protected static final char[] lf
ps
private ProxyServer ps
s
private java.net.Socket s
in
private java.io.InputStream in
out
private java.io.OutputStream out
ids
private static long ids
id
private long id
HttpHandler
public HttpHandler(java.net.Socket s,
ProxyServer ps)
throws java.io.IOException
- Creates a new HttpHandler communicating on Socket s for ProxyServer ps
run
public void run()
- Main routine to process an HTTP request
readTo
protected java.lang.String readTo(java.io.PushbackInputStream i,
char[] tms)
throws java.io.IOException,
java.io.EOFException
- Utility function to return String from InputStream until one of
the characters in tms is about to be read.