public static class ServletDeployer.StubServletConfig extends Object
Constructor and Description |
---|
StubServletConfig(ServletContext context,
ServletRegistration registration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static DeploymentConfiguration |
createDeploymentConfiguration(ServletContext context,
Class<?> servletClass)
Creates a DeploymentConfiguration.
|
static DeploymentConfiguration |
createDeploymentConfiguration(ServletContext context,
ServletRegistration registration,
Class<?> servletClass)
Creates a DeploymentConfiguration.
|
String |
getInitParameter(String name) |
Enumeration<String> |
getInitParameterNames() |
ServletContext |
getServletContext() |
String |
getServletName() |
public StubServletConfig(ServletContext context, ServletRegistration registration)
context
- the ServletContextregistration
- the ServletRegistration for this ServletConfig instancepublic String getServletName()
public ServletContext getServletContext()
public Enumeration<String> getInitParameterNames()
public static DeploymentConfiguration createDeploymentConfiguration(ServletContext context, ServletRegistration registration, Class<?> servletClass)
context
- the ServletContextregistration
- the ServletRegistrationservletClass
- the class to look for properties defined with annotationspublic static DeploymentConfiguration createDeploymentConfiguration(ServletContext context, Class<?> servletClass)
context
- the ServletContextservletClass
- the class to look for properties defined with annotationsCopyright © 2025. All rights reserved.