Package org.glassfish.jersey.servlet
Class WebServletConfig
- java.lang.Object
-
- org.glassfish.jersey.servlet.WebServletConfig
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.jersey.servlet.WebConfig
WebConfig.ConfigType
-
-
Constructor Summary
Constructors Constructor Description WebServletConfig(ServletContainer servlet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebConfig.ConfigType
getConfigType()
Get the configuration type of this config.jakarta.servlet.FilterConfig
getFilterConfig()
Get the corresponding FilterConfig if this WebConfig represents aFilterConfig
String
getInitParameter(String name)
Get an initialization parameter.Enumeration
getInitParameterNames()
Get the enumeration of initialization parameter names.String
getName()
Get the name of the Web component.jakarta.servlet.ServletConfig
getServletConfig()
Get the corresponding ServletConfig if this WebConfig represents aServletConfig
jakarta.servlet.ServletContext
getServletContext()
Get theServletContext
.
-
-
-
Constructor Detail
-
WebServletConfig
public WebServletConfig(ServletContainer servlet)
-
-
Method Detail
-
getConfigType
public WebConfig.ConfigType getConfigType()
Description copied from interface:WebConfig
Get the configuration type of this config.- Specified by:
getConfigType
in interfaceWebConfig
- Returns:
- the configuration type.
-
getServletConfig
public jakarta.servlet.ServletConfig getServletConfig()
Description copied from interface:WebConfig
Get the corresponding ServletConfig if this WebConfig represents aServletConfig
- Specified by:
getServletConfig
in interfaceWebConfig
- Returns:
- servlet config or null
-
getFilterConfig
public jakarta.servlet.FilterConfig getFilterConfig()
Description copied from interface:WebConfig
Get the corresponding FilterConfig if this WebConfig represents aFilterConfig
- Specified by:
getFilterConfig
in interfaceWebConfig
- Returns:
- filter config or null
-
getName
public String getName()
Description copied from interface:WebConfig
Get the name of the Web component.
-
getInitParameter
public String getInitParameter(String name)
Description copied from interface:WebConfig
Get an initialization parameter.- Specified by:
getInitParameter
in interfaceWebConfig
- Parameters:
name
- the parameter name.- Returns:
- the parameter value, or null if the parameter is not present.
-
getInitParameterNames
public Enumeration getInitParameterNames()
Description copied from interface:WebConfig
Get the enumeration of initialization parameter names.- Specified by:
getInitParameterNames
in interfaceWebConfig
- Returns:
- the enumeration of initialization parameter names.
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()
Description copied from interface:WebConfig
Get theServletContext
.- Specified by:
getServletContext
in interfaceWebConfig
- Returns:
- the
ServletContext
.
-
-