Package org.apereo.cas.web
Class DelegatingController
- java.lang.Object
-
- org.springframework.context.support.ApplicationObjectSupport
-
- org.springframework.web.context.support.WebApplicationObjectSupport
-
- org.springframework.web.servlet.support.WebContentGenerator
-
- org.springframework.web.servlet.mvc.AbstractController
-
- org.apereo.cas.web.DelegatingController
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.web.context.ServletContextAware,org.springframework.web.servlet.mvc.Controller
@Deprecated(since="6.2.0") public class DelegatingController extends org.springframework.web.servlet.mvc.AbstractControllerDeprecated.6.2Delegating controller. Tries to find a controller among its delegates, that can handle the current request. If none is found, an error is generated.- Since:
- 3.5
-
-
Constructor Summary
Constructors Constructor Description DelegatingController()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.springframework.web.servlet.ModelAndViewhandleRequestInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Deprecated.Handles the request.-
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
-
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator
applyCacheControl, applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, checkRequest, getAllowHeader, getCacheControl, getCacheSeconds, getSupportedMethods, getVaryByRequestHeaders, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, prepareResponse, preventCaching, setAlwaysMustRevalidate, setCacheControl, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader, setVaryByRequestHeaders
-
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
-
-
-
-
Method Detail
-
handleRequestInternal
protected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.ExceptionDeprecated.Handles the request. Ask all delegates if they can handle the current request. The first to answer true is elected as the delegate that will process the request. If no controller answers true, we redirect to the error page.- Specified by:
handleRequestInternalin classorg.springframework.web.servlet.mvc.AbstractController- Parameters:
request- the request to handleresponse- the response to write to- Returns:
- the model and view object
- Throws:
java.lang.Exception- if an error occurs during request handling
-
-