Interface ServletFilterHolder

    • Method Detail

      • getFilter

        javax.servlet.Filter getFilter()
        Get the Filter object that should be added to the servlet. This method is considered "mutually exclusive" from the getFilterClass method. That is, one of them should return null and the other should return an actual value.
        Returns:
        The Filter object to be added to the servlet
      • getFilterClass

        Class<? extends javax.servlet.Filter> getFilterClass()
        Get the class of the Filter object that should be added to the servlet. This method is considered "mutually exclusive" from the getFilter method. That is, one of them should return null and the other should return an actual value.
        Returns:
        The class of the Filter object to be added to the servlet
      • getInitParameters

        Map<String,​String> getInitParameters()
        Get Filter initialization parameters.
        Returns:
        a map containing all the Filter initialization parameters
      • getPath

        @Deprecated
        String getPath()
        Deprecated.
        This method is deprecated, please implement getPaths(). The path that this Filter should apply to
        Returns:
        the path that this Filter should apply to
      • getPaths

        default String[] getPaths()
        The paths that this Filter should apply to
        Returns:
        the paths that this Filter should apply to
      • getDispatcherType

        @Nullable
        EnumSet<javax.servlet.DispatcherType> getDispatcherType()
        The dispatcher type that this Filter should apply to
        Returns:
        the enumeration of DispatcherTypes that this Filter should apply to