net.i2p.i2ptunnel
public abstract class I2PTunnelHTTPClientBase extends I2PTunnelClientBase implements Runnable
Modifier and Type | Field and Description |
---|---|
protected static long |
__clientId
used to assign unique IDs to the threads / clients.
|
protected static long |
__requestId |
protected static File |
_errorDir |
protected List<String> |
_proxyList |
protected static int |
DEFAULT_READ_TIMEOUT |
protected static byte[] |
ERR_NO_OUTPROXY |
static String |
PROP_AUTH
all auth @since 0.8.2
|
static String |
PROP_OUTPROXY_AUTH |
static String |
PROP_OUTPROXY_PW |
static String |
PROP_OUTPROXY_PW_PREFIX |
static String |
PROP_OUTPROXY_USER |
static String |
PROP_OUTPROXY_USER_PREFIX
passwords for specific outproxies may be added with outproxyUsername.fooproxy.i2p=user and outproxyPassword.fooproxy.i2p=pw
|
static String |
PROP_PW |
static String |
PROP_PW_PREFIX
additional users may be added with proxyPassword.user=pw
|
static String |
PROP_USER |
_clientId, _context, _executor, _log, _ownDest, DEFAULT_CONNECT_TIMEOUT, dest, l, mySockets, sockLock, sockMgr
open
Constructor and Description |
---|
I2PTunnelHTTPClientBase(int localPort,
boolean ownDest,
Logging l,
EventDispatcher notifyThis,
String handlerName,
I2PTunnel tunnel) |
I2PTunnelHTTPClientBase(int localPort,
Logging l,
I2PSocketManager sktMgr,
I2PTunnel tunnel,
EventDispatcher notifyThis,
long clientId) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
authorize(Socket s,
long requestId,
String authorization) |
protected String |
getPrefix(long requestId) |
protected String |
selectProxy() |
buildSocketManager, buildSocketManager, buildSocketManager, buildSocketManager, clientConnectionRun, close, closeSocket, createI2PSocket, createI2PSocket, getDefaultOptions, getDefaultOptions, getListenHost, getLocalPort, getSocketManager, getSocketManager, getSocketManager, manageConnection, run, startRunning, verifySocketManager
attachEventDispatcher, detachEventDispatcher, disconnected, errorOccurred, getEventDispatcher, getEvents, getEventValue, getId, getTunnel, ignoreEvents, isOpen, notifyEvent, reportAbuse, routerDisconnected, setId, setName, setTunnel, toString, unIgnoreEvents, waitEventValue
protected static final byte[] ERR_NO_OUTPROXY
protected static volatile long __clientId
protected static final File _errorDir
protected static final int DEFAULT_READ_TIMEOUT
protected static long __requestId
public static final String PROP_AUTH
public static final String PROP_USER
public static final String PROP_PW
public static final String PROP_PW_PREFIX
public static final String PROP_OUTPROXY_AUTH
public static final String PROP_OUTPROXY_USER
public static final String PROP_OUTPROXY_PW
public static final String PROP_OUTPROXY_USER_PREFIX
public static final String PROP_OUTPROXY_PW_PREFIX
public I2PTunnelHTTPClientBase(int localPort, boolean ownDest, Logging l, EventDispatcher notifyThis, String handlerName, I2PTunnel tunnel) throws IllegalArgumentException
IllegalArgumentException
public I2PTunnelHTTPClientBase(int localPort, Logging l, I2PSocketManager sktMgr, I2PTunnel tunnel, EventDispatcher notifyThis, long clientId) throws IllegalArgumentException
IllegalArgumentException