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:
public static class ServletDeployer.StubServletConfig extends Object implements javax.servlet.ServletConfig
Default ServletConfig implementation.
-
-
Constructor Summary
Constructors Constructor and Description StubServletConfig(javax.servlet.ServletContext context, javax.servlet.ServletRegistration registration)
Constructor.
-
Method Summary
All Methods Modifier and Type Method and Description static DeploymentConfiguration
createDeploymentConfiguration(javax.servlet.ServletContext context, javax.servlet.ServletRegistration registration, Class<?> servletClass)
Creates a DeploymentConfiguration.
String
getInitParameter(String name)
Enumeration<String>
getInitParameterNames()
javax.servlet.ServletContext
getServletContext()
String
getServletName()
-
-
-
Constructor Detail
-
StubServletConfig
public StubServletConfig(javax.servlet.ServletContext context, javax.servlet.ServletRegistration registration)
Constructor.
Parameters:
context
- the ServletContextregistration
- the ServletRegistration for this ServletConfig instance
-
-
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
-
createDeploymentConfiguration
public static DeploymentConfiguration createDeploymentConfiguration(javax.servlet.ServletContext context, javax.servlet.ServletRegistration registration, Class<?> servletClass)
Creates a DeploymentConfiguration.
Parameters:
context
- the ServletContextregistration
- the ServletRegistrationservletClass
- the class to look for properties defined with annotationsReturns:
a DeploymentConfiguration instance
-
-