Interface FilterConfig


  • public interface FilterConfig
    A filter configuration object used by a portlet container to pass information to a filter during initialization.
    Since:
    2.0
    • Method Detail

      • getFilterName

        String getFilterName()
        Returns the filter-name of this filter as defined in the portlet deployment descriptor.
        Returns:
        the filter name
      • getPortletContext

        PortletContext getPortletContext()
        Returns a reference to the PortletContext in which the caller is executing.
        Returns:
        the portlet context
      • getInitParameter

        String getInitParameter​(String name)
        Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist.

        Initialization parameters are defined in the portlet deployment descriptor.

        Parameters:
        name - the name of the initialization parameter to return
        Returns:
        initialization parameter, or null if the parameter does not exist.
      • getInitParameterNames

        Enumeration<String> getInitParameterNames()
        Returns the names of the filter's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the filter has no initialization parameters.

        Initialization parameters are defined in the portlet deployment descriptor.

        Returns:
        the names of the filter's initialization parameters, or an empty Enumeration if the filter has no initialization parameters.