public class AbstractController extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
AbstractController.Executor |
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_URL |
static String |
VERSION |
| Constructor and Description |
|---|
AbstractController() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeAndConvertException(AbstractController.Executor executor) |
protected <R> R |
executeAndConvertException(Supplier<R> supplier) |
protected BindingResult |
getBindingResult(Object object,
String name) |
protected <T> <any> |
getLocationHeader(T item,
UriComponentsBuilder builder,
String path,
String... values) |
WebPaginationUtils |
getWebPaginationUtils() |
void |
setWebPaginationUtils(WebPaginationUtils webPaginationUtils) |
protected void |
validate(BindingResult result) |
protected void |
validate(Validator validator,
Object object,
String name) |
protected String |
validateInputCode(String code,
String objectCode,
String objectName) |
protected <T> T |
validateResponse(T item,
String type) |
public static final String VERSION
public static final String BASE_URL
protected <T> T validateResponse(T item,
String type)
protected <T> <any> getLocationHeader(T item,
UriComponentsBuilder builder,
String path,
String... values)
protected String validateInputCode(String code, String objectCode, String objectName)
protected void validate(BindingResult result)
protected <R> R executeAndConvertException(Supplier<R> supplier)
protected void executeAndConvertException(AbstractController.Executor executor)
public WebPaginationUtils getWebPaginationUtils()
public void setWebPaginationUtils(WebPaginationUtils webPaginationUtils)
Copyright © 2017 SAP SE. All Rights Reserved.