Package net.i2p.router.web.helpers
Class GraphHelper
- java.lang.Object
-
- net.i2p.router.web.FormHandler
-
- net.i2p.router.web.helpers.GraphHelper
-
public class GraphHelper extends FormHandler
/graphs.jsp, including form, and /graph.jsp
-
-
Field Summary
-
Fields inherited from class net.i2p.router.web.FormHandler
_action, _context, _log, _method, _out, _requestWrapper, _settings
-
-
Constructor Summary
Constructors Constructor Description GraphHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAllMessages()We have to do this here because processForm() isn't called unless the nonces are goodStringgetForm()StringgetImages()StringgetRefreshMeta()This must be output in the jsp since *lt;meta> must be in the <head>StringgetSingleStat()For single stat page; stat = "bw.combined" treated speciallyprotected voidprocessForm()This was a HelperBase but now it's a FormHandlervoidsetC(String str)voidsetContextId(String contextId)set the defaults after we have a contextvoidsetE(String str)voidsetH(String str)voidsetHeight(String str)voidsetHideLegend(String foo)voidsetPeriodCount(String str)voidsetPersistent(String foo)voidsetRefreshDelay(String str)voidsetShowEvents(String b)voidsetStat(String stat)For single stat pagevoidsetUtc(String foo)voidsetW(String str)voidsetWidth(String str)-
Methods inherited from class net.i2p.router.web.FormHandler
_t, _t, _t, _x, addFormError, addFormErrorNoEscape, addFormNotice, addFormNoticeNoEscape, getErrors, getJettyString, getNewNonce, getNotices, isAdvanced, setAction, setNonce, setRequestWrapper, setSettings, storeMethod, storeNonces, storeWriter
-
-
-
-
Method Detail
-
setContextId
public void setContextId(String contextId)
set the defaults after we have a context- Overrides:
setContextIdin classFormHandler- Parameters:
contextId- beginning few characters of the routerHash, or null to pick the first one we come across.
-
getRefreshMeta
public String getRefreshMeta()
This must be output in the jsp since *lt;meta> must be in the <head>- Since:
- 0.8.7
-
setPeriodCount
public void setPeriodCount(String str)
-
setE
public void setE(String str)
- Since:
- 0.9
-
setC
public void setC(String str)
- Since:
- 0.9 shorter parameter
-
setShowEvents
public void setShowEvents(String b)
-
setHeight
public void setHeight(String str)
-
setH
public void setH(String str)
- Since:
- 0.9 shorter parameter
-
setWidth
public void setWidth(String str)
-
setW
public void setW(String str)
- Since:
- 0.9 shorter parameter
-
setRefreshDelay
public void setRefreshDelay(String str)
-
setPersistent
public void setPersistent(String foo)
- Since:
- 0.8.7
-
setHideLegend
public void setHideLegend(String foo)
- Since:
- 0.9.32
-
setUtc
public void setUtc(String foo)
- Since:
- 0.9.49
-
setStat
public void setStat(String stat)
For single stat page- Since:
- 0.9
-
getImages
public String getImages()
-
getSingleStat
public String getSingleStat()
For single stat page; stat = "bw.combined" treated specially- Since:
- 0.9
-
getForm
public String getForm()
-
getAllMessages
public String getAllMessages()
We have to do this here because processForm() isn't called unless the nonces are good- Overrides:
getAllMessagesin classFormHandler- Since:
- 0.8.7
-
processForm
protected void processForm()
This was a HelperBase but now it's a FormHandler- Specified by:
processFormin classFormHandler- Since:
- 0.8.2
-
-