Package org.glassfish.jersey.servlet
Class WebFilterConfig
java.lang.Object
org.glassfish.jersey.servlet.WebFilterConfig
- All Implemented Interfaces:
WebConfig
A filter based web config. Delegates all invocations to the filter
configuration from the servlet api.
- Author:
- Paul Sandoz, Guilherme Silveira
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.jersey.servlet.WebConfig
WebConfig.ConfigType
-
Constructor Summary
-
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
.
-
Constructor Details
-
WebFilterConfig
public WebFilterConfig(jakarta.servlet.FilterConfig filterConfig)
-
-
Method Details
-
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
Description copied from interface:WebConfig
Get the name of the Web component. -
getInitParameter
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
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
.
-