public class ConfigNetHelper extends HelperBase
| Modifier and Type | Field and Description |
|---|---|
static int | DEFAULT_SHARE_KBPSDefault share bandwidth in KBps |
(package private) static String | PROP_I2NP_NTCP_AUTO_IPNTCP auto IP property |
(package private) static String | PROP_I2NP_NTCP_AUTO_PORTNTCP auto port property |
(package private) static String | PROP_I2NP_NTCP_HOSTNAMEcopied from various private components |
(package private) static String | PROP_I2NP_NTCP_PORTNTCP port property |
_context, _log, _out, CHECKED, PROP_ADVANCED, SELECTED| Constructor and Description |
|---|
ConfigNetHelper()Creates a new instance of the network configuration helper. |
| Modifier and Type | Method and Description |
|---|---|
Set<String> | getAddresses()Get the set of addresses. |
String | getAddressSelector()Get the HTML for an address selector input. |
String | getConfiguredUdpPort()This should always be the actual internal SSU port, as UDPTransport udpates
the config when it changes. |
String | getDynamicKeysChecked()Get checked attribute for dynamic keys. |
String | getInboundBurstRate()Get the inbound burst rate as a decimal. |
String | getInboundBurstRateBits()Get the inbound burst rate in bits as a decimal. |
String | getInboundRate()Get the inbound rate as a decimal. |
String | getIPv4FirewalledChecked()Get checked attribute for IPv4 firewalled setting. |
String | getIPv6Checked(String mode)Combined SSU/NTCP
Use SSU setting, then NTCP setting, then default |
String | getIPv6FirewalledChecked()Get checked attribute for IPv6 firewalled setting. |
String | getLaptopChecked()Get checked attribute for laptop mode. |
String | getNtcphostname()Get the NTCP hostname. |
String | getNtcpport()Get the NTCP port. |
String | getOutboundBurstRate()Get the outbound burst rate as a decimal. |
String | getOutboundBurstRateBits()Get the outbound burst rate in bits as a decimal. |
String | getOutboundRate()Get the outbound rate as a decimal. |
int | getShareBandwidth()Get the share bandwidth. |
String | getSharePercentageBox()Get the share percentage selection box HTML. |
String | getShareRateBits()Get the share rate in bits as a decimal. |
String | getShareRateMegabits()Get the share rate in megabits as a decimal. |
String | getTcpAutoIPChecked(int mode)Get checked attribute for TCP auto IP. |
String | getTcpAutoPortChecked(int mode)Get checked attribute for TCP auto port. |
String | getUdpAutoIPChecked(int mode)Get checked attribute for UDP auto IP. |
String | getUdpDisabledChecked()default false, inverse of default true property |
String | getUdpEnabledChecked()default true |
String | getUdphostname()Get the external UDP hostname. |
String | getUdpIP()Get the UDP IP address. |
String | getUdpPort()To reduce confusion caused by NATs, this is the current internal SSU port,
not the external port. |
String | getUpnpChecked()Whether UPnP is enabled. |
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, setContextId, storeWriterpublic static final int DEFAULT_SHARE_KBPS
static final String PROP_I2NP_NTCP_AUTO_IP
static final String PROP_I2NP_NTCP_AUTO_PORT
static final String PROP_I2NP_NTCP_HOSTNAME
static final String PROP_I2NP_NTCP_PORT
public ConfigNetHelper()
public String getAddressSelector()
public String getConfiguredUdpPort()
public String getDynamicKeysChecked()
public String getInboundBurstRate()
public String getInboundBurstRateBits()
public String getInboundRate()
public String getIPv4FirewalledChecked()
public String getIPv6Checked(String mode)
mode - the IPv6 configuration modepublic String getIPv6FirewalledChecked()
public String getLaptopChecked()
public String getNtcphostname()
public String getNtcpport()
public String getOutboundBurstRate()
public String getOutboundBurstRateBits()
public String getOutboundRate()
public int getShareBandwidth()
public String getSharePercentageBox()
public String getShareRateBits()
public String getShareRateMegabits()
public String getTcpAutoIPChecked(int mode)
mode - the mode to checkpublic String getTcpAutoPortChecked(int mode)
mode - the mode to checkpublic String getUdpAutoIPChecked(int mode)
mode - the mode to checkpublic String getUdpDisabledChecked()
public String getUdpEnabledChecked()
public String getUdphostname()
public String getUdpIP()
public String getUdpPort()
public String getUpnpChecked()