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 Details

    • _page

      protected String _page
  • Constructor Details

    • ResourceHelper

      public ResourceHelper()
  • Method Details

    • 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