We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
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:
public static class JSR356WebsocketInitializer.FakeServletConfig extends Object implements javax.servlet.ServletConfig
"ServletConfig" which only provides information from a
ServletRegistration
and itsServletContext
.
-
-
Constructor Summary
Constructors Constructor Description FakeServletConfig(javax.servlet.ServletRegistration servletRegistration, javax.servlet.ServletContext servletContext)
Creates an instance based on the given servlet registration and servlet context.
-
Method Summary
All Methods Modifier and Type Method Description String
getInitParameter(String name)
Enumeration<String>
getInitParameterNames()
javax.servlet.ServletContext
getServletContext()
String
getServletName()
-
-
-
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 fromservletContext
- the context to read from
-
-
Method Detail
-
getServletName
public String getServletName()
Specified by:
getServletName
in interfacejavax.servlet.ServletConfig
-
getServletContext
public javax.servlet.ServletContext getServletContext()
Specified by:
getServletContext
in interfacejavax.servlet.ServletConfig
-
getInitParameter
public String getInitParameter(String name)
Specified by:
getInitParameter
in interfacejavax.servlet.ServletConfig
-
getInitParameterNames
public Enumeration<String> getInitParameterNames()
Specified by:
getInitParameterNames
in interfacejavax.servlet.ServletConfig
-
-