public class I2PTunnelHTTPServer extends I2PTunnelServer
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_POST_BAN_TIME |
static int |
DEFAULT_POST_MAX |
static int |
DEFAULT_POST_TOTAL_BAN_TIME |
static int |
DEFAULT_POST_TOTAL_MAX |
static int |
DEFAULT_POST_WINDOW |
static String |
OPT_POST_BAN_TIME |
static String |
OPT_POST_MAX |
static String |
OPT_POST_TOTAL_BAN_TIME |
static String |
OPT_POST_TOTAL_MAX |
static String |
OPT_POST_WINDOW
all of these in SECONDS
|
static String |
OPT_REJECT_INPROXY |
__serverId, _log, bidir, i2pss, l, localPort, PROP_UNIQUE_LOCAL, PROP_USE_SSL, readTimeout, remoteHost, remotePort, slock, sockMgr, sslLock, 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
|
boolean |
close(boolean forced) |
protected static String |
formatHeaders(Map<String,List<String>> headers,
StringBuilder command) |
void |
optionsUpdated(I2PTunnel tunnel)
Update the I2PSocketManager.
|
protected static Map<String,List<String>> |
readHeaders(InputStream in,
StringBuilder command,
String[] skipHeaders,
I2PAppContext ctx) |
void |
startRunning()
Start running the I2PTunnelServer.
|
getHandlerCount, getReadTimeout, getSocket, getSocket, run, setReadTimeout, shouldUsePool
connected, disconnected, errorOccurred, getId, getTunnel, isOpen, reportAbuse, routerDisconnected, setId, setName, setTunnel, toString
attachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, notifyEvent, unIgnoreEvents, waitEventValue
public static final String OPT_POST_WINDOW
public static final String OPT_POST_BAN_TIME
public static final String OPT_POST_TOTAL_BAN_TIME
public static final String OPT_POST_MAX
public static final String OPT_POST_TOTAL_MAX
public static final String OPT_REJECT_INPROXY
public static final int DEFAULT_POST_WINDOW
public static final int DEFAULT_POST_BAN_TIME
public static final int DEFAULT_POST_TOTAL_BAN_TIME
public static final int DEFAULT_POST_MAX
public static final int DEFAULT_POST_TOTAL_MAX
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)
public void startRunning()
I2PTunnelServer
startRunning
in class I2PTunnelServer
public boolean close(boolean forced)
close
in class I2PTunnelServer
public void optionsUpdated(I2PTunnel tunnel)
I2PTunnelServer
optionsUpdated
in class I2PTunnelServer
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