|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.inject.AbstractModule
com.google.inject.servlet.ServletModule
org.apache.hadoop.yarn.webapp.WebApp
public abstract class WebApp
for a usage example| Nested Class Summary | |
|---|---|
static class |
WebApp.HTTP
|
| Nested classes/interfaces inherited from class com.google.inject.servlet.ServletModule |
|---|
com.google.inject.servlet.ServletModule.FilterKeyBindingBuilder, com.google.inject.servlet.ServletModule.ServletKeyBindingBuilder |
| Constructor Summary | |
|---|---|
WebApp()
|
|
| Method Summary | |
|---|---|
org.apache.hadoop.conf.Configuration |
conf()
|
void |
configureServlets()
|
String |
getRedirectPath()
|
String[] |
getServePathSpecs()
|
org.apache.hadoop.http.HttpServer |
httpServer()
|
void |
joinThread()
|
String |
name()
|
int |
port()
|
void |
route(String pathSpec,
Class<? extends Controller> cls)
|
void |
route(String pathSpec,
Class<? extends Controller> cls,
String action)
|
void |
route(WebApp.HTTP method,
String pathSpec,
Class<? extends Controller> cls,
String action)
Setup of a webapp serving route. |
abstract void |
setup()
|
void |
stop()
|
| Methods inherited from class com.google.inject.servlet.ServletModule |
|---|
configure, filter, filterRegex, getServletContext, serve, serveRegex |
| Methods inherited from class com.google.inject.AbstractModule |
|---|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebApp()
| Method Detail |
|---|
@Provides public org.apache.hadoop.http.HttpServer httpServer()
public int port()
public void stop()
public void joinThread()
@Provides public org.apache.hadoop.conf.Configuration conf()
public String name()
public String[] getServePathSpecs()
public String getRedirectPath()
public void configureServlets()
configureServlets in class com.google.inject.servlet.ServletModule
public void route(WebApp.HTTP method,
String pathSpec,
Class<? extends Controller> cls,
String action)
method - the http method for the routepathSpec - the path spec in the form of /controller/action/:args etc.cls - the controller classaction - the controller method
public void route(String pathSpec,
Class<? extends Controller> cls,
String action)
public void route(String pathSpec,
Class<? extends Controller> cls)
public abstract void setup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||