Package net.i2p.router.web.helpers
Class ResourceHelper
- java.lang.Object
-
- net.i2p.router.web.HelperBase
-
- net.i2p.router.web.helpers.ResourceHelper
-
public class ResourceHelper extends HelperBase
- Since:
- 0.9.49
-
-
Field Summary
Fields Modifier and Type Field Description protected String
_page
-
Fields inherited from class net.i2p.router.web.HelperBase
_context, _out, CHECKED, PROP_ADVANCED, SELECTED
-
-
Constructor Summary
Constructors Constructor Description ResourceHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getResource()
Convert file.ext to file_lang.ext if it exists.void
setMaxLines(String lines)
void
setPage(String page)
Use relative path for getResource().-
Methods inherited from class net.i2p.router.web.HelperBase
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, setContextId, storeWriter
-
-
-
-
Field Detail
-
_page
protected String _page
-
-
Method Detail
-
setPage
public void setPage(String page)
Use relative path for getResource().
-
setMaxLines
public void setMaxLines(String lines)
-
getResource
public String getResource()
Convert file.ext to file_lang.ext if it exists. Get lang from the cgi lang param, then properties, then from the default locale. _context must be set to check the property.- Returns:
- "" on error
-
-