net.i2p.i2ptunnel
Class I2PTunnelHTTPBidirProxy

java.lang.Object
  extended by net.i2p.util.EventDispatcherImpl
      extended by net.i2p.i2ptunnel.I2PTunnelTask
          extended by net.i2p.i2ptunnel.I2PTunnelClientBase
              extended by net.i2p.i2ptunnel.I2PTunnelHTTPClientBase
                  extended by net.i2p.i2ptunnel.I2PTunnelHTTPClient
                      extended by net.i2p.i2ptunnel.I2PTunnelHTTPBidirProxy
All Implemented Interfaces:
Runnable, EventDispatcher

public class I2PTunnelHTTPBidirProxy
extends I2PTunnelHTTPClient
implements Runnable

Reuse HTTP server's I2PSocketManager for a proxy with no outproxy capability.

Author:
sponge

Nested Class Summary
 
Nested classes/interfaces inherited from class net.i2p.i2ptunnel.I2PTunnelHTTPClientBase
I2PTunnelHTTPClientBase.AuthResult
 
Field Summary
 
Fields inherited from class net.i2p.i2ptunnel.I2PTunnelHTTPClient
AUTH_REALM, DEFAULT_JUMP_SERVERS, LOCAL_SERVER, PROP_DISABLE_HELPER, PROP_JUMP_SERVERS, PROP_REFERER, PROP_USER_AGENT, PROP_VIA
 
Fields inherited from class net.i2p.i2ptunnel.I2PTunnelHTTPClientBase
__clientId, __requestId, _proxyList, BASIC_AUTH, DEFAULT_READ_TIMEOUT, DIGEST_AUTH, ERR_NO_OUTPROXY, PROP_AUTH, PROP_OUTPROXY_AUTH, PROP_OUTPROXY_PW, PROP_OUTPROXY_PW_PREFIX, PROP_OUTPROXY_USER, PROP_OUTPROXY_USER_PREFIX, PROP_PROXY_DIGEST_PREFIX, PROP_PROXY_DIGEST_SUFFIX, PROP_PW, PROP_PW_PREFIX, PROP_USER
 
Fields inherited from class net.i2p.i2ptunnel.I2PTunnelClientBase
_clientId, _context, _log, _ownDest, DEFAULT_CONNECT_TIMEOUT, dest, l, mySockets, sockLock, sockMgr, ss
 
Fields inherited from class net.i2p.i2ptunnel.I2PTunnelTask
open
 
Constructor Summary
I2PTunnelHTTPBidirProxy(int localPort, Logging l, I2PSocketManager sockMgr, I2PTunnel tunnel, EventDispatcher notifyThis, long clientId)
           
 
Method Summary
 
Methods inherited from class net.i2p.i2ptunnel.I2PTunnelHTTPClient
_, _, _, clientConnectionRun, close, getDefaultOptions, getDefaultOptions, getRealm, startRunning, writeFooter
 
Methods inherited from class net.i2p.i2ptunnel.I2PTunnelHTTPClientBase
authorize, getAuthError, getErrorPage, getErrorPage, getPrefix, isDigestAuthRequired, selectProxy
 
Methods inherited from class net.i2p.i2ptunnel.I2PTunnelClientBase
buildSocketManager, buildSocketManager, buildSocketManager, buildSocketManager, closeSocket, createI2PSocket, createI2PSocket, getClientExecutor, getListenHost, getLocalPort, getSocketManager, getSocketManager, getSocketManager, killClientExecutor, manageConnection, optionsUpdated, run, verifySocketManager
 
Methods inherited from class net.i2p.i2ptunnel.I2PTunnelTask
connected, disconnected, errorOccurred, getId, getTunnel, isOpen, reportAbuse, routerDisconnected, setId, setName, setTunnel, toString
 
Methods inherited from class net.i2p.util.EventDispatcherImpl
attachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, notifyEvent, unIgnoreEvents, waitEventValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Constructor Detail

I2PTunnelHTTPBidirProxy

public I2PTunnelHTTPBidirProxy(int localPort,
                               Logging l,
                               I2PSocketManager sockMgr,
                               I2PTunnel tunnel,
                               EventDispatcher notifyThis,
                               long clientId)
Throws:
IllegalArgumentException - if the I2PTunnel does not contain valid config to contact the router