Class ServletContextConfiguration

    • Field Detail

      • context

        protected javax.servlet.ServletContext context
        Stores the wrapped servlet context.
    • Constructor Detail

      • ServletContextConfiguration

        public ServletContextConfiguration​(javax.servlet.Servlet servlet)
        Create a ServletContextConfiguration using the context of the specified servlet.
        Parameters:
        servlet - the servlet
      • ServletContextConfiguration

        public ServletContextConfiguration​(javax.servlet.ServletContext context)
        Create a ServletContextConfiguration using the servlet context initialization parameters.
        Parameters:
        context - the servlet context
    • Method Detail

      • getKeysInternal

        protected java.util.Iterator<java.lang.String> getKeysInternal()
        Description copied from class: AbstractConfiguration
        Actually creates an iterator for iterating over the keys in this configuration. This method is called by getKeys(), it has to be defined by concrete subclasses.
        Specified by:
        getKeysInternal in class AbstractConfiguration
        Returns:
        an Iterator with all property keys in this configuration
      • getPropertyInternal

        protected java.lang.Object getPropertyInternal​(java.lang.String key)
        Description copied from class: AbstractConfiguration
        Actually obtains the value of the specified property. This method is called by getProperty(). Concrete subclasses must define it to fetch the value of the desired property.
        Specified by:
        getPropertyInternal in class AbstractConfiguration
        Parameters:
        key - the key of the property in question
        Returns:
        the (raw) value of this property