Package net.i2p.router.web.helpers
Class ConfigNetHandler
java.lang.Object
net.i2p.router.web.FormHandler
net.i2p.router.web.helpers.ConfigNetHandler
public class ConfigNetHandler extends FormHandler
Handler to deal with form submissions from the main config form and act
upon the values.
Used for both /config and /confignet
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
DEF_BURST_PCT
(package private) static int
DEF_BURST_TIME
Fields inherited from class net.i2p.router.web.FormHandler
_action, _context, _log, _method, _out, _requestWrapper, _settings
-
Constructor Summary
Constructors Constructor Description ConfigNetHandler()
-
Method Summary
Modifier and Type Method Description protected void
processForm()
Implement this to perform the final processing (in turn, adding formNotice and formError messages, etc) Will only be called if _action is non-null and the nonce is valid.void
setDisableUDP(String foo)
void
setDynamicKeys(String moo)
void
setEnableloadtesting(String moo)
void
setHostname(String hostname)
void
setInboundrate(String rate)
void
setIPv4Firewalled(String moo)
void
setIpv6(String mode)
void
setIPv6Firewalled(String moo)
void
setLaptop(String moo)
void
setNtcpAutoIP(String mode)
void
setNtcpAutoPort(String mode)
void
setNtcphost(String host)
void
setNtcpport(String port)
void
setOutboundrate(String rate)
void
setRatesOnly(String foo)
void
setRecheckReachability(String moo)
void
setRequireIntroductions(String moo)
void
setSave(String moo)
void
setSharePercentage(String pct)
void
setTcpPort(String port)
void
setUdpAutoIP(String mode)
void
setUdpHost1(String host)
void
setUdpPort(String port)
void
setUpnp(String moo)
Methods inherited from class net.i2p.router.web.FormHandler
_t, _t, _t, _x, addFormError, addFormErrorNoEscape, addFormNotice, addFormNoticeNoEscape, getAllMessages, getErrors, getJettyString, getNewNonce, getNotices, isAdvanced, setAction, setContextId, setNonce, setRequestWrapper, setSettings, storeMethod, storeNonces, storeWriter
-
Field Details
-
DEF_BURST_PCT
static final int DEF_BURST_PCT- See Also:
- Constant Field Values
-
DEF_BURST_TIME
static final int DEF_BURST_TIME- See Also:
- Constant Field Values
-
-
Constructor Details
-
ConfigNetHandler
public ConfigNetHandler()
-
-
Method Details
-
processForm
protected void processForm()Description copied from class:FormHandler
Implement this to perform the final processing (in turn, adding formNotice and formError messages, etc) Will only be called if _action is non-null and the nonce is valid.- Specified by:
processForm
in classFormHandler
-
setSave
-
setRecheckReachability
-
setRequireIntroductions
-
setDynamicKeys
-
setEnableloadtesting
-
setUdpAutoIP
-
setNtcpAutoIP
-
setNtcpAutoPort
-
setUpnp
-
setLaptop
-
setIPv4Firewalled
- Since:
- 0.9.20
-
setIPv6Firewalled
- Since:
- 0.9.28
-
setHostname
-
setTcpPort
-
setNtcphost
-
setNtcpport
-
setUdpHost1
-
setUdpPort
-
setInboundrate
-
setOutboundrate
-
setSharePercentage
-
setRatesOnly
- Since:
- 0.8.12
-
setDisableUDP
- Since:
- 0.8.13
-
setIpv6
- Since:
- IPv6
-