com.vaadin.flow.server.startup.

Class ServletDeployer.StubServletConfig

  • java.lang.Object
    • com.vaadin.flow.server.startup.ServletDeployer.StubServletConfig
  • All Implemented Interfaces:

    javax.servlet.ServletConfig

    Enclosing class:

    ServletDeployer


    public static class ServletDeployer.StubServletConfig
    extends Object
    implements javax.servlet.ServletConfig

    Default ServletConfig implementation.

    • Constructor Detail

      • StubServletConfig

        public StubServletConfig(javax.servlet.ServletContext context,
                                 javax.servlet.ServletRegistration registration)

        Constructor.

        Parameters:

        context - the ServletContext

        registration - the ServletRegistration for this ServletConfig instance

    • Method Detail

      • getServletName

        public String getServletName()

        Specified by:

        getServletName in interface javax.servlet.ServletConfig

      • getServletContext

        public javax.servlet.ServletContext getServletContext()

        Specified by:

        getServletContext in interface javax.servlet.ServletConfig

      • getInitParameter

        public String getInitParameter(String name)

        Specified by:

        getInitParameter in interface javax.servlet.ServletConfig

      • getInitParameterNames

        public Enumeration<String> getInitParameterNames()

        Specified by:

        getInitParameterNames in interface javax.servlet.ServletConfig

      • createDeploymentConfiguration

        public static DeploymentConfiguration createDeploymentConfiguration(javax.servlet.ServletContext context,
                                                                            javax.servlet.ServletRegistration registration,
                                                                            Class<?> servletClass)

        Creates a DeploymentConfiguration.

        Parameters:

        context - the ServletContext

        registration - the ServletRegistration

        servletClass - the class to look for properties defined with annotations

        Returns:

        a DeploymentConfiguration instance