You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.server.communication.

Class JSR356WebsocketInitializer.FakeServletConfig

  • java.lang.Object
    • com.vaadin.flow.server.communication.JSR356WebsocketInitializer.FakeServletConfig
  • All Implemented Interfaces:

    javax.servlet.ServletConfig

    Enclosing class:

    JSR356WebsocketInitializer

    public static class JSR356WebsocketInitializer.FakeServletConfig
    extends Object
    implements javax.servlet.ServletConfig

    "ServletConfig" which only provides information from a ServletRegistration and its ServletContext.

    • Constructor Detail

      • FakeServletConfig

        public FakeServletConfig​(javax.servlet.ServletRegistration servletRegistration,
                                 javax.servlet.ServletContext servletContext)

        Creates an instance based on the given servlet registration and servlet context.

        Parameters:

        servletRegistration - the registration to read from

        servletContext - the context to read from

    • 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