Class WebServletConfig

  • All Implemented Interfaces:
    WebConfig

    public final class WebServletConfig
    extends Object
    implements WebConfig
    A servlet based web config. Delegates all invocations to the servlet configuration from the servlet api.
    Author:
    Paul Sandoz, guilherme silveira
    • Constructor Detail

    • Method Detail

      • 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.