org.kuali.student.common.ws
Class ServletWrappingController
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.kuali.student.common.ws.ServletWrappingController
- All Implemented Interfaces:
- BeanNameAware, DisposableBean, InitializingBean, ApplicationContextAware, ServletContextAware, Controller
public class ServletWrappingController
- extends AbstractController
- implements BeanNameAware, InitializingBean, DisposableBean
Spring Controller implementation that mimics standard
ServletWrappingController behaviour (see its documentation), but with the
important difference that it doesn't instantiate the Servlet instance
directly but delegate for this the BeanContext, so that we can also use IoC.*
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator |
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
servletClass
private Class<? extends Servlet> servletClass
servletName
private String servletName
initParameters
private Properties initParameters
beanName
private String beanName
servletInstance
private Servlet servletInstance
log
private static Logger log
ServletWrappingController
public ServletWrappingController()
setServletClass
public void setServletClass(Class<? extends Servlet> servletClass)
setServletName
public void setServletName(String servletName)
setInitParameters
public void setInitParameters(Properties initParameters)
setBeanName
public void setBeanName(String name)
- Specified by:
setBeanName
in interface BeanNameAware
setServletInstance
public void setServletInstance(Servlet servletInstance)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception
handleRequestInternal
protected ModelAndView handleRequestInternal(HttpServletRequest request,
HttpServletResponse response)
throws Exception
- Specified by:
handleRequestInternal
in class AbstractController
- Throws:
Exception
destroy
public void destroy()
- Specified by:
destroy
in interface DisposableBean
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.