Package org.apereo.cas.web
Class AbstractDelegateController
- java.lang.Object
-
- org.apereo.cas.web.AbstractDelegateController
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Controller public abstract class AbstractDelegateController extends java.lang.Object implements org.springframework.context.ApplicationContextAwareAbstract class to be extended by all controllers that may become a delegate. All subclass must implement the canHandle method to say if they can handle a request or not.- Since:
- 4.2.0
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.ApplicationContextapplicationContextApplication context.
-
Constructor Summary
Constructors Constructor Description AbstractDelegateController()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract booleancanHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Determine if aAbstractDelegateControllersubclass can handle the current request.protected abstract org.springframework.web.servlet.ModelAndViewhandleRequestInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Handle request internal.
-
-
-
Method Detail
-
canHandle
public abstract boolean canHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Determine if aAbstractDelegateControllersubclass can handle the current request.- Parameters:
request- the current requestresponse- the response- Returns:
- true if the controller can handler the request, false otherwise
-
handleRequestInternal
protected abstract org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.ExceptionHandle request internal.- Parameters:
request- the requestresponse- the response- Returns:
- the model and view
- Throws:
java.lang.Exception- the exception
-
-