类 DwrSpringServlet

  • 所有已实现的接口:
    jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

    public class DwrSpringServlet
    extends org.directwebremoting.servlet.DwrServlet
    The servlet that handles all calls to DWR.
    It retrieves its configuration from the Spring IoC container. This is done in two ways:
    1. Use the Spring namespace. When using the Spring namespace for DWR, the confgiuration for DWR is automatically picked up by this servlet.
    2. Explicitly specify which configurations to pick up. When explicitly defining the DWR configuration in Spring yourself, you can explicitely specify them in the init parameters.
    Same as with the DwrServlet, you can specify a debug init parameter on this servlet to put DWR in debug mode (allowing access to the very handy debug pages).
    作者:
    chaostone
    另请参阅:
    DwrServlet, 序列化表格
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      protected org.directwebremoting.WebContextFactory.WebContextBuilder webContextBuilder
      The WebContext that keeps http objects local to a thread
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      protected void configureContainer​(org.directwebremoting.Container container, jakarta.servlet.ServletConfig servletConfig)  
      protected org.directwebremoting.spring.SpringContainer createContainer​(jakarta.servlet.ServletConfig servletConfig)  
      protected org.springframework.context.ApplicationContext getApplicationContext​(jakarta.servlet.ServletContext servletContext)  
      void setConfigurators​(List configurators)
      Setter for use by the Spring IoC container to tell us what Configurators exist for us to configure ourselves.
      void setIncludeDefaultConfig​(boolean includeDefaultConfig)
      Do we prefix the list of Configurators with a default to read the system dwr.xml file?
      • 从类继承的方法 org.directwebremoting.servlet.DwrServlet

        destroy, doGet, doPost, getContainer, init
      • 从类继承的方法 jakarta.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
      • 从类继承的方法 jakarta.servlet.GenericServlet

        getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
    • 字段详细资料

      • webContextBuilder

        protected org.directwebremoting.WebContextFactory.WebContextBuilder webContextBuilder
        The WebContext that keeps http objects local to a thread
    • 构造器详细资料

      • DwrSpringServlet

        public DwrSpringServlet()
    • 方法详细资料

      • createContainer

        protected org.directwebremoting.spring.SpringContainer createContainer​(jakarta.servlet.ServletConfig servletConfig)
        覆盖:
        createContainer 在类中 org.directwebremoting.servlet.DwrServlet
      • configureContainer

        protected void configureContainer​(org.directwebremoting.Container container,
                                          jakarta.servlet.ServletConfig servletConfig)
                                   throws jakarta.servlet.ServletException,
                                          IOException
        覆盖:
        configureContainer 在类中 org.directwebremoting.servlet.DwrServlet
        抛出:
        jakarta.servlet.ServletException
        IOException
      • getApplicationContext

        protected org.springframework.context.ApplicationContext getApplicationContext​(jakarta.servlet.ServletContext servletContext)
      • setConfigurators

        public void setConfigurators​(List configurators)
        Setter for use by the Spring IoC container to tell us what Configurators exist for us to configure ourselves.
        参数:
        configurators -
      • setIncludeDefaultConfig

        public void setIncludeDefaultConfig​(boolean includeDefaultConfig)
        Do we prefix the list of Configurators with a default to read the system dwr.xml file?
        参数:
        includeDefaultConfig - the includeDefaultConfig to set