public class AppController extends Object implements IAppController
| Constructor and Description |
|---|
AppController(IAppConfig appConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
exception(IAppRequestContext context)
Route handler for exceptions handling.
|
protected IAppConfig |
getAppConfig() |
void |
indexPage(IAppRequestContext context)
Route handler for the "/" index page.
|
void |
notFound(IAppRequestContext context)
Route handler for a "Not Found" request.
|
void |
sumRoute(IAppRequestContext context)
Route handler for the "/sum" route.
|
@Inject public AppController(IAppConfig appConfig)
protected IAppConfig getAppConfig()
public void notFound(IAppRequestContext context)
IAppControllernotFound in interface IAppControllerpublic void exception(IAppRequestContext context)
IAppControllerexception in interface IAppControllerpublic void indexPage(IAppRequestContext context)
IAppControllerindexPage in interface IAppControllerpublic void sumRoute(IAppRequestContext context)
IAppControllersumRoute in interface IAppControllerCopyright © 2016. All rights reserved.