Class DispatcherWebscript

  • All Implemented Interfaces:
    EventListener, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.extensions.webscripts.WebScript, org.springframework.web.context.ServletContextAware

    public class DispatcherWebscript
    extends org.springframework.extensions.webscripts.AbstractWebScript
    implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.web.context.ServletContextAware, org.springframework.context.ApplicationContextAware
    • Field Detail

      • s

        protected org.springframework.web.servlet.DispatcherServlet s
    • Constructor Detail

      • DispatcherWebscript

        public DispatcherWebscript()
      • DispatcherWebscript

        public DispatcherWebscript​(String servletName)
      • DispatcherWebscript

        public DispatcherWebscript​(String servletName,
                                   boolean inheritGlobalProperties)
    • Method Detail

      • execute

        public void execute​(org.springframework.extensions.webscripts.WebScriptRequest req,
                            org.springframework.extensions.webscripts.WebScriptResponse res)
                     throws IOException
        Specified by:
        execute in interface org.springframework.extensions.webscripts.WebScript
        Throws:
        IOException
      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.event.ContextRefreshedEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
      • configureDispatcherServlet

        protected void configureDispatcherServlet​(org.springframework.web.servlet.DispatcherServlet dispatcherServlet)
      • getDispatcherServlet

        public org.springframework.web.servlet.DispatcherServlet getDispatcherServlet()
      • getContextConfigLocation

        public String getContextConfigLocation()
      • setContextConfigLocation

        public void setContextConfigLocation​(String contextConfigLocation)
      • getApplicationContext

        public org.springframework.context.ApplicationContext getApplicationContext()
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • getServletContext

        public javax.servlet.ServletContext getServletContext()
      • setServletContext

        public void setServletContext​(javax.servlet.ServletContext servletContext)
        Specified by:
        setServletContext in interface org.springframework.web.context.ServletContextAware
      • setContextClass

        public void setContextClass​(Class<?> contextClass)
      • getContextClass

        public Class<?> getContextClass()