
public class DbConfigurationR66RestMethodHandler extends DataModelRestMethodHandler<DbConfiguration>
| Modifier and Type | Class and Description |
|---|---|
static class |
DbConfigurationR66RestMethodHandler.FILTER_ARGS |
DataModelRestMethodHandler.COMMAND_TYPE| Modifier and Type | Field and Description |
|---|---|
static String |
BASEURI |
isBodyJsonDecode, methods, name, path, restConfiguration| Constructor and Description |
|---|
DbConfigurationR66RestMethodHandler(RestConfiguration config,
HttpRestHandler.METHOD... method) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAuthorization(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
HttpRestHandler.METHOD method) |
protected DbConfiguration |
createItem(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body)
To be used only in create mode.
|
protected com.fasterxml.jackson.databind.node.ArrayNode |
getDetailedAllow() |
protected DbConfiguration |
getItem(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body)
For Read or Update, should include a select() from the database.
|
protected DbConfiguration |
getItemPreparedStatement(DbPreparedStatement statement) |
protected DbPreparedStatement |
getPreparedStatement(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body)
For getAll access
|
String |
getPrimaryPropertyName() |
protected void |
put(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body)
Update one item according to id
|
checkHandlerSessionCorrectness, delete, endParsingRequest, getAll, getBody, getFileUpload, getOne, post, sendResponse, setOkgetName, getPath, handleException, isBodyJsonDecoded, isMethodIncluded, optionsCommand, sendOptionsResponse, setIntersectionMethods, setMethodspublic static final String BASEURI
public DbConfigurationR66RestMethodHandler(RestConfiguration config, HttpRestHandler.METHOD... method)
config - method - protected DbConfiguration getItem(HttpRestHandler handler, RestArgument arguments, RestArgument result, Object body) throws HttpIncorrectRequestException, HttpInvalidAuthenticationException, HttpNotFoundRequestException
DataModelRestMethodHandlergetItem in class DataModelRestMethodHandler<DbConfiguration>HttpIncorrectRequestExceptionHttpInvalidAuthenticationExceptionHttpNotFoundRequestExceptionprotected DbConfiguration createItem(HttpRestHandler handler, RestArgument arguments, RestArgument result, Object body) throws HttpIncorrectRequestException, HttpInvalidAuthenticationException
DataModelRestMethodHandlercreateItem in class DataModelRestMethodHandler<DbConfiguration>HttpIncorrectRequestExceptionHttpInvalidAuthenticationExceptionprotected DbPreparedStatement getPreparedStatement(HttpRestHandler handler, RestArgument arguments, RestArgument result, Object body) throws HttpIncorrectRequestException, HttpInvalidAuthenticationException
DataModelRestMethodHandlergetPreparedStatement in class DataModelRestMethodHandler<DbConfiguration>HttpIncorrectRequestExceptionHttpInvalidAuthenticationExceptionprotected DbConfiguration getItemPreparedStatement(DbPreparedStatement statement) throws HttpIncorrectRequestException, HttpNotFoundRequestException
getItemPreparedStatement in class DataModelRestMethodHandler<DbConfiguration>HttpIncorrectRequestExceptionHttpNotFoundRequestExceptionprotected com.fasterxml.jackson.databind.node.ArrayNode getDetailedAllow()
getDetailedAllow in class RestMethodHandlerpublic String getPrimaryPropertyName()
getPrimaryPropertyName in class DataModelRestMethodHandler<DbConfiguration>protected void put(HttpRestHandler handler, RestArgument arguments, RestArgument result, Object body) throws HttpIncorrectRequestException, HttpInvalidAuthenticationException, HttpNotFoundRequestException
DataModelRestMethodHandlerput in class DataModelRestMethodHandler<DbConfiguration>HttpIncorrectRequestExceptionHttpInvalidAuthenticationExceptionHttpNotFoundRequestExceptionprotected void checkAuthorization(HttpRestHandler handler, RestArgument arguments, RestArgument result, HttpRestHandler.METHOD method) throws HttpForbiddenRequestException
checkAuthorization in class DataModelRestMethodHandler<DbConfiguration>HttpForbiddenRequestExceptionCopyright © 2009–2020 Waarp. All rights reserved.