Class FilterInfo

  • All Implemented Interfaces:
    Comparable<AbstractInfo<jakarta.servlet.Filter>>

    public class FilterInfo
    extends WhiteboardServiceInfo<jakarta.servlet.Filter>
    Provides registration information for a Filter, and is used to programmatically register Filters.

    This class only provides information used at registration time, and as such differs slightly from DTOs like, FilterDTO.

    • Constructor Detail

      • FilterInfo

        public FilterInfo​(org.osgi.framework.ServiceReference<jakarta.servlet.Filter> ref)
        new filter info
        Parameters:
        ref - filter service reference
    • Method Detail

      • getName

        public String getName()
      • getPatterns

        public String[] getPatterns()
      • getServletNames

        public String[] getServletNames()
      • getRegexs

        public String[] getRegexs()
      • isAsyncSupported

        public boolean isAsyncSupported()
      • getDispatcher

        public jakarta.servlet.DispatcherType[] getDispatcher()
      • getInitParameters

        public Map<String,​String> getInitParameters()
        Returns an immutable map of the init parameters.
      • getType

        @NotNull
        public String getType()
        Description copied from class: AbstractInfo
        Get the type represented by this info
        Specified by:
        getType in class AbstractInfo<jakarta.servlet.Filter>
        Returns:
        The type
      • getClassName

        @NotNull
        public String getClassName​(@NotNull
                                   jakarta.servlet.Filter filter)
        Get the class name of the filter
        Parameters:
        filter - The filter
        Returns:
        The class name