@Deprecated public abstract class ApiResultApiController extends BaseApiController
ApiResultDEFAULT_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, 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 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.AbstractControllerExceptionCopyright © 2019 Communote team. All rights reserved.