@Deprecated public abstract class ApiResultApiController extends BaseApiController
ApiResult
DEFAULT_COMMAND_NAME
Constructor and Description |
---|
ApiResultApiController()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
convert(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ApiResult result)
Deprecated.
Convert the result into the request format, e.g.
|
protected abstract 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.
|
protected String |
getRequestUriName(javax.servlet.http.HttpServletRequest request)
Deprecated.
|
protected org.springframework.web.servlet.ModelAndView |
handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
|
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 void convert(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ApiResult result) throws Exception
request
- the http requestresponse
- the http responseresult
- the result object to be returned to the responseException
- in case of an errorprotected abstract Object execute(ApiResult apiResult, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, ApiException
apiResult
- the apiResultrequest
- the http requestresponse
- the http resptonseApiException
- in case of an illegal use of the api (wrong parameters, invalid resources)javax.servlet.ServletException
- in case of an request errorprotected String getRequestUriName(javax.servlet.http.HttpServletRequest request)
request
- the http requestprotected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
handleRequestInternal
in class org.springframework.web.servlet.mvc.AbstractController
Exception
Copyright © 2019 Communote team. All rights reserved.