net.i2p.i2ptunnel
public class I2PTunnelHTTPServer extends I2PTunnelServer
__serverId, _log, bidir, i2pss, localPort, readTimeout, remoteHost, remotePort, slock, sockMgr, task
open
Constructor and Description |
---|
I2PTunnelHTTPServer(InetAddress host,
int port,
File privkey,
String privkeyname,
String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
I2PTunnelHTTPServer(InetAddress host,
int port,
InputStream privData,
String privkeyname,
String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
I2PTunnelHTTPServer(InetAddress host,
int port,
String privData,
String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel) |
Modifier and Type | Method and Description |
---|---|
protected void |
blockingHandle(I2PSocket socket)
Called by the thread pool of I2PSocket handlers
|
protected static String |
formatHeaders(Map<String,List<String>> headers,
StringBuilder command) |
protected static Map<String,List<String>> |
readHeaders(InputStream in,
StringBuilder command,
String[] skipHeaders,
I2PAppContext ctx) |
close, getHandlerCount, getReadTimeout, run, setReadTimeout, shouldUsePool, startRunning
attachEventDispatcher, detachEventDispatcher, disconnected, errorOccurred, getEventDispatcher, getEvents, getEventValue, getId, getTunnel, ignoreEvents, isOpen, notifyEvent, reportAbuse, routerDisconnected, setId, setName, setTunnel, toString, unIgnoreEvents, waitEventValue
public I2PTunnelHTTPServer(InetAddress host, int port, String privData, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel)
public I2PTunnelHTTPServer(InetAddress host, int port, File privkey, String privkeyname, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel)
public I2PTunnelHTTPServer(InetAddress host, int port, InputStream privData, String privkeyname, String spoofHost, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel)
protected void blockingHandle(I2PSocket socket)
blockingHandle
in class I2PTunnelServer
protected static String formatHeaders(Map<String,List<String>> headers, StringBuilder command)
protected static Map<String,List<String>> readHeaders(InputStream in, StringBuilder command, String[] skipHeaders, I2PAppContext ctx) throws IOException
IOException