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

java.lang.Object
  extended by org.apache.hadoop.yarn.webapp.View
      extended by org.apache.hadoop.yarn.webapp.view.TextView
All Implemented Interfaces:
Params
Direct Known Subclasses:
HtmlBlock, HtmlPage, TextPage

public abstract class TextView
extends View


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.webapp.View
View.ViewContext
 
Field Summary
 
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 TextView(View.ViewContext ctx, String contentType)
           
 
Method Summary
 void echo(Object... args)
          Print strings as is (no newline, a la php echo).
 void puts(Object... args)
          Print strings as a line (new line appended at the end, a la C/Tcl puts).
 PrintWriter writer()
           
 
Methods inherited from class org.apache.hadoop.yarn.webapp.View
$, $, context, cookies, error, getInstance, inDevMode, info, injector, moreParams, outputStream, prefix, render, 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
 

Constructor Detail

TextView

protected TextView(View.ViewContext ctx,
                   String contentType)
Method Detail

writer

public PrintWriter writer()
Overrides:
writer in class View

echo

public void echo(Object... args)
Print strings as is (no newline, a la php echo).

Parameters:
args - the strings to print

puts

public void puts(Object... args)
Print strings as a line (new line appended at the end, a la C/Tcl puts).

Parameters:
args - the strings to print


Copyright © 2012 Apache Software Foundation. All Rights Reserved.