Package net.i2p.router.web.helpers
Class ConfigNetHelper
- java.lang.Object
-
- net.i2p.router.web.HelperBase
-
- net.i2p.router.web.helpers.ConfigNetHelper
-
public class ConfigNetHelper extends HelperBase
Used for both /config and /confignet
-
-
Field Summary
Fields Modifier and Type Field Description 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, CHECKED, PROP_ADVANCED, SELECTED
-
-
Constructor Summary
Constructors Constructor Description ConfigNetHelper()
-
Method Summary
-
Methods inherited from class net.i2p.router.web.HelperBase
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, setContextId, storeWriter
-
-
-
-
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
-
-
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.
-
getDynamicKeysChecked
public String getDynamicKeysChecked()
-
getLaptopChecked
public String getLaptopChecked()
-
getIPv4FirewalledChecked
public String getIPv4FirewalledChecked()
- Since:
- 0.9.20
-
getIPv6FirewalledChecked
public String getIPv6FirewalledChecked()
- Since:
- 0.9.28
-
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
-
getUdpEnabledChecked
public String getUdpEnabledChecked()
default true- Since:
- 0.9.35
-
getRequireIntroductionsChecked
@Deprecated public String getRequireIntroductionsChecked()
Deprecated.unused, to be fixed if neededThis 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
-
getAddressSelector
public String getAddressSelector()
- Since:
- IPv6
-
getInboundRate
public String getInboundRate()
- Returns:
- decimal
-
getOutboundRate
public String getOutboundRate()
- Returns:
- decimal
-
getInboundBurstRateBits
public String getInboundBurstRateBits()
- Returns:
- decimal
-
getOutboundBurstRateBits
public String getOutboundBurstRateBits()
- Returns:
- decimal
-
getShareRateBits
public String getShareRateBits()
- Returns:
- decimal
-
getInboundBurstRate
public String getInboundBurstRate()
- Returns:
- decimal
-
getOutboundBurstRate
public String getOutboundBurstRate()
- Returns:
- decimal
-
getSharePercentageBox
public String getSharePercentageBox()
-
getShareBandwidth
public int getShareBandwidth()
- Returns:
- in binary KBytes per second
-
-