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
All Methods Instance Methods Concrete Methods 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
-
-
-
-
Method Detail
-
setRouter
public void setRouter(String r)
-
setVersion
public void setVersion(String v)
- Since:
- 0.9.21
-
setCountry
public void setCountry(String c)
- Since:
- 0.9.21
-
setFamily
public void setFamily(String c)
- Since:
- 0.9.28
-
setCaps
public void setCaps(String c)
- Since:
- 0.9.28
-
setIp
public void setIp(String c)
- Since:
- 0.9.28
-
setSybil
public void setSybil(String c)
- Since:
- 0.9.28
-
setSybil2
public void setSybil2(String c)
For form, same as above but with a length check- Since:
- 0.9.28
-
setPort
public void setPort(String f)
- Since:
- 0.9.28
-
setType
public void setType(String f)
- Since:
- 0.9.28
-
setEtype
public void setEtype(String f)
- Since:
- 0.9.49
-
setMtu
public void setMtu(String f)
- Since:
- 0.9.28
-
setIpv6
public void setIpv6(String f)
- Since:
- 0.9.28
-
setSsucaps
public void setSsucaps(String f)
- Since:
- 0.9.28
-
setTransport
public void setTransport(String f)
- Since:
- 0.9.36
-
setCost
public void setCost(String f)
- Since:
- 0.9.28
-
setMode
public void setMode(String f)
- Since:
- 0.9.38
-
setDate
public void setDate(String f)
- Since:
- 0.9.38
-
setFull
public void setFull(String f)
-
setLease
public void setLease(String l)
-
setLimit
public void setLimit(String f)
- Since:
- 0.9.36
-
setPage
public void setPage(String f)
- Since:
- 0.9.36
-
allowGraphical
public void allowGraphical()
call for non-text-mode browsers- Since:
- 0.9.1
-
getNewNonce
public String 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
public String getNetDbSummary()
storeWriter() must be called previously
-
-