public class DbHostConfigurationR66RestMethodHandler extends DataModelRestMethodHandler<DbHostConfiguration>
Modifier and Type | Class and Description |
---|---|
static class |
DbHostConfigurationR66RestMethodHandler.FILTER_ARGS |
DataModelRestMethodHandler.COMMAND_TYPE
Modifier and Type | Field and Description |
---|---|
static String |
BASEURI |
isBodyJsonDecode, methods, name, path, restConfiguration
Constructor and Description |
---|
DbHostConfigurationR66RestMethodHandler(RestConfiguration config,
HttpRestHandler.METHOD... method) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAuthorization(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
HttpRestHandler.METHOD method) |
protected DbHostConfiguration |
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 DbHostConfiguration |
getItem(HttpRestHandler handler,
RestArgument arguments,
RestArgument result,
Object body)
For Read or Update, should include a select() from the database.
|
protected DbHostConfiguration |
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, setOk
getName, getPath, handleException, isBodyJsonDecoded, isMethodIncluded, optionsCommand, sendOptionsResponse, setIntersectionMethods, setMethods
public static final String BASEURI
public DbHostConfigurationR66RestMethodHandler(RestConfiguration config, HttpRestHandler.METHOD... method)
config
- method
- protected DbHostConfiguration getItem(HttpRestHandler handler, RestArgument arguments, RestArgument result, Object body) throws HttpIncorrectRequestException, HttpInvalidAuthenticationException, HttpNotFoundRequestException
DataModelRestMethodHandler
getItem
in class DataModelRestMethodHandler<DbHostConfiguration>
HttpIncorrectRequestException
HttpInvalidAuthenticationException
HttpNotFoundRequestException
protected DbHostConfiguration createItem(HttpRestHandler handler, RestArgument arguments, RestArgument result, Object body) throws HttpIncorrectRequestException, HttpInvalidAuthenticationException
DataModelRestMethodHandler
createItem
in class DataModelRestMethodHandler<DbHostConfiguration>
HttpIncorrectRequestException
HttpInvalidAuthenticationException
protected DbPreparedStatement getPreparedStatement(HttpRestHandler handler, RestArgument arguments, RestArgument result, Object body) throws HttpIncorrectRequestException, HttpInvalidAuthenticationException
DataModelRestMethodHandler
getPreparedStatement
in class DataModelRestMethodHandler<DbHostConfiguration>
HttpIncorrectRequestException
HttpInvalidAuthenticationException
protected DbHostConfiguration getItemPreparedStatement(DbPreparedStatement statement) throws HttpIncorrectRequestException, HttpNotFoundRequestException
getItemPreparedStatement
in class DataModelRestMethodHandler<DbHostConfiguration>
HttpIncorrectRequestException
HttpNotFoundRequestException
protected com.fasterxml.jackson.databind.node.ArrayNode getDetailedAllow()
getDetailedAllow
in class RestMethodHandler
public String getPrimaryPropertyName()
getPrimaryPropertyName
in class DataModelRestMethodHandler<DbHostConfiguration>
protected void put(HttpRestHandler handler, RestArgument arguments, RestArgument result, Object body) throws HttpIncorrectRequestException, HttpInvalidAuthenticationException, HttpNotFoundRequestException
DataModelRestMethodHandler
protected void checkAuthorization(HttpRestHandler handler, RestArgument arguments, RestArgument result, HttpRestHandler.METHOD method) throws HttpForbiddenRequestException
checkAuthorization
in class DataModelRestMethodHandler<DbHostConfiguration>
HttpForbiddenRequestException
Copyright © 2009–2020 Waarp. All rights reserved.