com.aelitis.azureus.core.proxy
Interface AEProxyAddressMapper

All Known Implementing Classes:
AEProxyAddressMapperImpl

public interface AEProxyAddressMapper

Author:
parg

Nested Class Summary
static interface AEProxyAddressMapper.AppliedPortMapping
           
static interface AEProxyAddressMapper.PortMapping
           
 
Field Summary
static java.lang.String MAP_PROPERTY_DISABLE_AZ_MESSAGING
           
static java.lang.String MAP_PROPERTY_PROTOCOL_QUALIFIER
           
 
Method Summary
 AEProxyAddressMapper.AppliedPortMapping applyPortMapping(java.net.InetAddress address, int port)
           
 java.lang.String externalise(java.lang.String address)
           
 java.net.URL externalise(java.net.URL url)
           
 java.lang.String internalise(java.lang.String address)
          SOCKS 5 is limited to 255 char DNS names.
 java.net.URL internalise(java.net.URL url)
           
 AEProxyAddressMapper.PortMapping registerPortMapping(int local_port, java.lang.String ip)
           
 AEProxyAddressMapper.PortMapping registerPortMapping(int local_port, java.lang.String ip, java.util.Map<java.lang.String,java.lang.Object> properties)
           
 

Field Detail

MAP_PROPERTY_DISABLE_AZ_MESSAGING

static final java.lang.String MAP_PROPERTY_DISABLE_AZ_MESSAGING
See Also:
Constant Field Values

MAP_PROPERTY_PROTOCOL_QUALIFIER

static final java.lang.String MAP_PROPERTY_PROTOCOL_QUALIFIER
See Also:
Constant Field Values
Method Detail

internalise

java.lang.String internalise(java.lang.String address)
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)

Parameters:
address -
Returns:

externalise

java.lang.String externalise(java.lang.String address)

internalise

java.net.URL internalise(java.net.URL url)

externalise

java.net.URL externalise(java.net.URL url)

registerPortMapping

AEProxyAddressMapper.PortMapping registerPortMapping(int local_port,
                                                     java.lang.String ip)

registerPortMapping

AEProxyAddressMapper.PortMapping registerPortMapping(int local_port,
                                                     java.lang.String ip,
                                                     java.util.Map<java.lang.String,java.lang.Object> properties)

applyPortMapping

AEProxyAddressMapper.AppliedPortMapping applyPortMapping(java.net.InetAddress address,
                                                         int port)