com.aelitis.azureus.core.proxy.impl
Class AEProxyAddressMapperImpl
java.lang.Object
com.aelitis.azureus.core.proxy.impl.AEProxyAddressMapperImpl
- All Implemented Interfaces:
- AEProxyAddressMapper
public class AEProxyAddressMapperImpl
- extends Object
- implements AEProxyAddressMapper
- Author:
- parg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
singleton
protected static final AEProxyAddressMapper singleton
enabled
protected boolean enabled
prefix
protected String prefix
next_value
protected long next_value
map
protected final Map<String,String> map
reverse_map
protected final Map<String,String> reverse_map
this_mon
protected final AEMonitor this_mon
AEProxyAddressMapperImpl
protected AEProxyAddressMapperImpl()
getSingleton
public static AEProxyAddressMapper getSingleton()
internalise
public String internalise(String address)
- Description copied from interface:
AEProxyAddressMapper
- SOCKS 5 is limited to 255 char DNS names. So for longer ones (e.g. I2P 'names')
we have to replace then with somethin shorter to get through the SOCKS layer
and then remap them on the otherside.
These functions are only active if a SOCKS proxy is enabled and looping back
(in process is the assumption)
- Specified by:
internalise
in interface AEProxyAddressMapper
- Returns:
externalise
public String externalise(String address)
- Specified by:
externalise
in interface AEProxyAddressMapper
internalise
public URL internalise(URL url)
- Specified by:
internalise
in interface AEProxyAddressMapper
externalise
public URL externalise(URL url)
- Specified by:
externalise
in interface AEProxyAddressMapper
registerPortMapping
public AEProxyAddressMapper.PortMapping registerPortMapping(int local_port,
String ip)
- Specified by:
registerPortMapping
in interface AEProxyAddressMapper
registerPortMapping
public AEProxyAddressMapper.PortMapping registerPortMapping(int local_port,
String ip,
Map<String,Object> properties)
- Specified by:
registerPortMapping
in interface AEProxyAddressMapper
applyPortMapping
public AEProxyAddressMapper.AppliedPortMapping applyPortMapping(InetAddress address,
int port)
- Specified by:
applyPortMapping
in interface AEProxyAddressMapper