Package net.i2p.router.web.helpers
Class ResourceHelper
java.lang.Object
net.i2p.router.web.HelperBase
net.i2p.router.web.helpers.ResourceHelper
- Since:
- 0.9.49
-
Field Summary
Fields inherited from class net.i2p.router.web.HelperBase
_context, _out, CHECKED, PROP_ADVANCED, SELECTED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConvert file.ext to file_lang.ext if it exists.void
setMaxLines
(String lines) void
Use relative path for getResource().Methods inherited from class net.i2p.router.web.HelperBase
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, setContextId, storeWriter
-
Field Details
-
_page
-
-
Constructor Details
-
ResourceHelper
public ResourceHelper()
-
-
Method Details
-
setPage
Use relative path for getResource(). -
setMaxLines
-
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
-