public class AppController extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
AppController(AppConfig appConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCommonModelElements(AppRequestContext context)
Adds some common elements to the response's model.
|
void |
exception(AppRequestContext context)
Route Handler to manage exceptions
|
void |
exceptionExample(AppRequestContext context)
"Exception example" handler
|
void |
formExample(AppRequestContext context)
Simple Form example handler
|
protected AppConfig |
getAppConfig() |
void |
index(AppRequestContext context)
Index page handler
|
void |
notFound(AppRequestContext context)
Route Handler to manage 404
|
@Inject public AppController(AppConfig appConfig)
protected AppConfig getAppConfig()
protected void addCommonModelElements(AppRequestContext context)
public void index(AppRequestContext context)
public void formExample(AppRequestContext context)
public void exceptionExample(AppRequestContext context)
public void notFound(AppRequestContext context)
public void exception(AppRequestContext context)
Copyright © 2019. All rights reserved.