@Deprecated public class PostApiController extends BaseRestApiController
DEFAULT_COMMAND_NAME
Constructor and Description |
---|
PostApiController()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
doGet(ApiResult apiResult,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Do the get on a resource
|
protected Object |
doPost(ApiResult apiResult,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Do a creation or edit of a post resource
|
protected String |
getResourceType()
Deprecated.
|
void |
setCreationSource(NoteCreationSource cs)
Deprecated.
Set the creation source to be used by the controller.
|
execute
convert, getRequestUriName, handleRequestInternal
compareVersions, getBooleanParameter, getIntegerParameter, getLongParameter, getNonEmptyParameter, getResourceId
bindAndValidate, checkCommand, createBinder, createCommand, getBindingErrorProcessor, getCommand, getCommandClass, getCommandName, getMessageCodesResolver, getPropertyEditorRegistrars, getValidator, getValidators, getWebBindingInitializer, initApplicationContext, initBinder, isValidateOnBinding, onBind, onBind, onBindAndValidate, prepareBinder, setBindingErrorProcessor, setCommandClass, setCommandName, setMessageCodesResolver, setPropertyEditorRegistrar, setPropertyEditorRegistrars, setValidateOnBinding, setValidator, setValidators, setWebBindingInitializer, suppressBinding, suppressValidation, suppressValidation, suppressValidation, useDirectFieldAccess
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setAlwaysMustRevalidate, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
protected Object doGet(ApiResult apiResult, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws RequestedResourceNotFoundException
doGet
in class BaseRestApiController
apiResult
- the api result for returning additional valuesrequest
- the requestresponse
- the responseRequestedResourceNotFoundException
- the resource has not been foundprotected Object doPost(ApiResult apiResult, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ApiException
doPost
in class BaseRestApiController
apiResult
- the API resultrequest
- the requestresponse
- the responseApiException
- in case of an errorprotected String getResourceType()
getResourceType
in class BaseApiController
BaseApiController.getResourceId(HttpServletRequest, boolean)
exceptionspublic void setCreationSource(NoteCreationSource cs)
cs
- the creation sourceCopyright © 2019 Communote team. All rights reserved.