Class WebFilterConfig

java.lang.Object
org.glassfish.jersey.servlet.WebFilterConfig
All Implemented Interfaces:
WebConfig

public final class WebFilterConfig extends Object implements WebConfig
A filter based web config. Delegates all invocations to the filter configuration from the servlet api.
Author:
Paul Sandoz, Guilherme Silveira
  • Constructor Details

    • WebFilterConfig

      public WebFilterConfig(jakarta.servlet.FilterConfig filterConfig)
  • Method Details

    • getConfigType

      public WebConfig.ConfigType getConfigType()
      Description copied from interface: WebConfig
      Get the configuration type of this config.
      Specified by:
      getConfigType in interface WebConfig
      Returns:
      the configuration type.
    • getServletConfig

      public jakarta.servlet.ServletConfig getServletConfig()
      Description copied from interface: WebConfig
      Get the corresponding ServletConfig if this WebConfig represents a ServletConfig
      Specified by:
      getServletConfig in interface WebConfig
      Returns:
      servlet config or null
    • getFilterConfig

      public jakarta.servlet.FilterConfig getFilterConfig()
      Description copied from interface: WebConfig
      Get the corresponding FilterConfig if this WebConfig represents a FilterConfig
      Specified by:
      getFilterConfig in interface WebConfig
      Returns:
      filter config or null
    • getName

      public String getName()
      Description copied from interface: WebConfig
      Get the name of the Web component.
      Specified by:
      getName in interface WebConfig
      Returns:
      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 interface WebConfig
      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 interface WebConfig
      Returns:
      the enumeration of initialization parameter names.
    • getServletContext

      public jakarta.servlet.ServletContext getServletContext()
      Description copied from interface: WebConfig
      Get the ServletContext.
      Specified by:
      getServletContext in interface WebConfig
      Returns:
      the ServletContext.