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
All Methods Instance Methods Concrete Methods 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 Detail
-
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
-
-
Method Detail
-
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
public void setSave(String moo)
-
setRecheckReachability
public void setRecheckReachability(String moo)
-
setRequireIntroductions
public void setRequireIntroductions(String moo)
-
setDynamicKeys
public void setDynamicKeys(String moo)
-
setEnableloadtesting
public void setEnableloadtesting(String moo)
-
setUdpAutoIP
public void setUdpAutoIP(String mode)
-
setNtcpAutoIP
public void setNtcpAutoIP(String mode)
-
setNtcpAutoPort
public void setNtcpAutoPort(String mode)
-
setUpnp
public void setUpnp(String moo)
-
setLaptop
public void setLaptop(String moo)
-
setIPv4Firewalled
public void setIPv4Firewalled(String moo)
- Since:
- 0.9.20
-
setIPv6Firewalled
public void setIPv6Firewalled(String moo)
- Since:
- 0.9.28
-
setHostname
public void setHostname(String hostname)
-
setTcpPort
public void setTcpPort(String port)
-
setNtcphost
public void setNtcphost(String host)
-
setNtcpport
public void setNtcpport(String port)
-
setUdpHost1
public void setUdpHost1(String host)
-
setUdpPort
public void setUdpPort(String port)
-
setInboundrate
public void setInboundrate(String rate)
-
setOutboundrate
public void setOutboundrate(String rate)
-
setSharePercentage
public void setSharePercentage(String pct)
-
setRatesOnly
public void setRatesOnly(String foo)
- Since:
- 0.8.12
-
setDisableUDP
public void setDisableUDP(String foo)
- Since:
- 0.8.13
-
setIpv6
public void setIpv6(String mode)
- Since:
- IPv6
-
-