Class HtmlPage

All Implemented Interfaces:
Params
Direct Known Subclasses:
ErrorPage, HelloWorld.HelloView, MyApp.MyView, TwoColumnCssLayout, TwoColumnLayout

@LimitedPrivate({"YARN","MapReduce"}) public abstract class HtmlPage extends TextView
The parent class of all HTML pages. Override render(org.apache.hadoop.yarn.webapp.hamlet2.Hamlet.HTML) to actually render the page.
  • Field Details

  • Constructor Details

    • HtmlPage

      protected HtmlPage()
    • HtmlPage

      protected HtmlPage(View.ViewContext ctx)
  • Method Details

    • render

      public void render()
      Description copied from class: View
      The API to render the view
      Specified by:
      render in class View
    • render

      protected abstract void render(Hamlet.HTML<HtmlPage.__> html)
      Render the HTML page.
      Parameters:
      html - the page to render data to.