public class AbstractRestController<T>
extends org.springframework.web.servlet.mvc.AbstractCommandController
| Modifier and Type | Field and Description |
|---|---|
static int |
DC_ERROR_DUPLICATE_ID |
DEFAULT_COMMAND_NAME| Constructor and Description |
|---|
AbstractRestController(String commandName) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.servlet.ModelAndView |
delete(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
T command,
org.springframework.validation.BindException errors) |
protected org.springframework.web.servlet.ModelAndView |
get(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
T command,
org.springframework.validation.BindException errors) |
protected org.springframework.web.servlet.ModelAndView |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object command,
org.springframework.validation.BindException errors) |
protected org.springframework.web.servlet.ModelAndView |
post(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
T command,
org.springframework.validation.BindException errors) |
protected org.springframework.web.servlet.ModelAndView |
put(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
T command,
org.springframework.validation.BindException errors) |
handleRequestInternalbindAndValidate, 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, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextpublic static final int DC_ERROR_DUPLICATE_ID
public AbstractRestController(String commandName)
protected org.springframework.web.servlet.ModelAndView handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object command,
org.springframework.validation.BindException errors)
throws Exception
handle in class org.springframework.web.servlet.mvc.AbstractCommandControllerExceptionprotected org.springframework.web.servlet.ModelAndView get(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
T command,
org.springframework.validation.BindException errors)
throws Exception
Exceptionprotected org.springframework.web.servlet.ModelAndView put(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
T command,
org.springframework.validation.BindException errors)
throws Exception
Exceptionprotected org.springframework.web.servlet.ModelAndView post(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
T command,
org.springframework.validation.BindException errors)
throws Exception
ExceptionCopyright © 2009-2013 DuraSpace. All Rights Reserved.