GET
- Return type of doGetPOST
- Return type of doPost@Deprecated public class BaseRestApiController<GET,POST> extends ApiResultApiController
DEFAULT_COMMAND_NAME
Constructor and Description |
---|
BaseRestApiController()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected GET |
doGet(ApiResult apiResult,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Do the get on a resource
|
protected POST |
doPost(ApiResult apiResult,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Do a a post resource
|
protected Object |
execute(ApiResult apiResult,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
This methods executes the main API action and returns the object to be sent back.
|
convert, getRequestUriName, handleRequestInternal
compareVersions, getBooleanParameter, getIntegerParameter, getLongParameter, getNonEmptyParameter, getResourceId, getResourceType
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 GET doGet(ApiResult apiResult, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ApiException
apiResult
- the apiResultrequest
- the requestresponse
- the responseApiException
- an error occuredprotected POST doPost(ApiResult apiResult, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws org.springframework.web.HttpRequestMethodNotSupportedException, ApiException
apiResult
- the apiResultrequest
- the requestresponse
- the responseorg.springframework.web.HttpRequestMethodNotSupportedException
- if method not implementedApiException
- in case of an errorException
protected Object execute(ApiResult apiResult, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ApiException, javax.servlet.ServletException
execute
in class ApiResultApiController
apiResult
- the apiResultrequest
- the http requestresponse
- the http resptonseRequestedResourceNotFoundException
org.springframework.web.HttpRequestMethodNotSupportedException
ApiException
- in case of an illegal use of the api (wrong parameters, invalid resources)javax.servlet.ServletException
- in case of an request errorCopyright © 2019 Communote team. All rights reserved.