|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.webapp.View
@InterfaceAudience.LimitedPrivate(value={"YARN","MapReduce"})
public abstract class ViewBase class for all views
| Nested Class Summary | |
|---|---|
static class |
View.ViewContext
|
| Field Summary | |
|---|---|
static org.slf4j.Logger |
LOG
|
| Fields inherited from interface org.apache.hadoop.yarn.webapp.Params |
|---|
ERROR_DETAILS, TITLE, TITLE_LINK, USER |
| Constructor Summary | |
|---|---|
View()
|
|
View(View.ViewContext ctx)
|
|
| Method Summary | ||
|---|---|---|
String |
$(String key)
Lookup a value from the current context |
|
String |
$(String key,
String defaultValue)
Lookup a value from the current context. |
|
View.ViewContext |
context()
|
|
Map<String,javax.servlet.http.Cookie> |
cookies()
Get the cookies |
|
Throwable |
error()
|
|
|
getInstance(Class<T> cls)
|
|
boolean |
inDevMode()
|
|
ResponseInfo |
info(String about)
|
|
com.google.inject.Injector |
injector()
|
|
Map<String,String> |
moreParams()
|
|
javax.servlet.ServletOutputStream |
outputStream()
|
|
String |
prefix()
|
|
abstract void |
render()
The API to render the view |
|
void |
render(Class<? extends SubView> cls)
Render a sub-view |
|
javax.servlet.http.HttpServletRequest |
request()
|
|
javax.servlet.http.HttpServletResponse |
response()
|
|
String |
root_url(String... parts)
Create an url from url components |
|
String |
root()
|
|
void |
set(String key,
String value)
Set a context value. |
|
void |
setTitle(String title)
|
|
void |
setTitle(String title,
String url)
|
|
int |
status()
|
|
String |
url(String... parts)
Create an url from url components |
|
PrintWriter |
writer()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.slf4j.Logger LOG
| Constructor Detail |
|---|
public View()
public View(View.ViewContext ctx)
| Method Detail |
|---|
public abstract void render()
public View.ViewContext context()
public Throwable error()
public int status()
public boolean inDevMode()
public com.google.inject.Injector injector()
public <T> T getInstance(Class<T> cls)
public javax.servlet.http.HttpServletRequest request()
public javax.servlet.http.HttpServletResponse response()
public Map<String,String> moreParams()
public Map<String,javax.servlet.http.Cookie> cookies()
public javax.servlet.ServletOutputStream outputStream()
public PrintWriter writer()
public String $(String key,
String defaultValue)
key - to lookupdefaultValue - if key is missing
public String $(String key)
key - to lookup
public void set(String key,
String value)
key - to setvalue - to setpublic String root()
public String prefix()
public void setTitle(String title)
public void setTitle(String title,
String url)
public String root_url(String... parts)
parts - components to join
public String url(String... parts)
parts - components to join
public ResponseInfo info(String about)
public void render(Class<? extends SubView> cls)
cls - the class of the sub-view
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||