Package net.i2p.router.web.helpers
Class NetDbHelper
java.lang.Object
net.i2p.router.web.FormHandler
net.i2p.router.web.helpers.NetDbHelper
public class NetDbHelper extends FormHandler
/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
Constructors Constructor Description NetDbHelper()
-
Method Summary
Modifier and Type Method Description void
allowGraphical()
call for non-text-mode browsersString
getNetDbSummary()
storeWriter() must be called previouslyString
getNewNonce()
Override to save itprotected void
processForm()
Now we're a FormHandlervoid
setCaps(String c)
void
setCost(String f)
void
setCountry(String c)
void
setDate(String f)
void
setEtype(String f)
void
setFamily(String c)
void
setFull(String f)
void
setIp(String c)
void
setIpv6(String f)
void
setLease(String l)
void
setLimit(String f)
void
setMode(String f)
void
setMtu(String f)
void
setPage(String f)
void
setPort(String f)
void
setRouter(String r)
void
setSsucaps(String f)
void
setSybil(String c)
void
setSybil2(String c)
For form, same as above but with a length checkvoid
setTransport(String f)
void
setType(String f)
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
-
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
-