org.apache.hadoop.yarn.webapp.view
Class HtmlPage

java.lang.Object
  extended by org.apache.hadoop.yarn.webapp.View
      extended by org.apache.hadoop.yarn.webapp.view.TextView
          extended by org.apache.hadoop.yarn.webapp.view.HtmlPage
All Implemented Interfaces:
Params
Direct Known Subclasses:
ErrorPage, HelloWorld.HelloView, MyApp.MyView, TwoColumnCssLayout, TwoColumnLayout

@InterfaceAudience.LimitedPrivate(value={"YARN","MapReduce"})
public abstract class HtmlPage
extends TextView

The parent class of all HTML pages. Override render(org.apache.hadoop.yarn.webapp.hamlet.Hamlet.HTML) to actually render the page.


Nested Class Summary
static class HtmlPage._
           
 class HtmlPage.Page
           
 
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.webapp.View
View.ViewContext
 
Field Summary
static String DOCTYPE
           
 
Fields inherited from class org.apache.hadoop.yarn.webapp.View
LOG
 
Fields inherited from interface org.apache.hadoop.yarn.webapp.Params
ERROR_DETAILS, TITLE, TITLE_LINK, USER
 
Constructor Summary
protected HtmlPage()
           
protected HtmlPage(View.ViewContext ctx)
           
 
Method Summary
 void render()
          The API to render the view
protected abstract  void render(Hamlet.HTML<HtmlPage._> html)
          Render the the HTML page.
 
Methods inherited from class org.apache.hadoop.yarn.webapp.view.TextView
echo, puts, writer
 
Methods inherited from class org.apache.hadoop.yarn.webapp.View
$, $, context, cookies, error, getInstance, inDevMode, info, injector, moreParams, outputStream, prefix, render, request, response, root_url, root, set, setTitle, setTitle, status, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOCTYPE

public static final String DOCTYPE
See Also:
Constant Field Values
Constructor Detail

HtmlPage

protected HtmlPage()

HtmlPage

protected HtmlPage(View.ViewContext ctx)
Method Detail

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 the HTML page.

Parameters:
html - the page to render data to.


Copyright © 2014 Apache Software Foundation. All Rights Reserved.