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, handleRequestInternalcompareVersions, getBooleanParameter, getIntegerParameter, getLongParameter, getNonEmptyParameter, getResourceId, getResourceTypebindAndValidate, 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, useDirectFieldAccesshandleRequest, isSynchronizeOnSession, setSynchronizeOnSessionapplyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setAlwaysMustRevalidate, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextprotected 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 errorExceptionprotected Object execute(ApiResult apiResult, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ApiException, javax.servlet.ServletException
execute in class ApiResultApiControllerapiResult - the apiResultrequest - the http requestresponse - the http resptonseRequestedResourceNotFoundExceptionorg.springframework.web.HttpRequestMethodNotSupportedExceptionApiException - 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.