org.jasig.cas.web.ServiceValidateController Maven / Gradle / Ivy
package org.jasig.cas.web;
import org.jasig.cas.ticket.proxy.ProxyHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* @author Misagh Moayyed
* @since 4.2
*/
@Component("serviceValidateController")
@Controller
public class ServiceValidateController extends AbstractServiceValidateController {
/**
* Handle model and view.
*
* @param request the request
* @param response the response
* @return the model and view
* @throws Exception the exception
*/
@RequestMapping(path="/serviceValidate", method = RequestMethod.GET)
@Override
protected ModelAndView handleRequestInternal(final HttpServletRequest request, final HttpServletResponse response)
throws Exception {
return super.handleRequestInternal(request, response);
}
@Override
@Autowired
public void setValidationSpecificationClass(@Value("org.jasig.cas.validation.Cas20WithoutProxyingValidationSpecification")
final Class> validationSpecificationClass) {
super.setValidationSpecificationClass(validationSpecificationClass);
}
@Override
@Autowired
public void setFailureView(@Value("cas2ServiceFailureView") final String failureView) {
super.setFailureView(failureView);
}
@Override
@Autowired
public void setSuccessView(@Value("cas2ServiceSuccessView") final String successView) {
super.setSuccessView(successView);
}
@Override
@Autowired
public void setProxyHandler(@Qualifier("proxy20Handler") final ProxyHandler proxyHandler) {
super.setProxyHandler(proxyHandler);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy