@Deprecated public abstract class BaseApiController extends org.springframework.web.servlet.mvc.BaseCommandController
#execute(HttpServletRequest, HttpServletResponse)DEFAULT_COMMAND_NAME| Constructor and Description |
|---|
BaseApiController()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
compareVersions(javax.servlet.http.HttpServletRequest request,
String version)
Deprecated.
Compares the version.
|
protected Boolean |
getBooleanParameter(javax.servlet.http.HttpServletRequest request,
String parameter)
Deprecated.
|
protected Integer |
getIntegerParameter(javax.servlet.http.HttpServletRequest request,
String parameter)
Deprecated.
|
protected Long |
getLongParameter(javax.servlet.http.HttpServletRequest request,
String parameter)
Deprecated.
|
protected String |
getNonEmptyParameter(javax.servlet.http.HttpServletRequest request,
String parameter)
Deprecated.
|
protected Long |
getResourceId(javax.servlet.http.HttpServletRequest request,
boolean throwOnError)
Deprecated.
Get the resource id out of the request uri.
|
protected String |
getResourceType()
Deprecated.
|
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, useDirectFieldAccesshandleRequest, handleRequestInternal, 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 int compareVersions(javax.servlet.http.HttpServletRequest request,
String version)
request - the request to get the requested version fromversion - the version to compare (e.g. 1.0.1)protected Boolean getBooleanParameter(javax.servlet.http.HttpServletRequest request, String parameter) throws IllegalRequestParameterException
request - the http requestparameter - the parameter to getIllegalRequestParameterException - in case a request parameter has an illegal valueprotected Integer getIntegerParameter(javax.servlet.http.HttpServletRequest request, String parameter) throws IllegalRequestParameterException
request - the http requestparameter - the parameter to getIllegalRequestParameterException - in case a request parameter has an illegal valueprotected Long getLongParameter(javax.servlet.http.HttpServletRequest request, String parameter) throws IllegalRequestParameterException
request - the http requestparameter - the parameter to getIllegalRequestParameterException - in case a request parameter has an illegal valueprotected String getNonEmptyParameter(javax.servlet.http.HttpServletRequest request, String parameter) throws IllegalRequestParameterException
request - the http requestparameter - the parameter to getIllegalRequestParameterException - in case a request parameter has an illegal valueprotected Long getResourceId(javax.servlet.http.HttpServletRequest request, boolean throwOnError) throws RequestedResourceNotFoundException
/api/v1.0/posts/12.json?filterHtml=true the method will return 12request - the requestthrowOnError - if true a RequestedResourceNotFoundException will be thrown if the id is
not parseableRequestedResourceNotFoundException - in case the uri is not parseable to a resource idprotected String getResourceType()
getResourceId(HttpServletRequest, boolean)
exceptionsCopyright © 2019 Communote team. All rights reserved.