Class WebServletConfig

  • All Implemented Interfaces:
    WebConfig

    public final class WebServletConfig
    extends java.lang.Object
    implements WebConfig
    A servlet based web config. Delegates all invocations to the servlet configuration from the servlet api.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      WebConfig.ConfigType getConfigType()
      Get the configuration type of this config.
      javax.servlet.FilterConfig getFilterConfig()
      Get the corresponding FilterConfig if this WebConfig represents a FilterConfig
      java.lang.String getInitParameter​(java.lang.String name)
      Get an initialization parameter.
      java.util.Enumeration getInitParameterNames()
      Get the enumeration of initialization parameter names.
      java.lang.String getName()
      Get the name of the Web component.
      javax.servlet.ServletConfig getServletConfig()
      Get the corresponding ServletConfig if this WebConfig represents a ServletConfig
      javax.servlet.ServletContext getServletContext()
      Get the ServletContext.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getServletConfig

        public javax.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 javax.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 java.lang.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 java.lang.String getInitParameter​(java.lang.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 java.util.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 javax.servlet.ServletContext getServletContext()
        Description copied from interface: WebConfig
        Get the ServletContext.
        Specified by:
        getServletContext in interface WebConfig
        Returns:
        the ServletContext.