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.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe web configuration type. -
Method Summary
Modifier and TypeMethodDescriptionGet the configuration type of this config.javax.servlet.FilterConfigGet the corresponding FilterConfig if this WebConfig represents aFilterConfiggetInitParameter(String name) Get an initialization parameter.Get the enumeration of initialization parameter names.getName()Get the name of the Web component.javax.servlet.ServletConfigGet the corresponding ServletConfig if this WebConfig represents aServletConfigjavax.servlet.ServletContextGet theServletContext.
-
Method Details
-
getConfigType
WebConfig.ConfigType getConfigType()Get the configuration type of this config.- Returns:
- the configuration type.
-
getServletConfig
javax.servlet.ServletConfig getServletConfig()Get the corresponding ServletConfig if this WebConfig represents aServletConfig- Returns:
- servlet config or null
-
getFilterConfig
javax.servlet.FilterConfig getFilterConfig()Get the corresponding FilterConfig if this WebConfig represents aFilterConfig- Returns:
- filter config or null
-
getName
-
getInitParameter
-
getInitParameterNames
Enumeration getInitParameterNames()Get the enumeration of initialization parameter names.- Returns:
- the enumeration of initialization parameter names.
-
getServletContext
javax.servlet.ServletContext getServletContext()Get theServletContext.- Returns:
- the
ServletContext.
-