net.i2p.i2ptunnel
Class I2PTunnelHTTPServer
java.lang.Object
net.i2p.i2ptunnel.I2PTunnelTask
net.i2p.i2ptunnel.I2PTunnelServer
net.i2p.i2ptunnel.I2PTunnelHTTPServer
- All Implemented Interfaces:
- EventDispatcher, java.lang.Runnable
- public class I2PTunnelHTTPServer
- extends I2PTunnelServer
Simple extension to the I2PTunnelServer that filters the HTTP
headers sent from the client to the server, replacing the Host
header with whatever this instance has been configured with.
Constructor Summary |
I2PTunnelHTTPServer(java.net.InetAddress host,
int port,
java.io.File privkey,
java.lang.String privkeyname,
java.lang.String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel)
|
I2PTunnelHTTPServer(java.net.InetAddress host,
int port,
java.io.InputStream privData,
java.lang.String privkeyname,
java.lang.String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel)
|
I2PTunnelHTTPServer(java.net.InetAddress host,
int port,
java.lang.String privData,
java.lang.String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel)
|
Method Summary |
void |
run()
|
Methods inherited from class net.i2p.i2ptunnel.I2PTunnelTask |
attachEventDispatcher, detachEventDispatcher, disconnected, errorOccurred, getEventDispatcher, getEvents, getEventValue, getId, getTunnel, ignoreEvents, isOpen, notifyEvent, reportAbuse, routerDisconnected, setId, setName, setTunnel, toString, unIgnoreEvents, waitEventValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
I2PTunnelHTTPServer
public I2PTunnelHTTPServer(java.net.InetAddress host,
int port,
java.lang.String privData,
java.lang.String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel)
I2PTunnelHTTPServer
public I2PTunnelHTTPServer(java.net.InetAddress host,
int port,
java.io.File privkey,
java.lang.String privkeyname,
java.lang.String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel)
I2PTunnelHTTPServer
public I2PTunnelHTTPServer(java.net.InetAddress host,
int port,
java.io.InputStream privData,
java.lang.String privkeyname,
java.lang.String spoofHost,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
- Overrides:
run
in class I2PTunnelServer