Package net.i2p.router.web.helpers
Class NetDbHelper
java.lang.Object
net.i2p.router.web.FormHandler
net.i2p.router.web.helpers.NetDbHelper
/netdb
A FormHandler since 0.9.38.
Most output is generated in NetDbRenderer and SybilRender.
-
Field Summary
Fields inherited from class net.i2p.router.web.FormHandler
_action, _context, _log, _method, _out, _requestWrapper, _settings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
call for non-text-mode browsersstoreWriter() must be called previouslyOverride to save itprotected void
Now we're a FormHandlervoid
void
void
setCountry
(String c) void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
setSsucaps
(String f) void
void
For form, same as above but with a length checkvoid
void
void
setVersion
(String v) Methods inherited from class net.i2p.router.web.FormHandler
_t, _t, _t, _x, addFormError, addFormErrorNoEscape, addFormNotice, addFormNoticeNoEscape, getAllMessages, getErrors, getJettyString, getNotices, isAdvanced, setAction, setContextId, setNonce, setRequestWrapper, setSettings, storeMethod, storeNonces, storeWriter
-
Constructor Details
-
NetDbHelper
public NetDbHelper()
-
-
Method Details
-
setRouter
-
setVersion
- Since:
- 0.9.21
-
setCountry
- Since:
- 0.9.21
-
setFamily
- Since:
- 0.9.28
-
setCaps
- Since:
- 0.9.28
-
setIp
- Since:
- 0.9.28
-
setSybil
- Since:
- 0.9.28
-
setSybil2
For form, same as above but with a length check- Since:
- 0.9.28
-
setPort
- Since:
- 0.9.28
-
setType
- Since:
- 0.9.28
-
setEtype
- Since:
- 0.9.49
-
setMtu
- Since:
- 0.9.28
-
setIpv6
- Since:
- 0.9.28
-
setSsucaps
- Since:
- 0.9.28
-
setTransport
- Since:
- 0.9.36
-
setCost
- Since:
- 0.9.28
-
setMode
- Since:
- 0.9.38
-
setDate
- Since:
- 0.9.38
-
setFull
-
setLease
-
setLeaseset
- Since:
- 0.9.57
-
setLimit
- Since:
- 0.9.36
-
setPage
- Since:
- 0.9.36
-
allowGraphical
public void allowGraphical()call for non-text-mode browsers- Since:
- 0.9.1
-
getNewNonce
Override to save it- Overrides:
getNewNonce
in classFormHandler
- Returns:
- a new random long as a String
- Since:
- 0.9.38
-
processForm
protected void processForm()Now we're a FormHandler- Specified by:
processForm
in classFormHandler
- Since:
- 0.9.38
-
getNetDbSummary
storeWriter() must be called previously
-