net.i2p.router.web
Class ConfigNetHelper

java.lang.Object
  extended by net.i2p.router.web.HelperBase
      extended by net.i2p.router.web.ConfigNetHelper

public class ConfigNetHelper
extends HelperBase

Used for both /config and /confignet


Field Summary
static int DEFAULT_SHARE_KBPS
           
(package private) static String PROP_I2NP_NTCP_AUTO_IP
           
(package private) static String PROP_I2NP_NTCP_AUTO_PORT
           
(package private) static String PROP_I2NP_NTCP_HOSTNAME
          copied from various private components
(package private) static String PROP_I2NP_NTCP_PORT
           
 
Fields inherited from class net.i2p.router.web.HelperBase
_context, _out, PROP_ADVANCED
 
Constructor Summary
ConfigNetHelper()
           
 
Method Summary
 Set<String> getAddresses()
           
 String getAddressSelector()
           
 String getChecked(String prop)
           
 String getConfiguredUdpPort()
          This should always be the actual internal SSU port, as UDPTransport udpates the config when it changes.
 String getDynamicKeysChecked()
           
 String getEnableLoadTesting()
          removed
 String getInboundBurstFactorBox()
           
 String getInboundBurstRate()
           
 String getInboundRate()
           
 String getInboundRateBits()
           
 String getIPv4FirewalledChecked()
           
 String getIPv6Checked(String mode)
          Combined SSU/NTCP Use SSU setting, then NTCP setting, then default
 String getLaptopChecked()
           
 String getNtcphostname()
           
 String getNtcpport()
           
 String getOutboundBurstFactorBox()
           
 String getOutboundBurstRate()
           
 String getOutboundRate()
           
 String getOutboundRateBits()
           
 String getRequireIntroductionsChecked()
          Deprecated. unused, to be fixed if needed
 int getShareBandwidth()
           
 String getSharePercentageBox()
           
 String getShareRateBits()
           
 String getTcpAutoIPChecked(int mode)
           
 String getTcpAutoPortChecked(int mode)
           
 String getUdpAutoIPChecked(int mode)
           
 String getUdpDisabledChecked()
          default false, inverse of default true property
 String getUdphostname()
           
 String getUdpIP()
           
 String getUdpPort()
          To reduce confusion caused by NATs, this is the current internal SSU port, not the external port.
 String getUpnpChecked()
          default true
 
Methods inherited from class net.i2p.router.web.HelperBase
_t, _t, _t, _x, isAdvanced, ngettext, setContextId, storeWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_I2NP_NTCP_HOSTNAME

static final String PROP_I2NP_NTCP_HOSTNAME
copied from various private components

See Also:
Constant Field Values

PROP_I2NP_NTCP_PORT

static final String PROP_I2NP_NTCP_PORT
See Also:
Constant Field Values

PROP_I2NP_NTCP_AUTO_PORT

static final String PROP_I2NP_NTCP_AUTO_PORT
See Also:
Constant Field Values

PROP_I2NP_NTCP_AUTO_IP

static final String PROP_I2NP_NTCP_AUTO_IP
See Also:
Constant Field Values

DEFAULT_SHARE_KBPS

public static final int DEFAULT_SHARE_KBPS
See Also:
Constant Field Values
Constructor Detail

ConfigNetHelper

public ConfigNetHelper()
Method Detail

getUdphostname

public String getUdphostname()

getNtcphostname

public String getNtcphostname()

getNtcpport

public String getNtcpport()

getUdpIP

public String getUdpIP()
Returns:
host or "unknown"

getUdpPort

public String getUdpPort()
To reduce confusion caused by NATs, this is the current internal SSU port, not the external port.


getConfiguredUdpPort

public String getConfiguredUdpPort()
This should always be the actual internal SSU port, as UDPTransport udpates the config when it changes.


getChecked

public String getChecked(String prop)
Parameters:
prop - must default to false

getDynamicKeysChecked

public String getDynamicKeysChecked()

getLaptopChecked

public String getLaptopChecked()

getIPv4FirewalledChecked

public String getIPv4FirewalledChecked()
Since:
0.9.20

getTcpAutoPortChecked

public String getTcpAutoPortChecked(int mode)

getTcpAutoIPChecked

public String getTcpAutoIPChecked(int mode)

getUdpAutoIPChecked

public String getUdpAutoIPChecked(int mode)

getUpnpChecked

public String getUpnpChecked()
default true


getUdpDisabledChecked

public String getUdpDisabledChecked()
default false, inverse of default true property

Since:
0.8.13

getRequireIntroductionsChecked

public String getRequireIntroductionsChecked()
Deprecated. unused, to be fixed if needed

This isn't updated for the new statuses, but it's commented out in the jsp.


getIPv6Checked

public String getIPv6Checked(String mode)
Combined SSU/NTCP Use SSU setting, then NTCP setting, then default

Since:
IPv6

getAddresses

public Set<String> getAddresses()

getAddressSelector

public String getAddressSelector()
Since:
IPv6

getInboundRate

public String getInboundRate()

getOutboundRate

public String getOutboundRate()

getInboundRateBits

public String getInboundRateBits()

getOutboundRateBits

public String getOutboundRateBits()

getShareRateBits

public String getShareRateBits()

getInboundBurstRate

public String getInboundBurstRate()

getOutboundBurstRate

public String getOutboundBurstRate()

getInboundBurstFactorBox

public String getInboundBurstFactorBox()

getOutboundBurstFactorBox

public String getOutboundBurstFactorBox()

getEnableLoadTesting

public String getEnableLoadTesting()
removed


getSharePercentageBox

public String getSharePercentageBox()

getShareBandwidth

public int getShareBandwidth()
Returns:
in KBytes per second