Package org.glassfish.jersey.servlet
Interface WebConfig
- All Known Implementing Classes:
WebFilterConfig
,WebServletConfig
public interface WebConfig
The Web configuration for accessing initialization parameters of a Web
component and the
ServletContext
.- Author:
- Paul Sandoz
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The web configuration type. -
Method Summary
Modifier and TypeMethodDescriptionGet the configuration type of this config.jakarta.servlet.FilterConfig
Get the corresponding FilterConfig if this WebConfig represents aFilterConfig
getInitParameter
(String name) Get an initialization parameter.Get the enumeration of initialization parameter names.getName()
Get the name of the Web component.jakarta.servlet.ServletConfig
Get the corresponding ServletConfig if this WebConfig represents aServletConfig
jakarta.servlet.ServletContext
Get theServletContext
.
-
Method Details
-
getConfigType
WebConfig.ConfigType getConfigType()Get the configuration type of this config.- Returns:
- the configuration type.
-
getServletConfig
jakarta.servlet.ServletConfig getServletConfig()Get the corresponding ServletConfig if this WebConfig represents aServletConfig
- Returns:
- servlet config or null
-
getFilterConfig
jakarta.servlet.FilterConfig getFilterConfig()Get the corresponding FilterConfig if this WebConfig represents aFilterConfig
- Returns:
- filter config or null
-
getName
String getName()Get the name of the Web component.- Returns:
- the name of the Web component.
-
getInitParameter
Get an initialization parameter.- Parameters:
name
- the parameter name.- Returns:
- the parameter value, or null if the parameter is not present.
-
getInitParameterNames
Enumeration getInitParameterNames()Get the enumeration of initialization parameter names.- Returns:
- the enumeration of initialization parameter names.
-
getServletContext
jakarta.servlet.ServletContext getServletContext()Get theServletContext
.- Returns:
- the
ServletContext
.
-