Class FilterMapping

    • Constructor Detail

      • FilterMapping

        public FilterMapping()
    • Method Detail

      • dispatch

        public static javax.servlet.DispatcherType dispatch​(java.lang.String type)
        Dispatch type from name
        Parameters:
        type - the type name
        Returns:
        the dispatcher type
      • dispatch

        public static int dispatch​(javax.servlet.DispatcherType type)
        Dispatch type from name
        Parameters:
        type - the dispatcher type
        Returns:
        the type constant (REQUEST, ASYNC, FORWARD, INCLUDE, or ERROR)
      • dispatch

        public static javax.servlet.DispatcherType dispatch​(int type)
        Dispatch type from name
        Parameters:
        type - the dispatcher type
        Returns:
        the type constant (REQUEST, ASYNC, FORWARD, INCLUDE, or ERROR)
      • appliesTo

        boolean appliesTo​(java.lang.String path,
                          int type)
        Check if this filter applies to a path.
        Parameters:
        path - The path to check or null to just check type
        type - The type of request: __REQUEST,__FORWARD,__INCLUDE, __ASYNC or __ERROR.
        Returns:
        True if this filter applies
      • appliesTo

        boolean appliesTo​(int type)
        Check if this filter applies to a particular dispatch type.
        Parameters:
        type - The type of request: REQUEST, FORWARD, INCLUDE or ERROR.
        Returns:
        true if this filter applies
      • appliesTo

        public boolean appliesTo​(javax.servlet.DispatcherType t)
      • isDefaultDispatches

        public boolean isDefaultDispatches()
      • getFilterHolder

        FilterHolder getFilterHolder()
        Returns:
        Returns the holder.
      • setDispatcherTypes

        public void setDispatcherTypes​(java.util.EnumSet<javax.servlet.DispatcherType> dispatcherTypes)
      • getDispatcherTypes

        public java.util.EnumSet<javax.servlet.DispatcherType> getDispatcherTypes()
      • setFilterName

        public void setFilterName​(java.lang.String filterName)
        Parameters:
        filterName - The filterName to set.
      • setFilterHolder

        void setFilterHolder​(FilterHolder holder)
        Parameters:
        holder - The holder to set.
      • setPathSpecs

        public void setPathSpecs​(java.lang.String[] pathSpecs)
        Parameters:
        pathSpecs - The Path specifications to which this filter should be mapped.
      • setPathSpec

        public void setPathSpec​(java.lang.String pathSpec)
        Parameters:
        pathSpec - The pathSpec to set.
      • getServletNames

        @ManagedAttribute(value="servlet names",
                          readonly=true)
        public java.lang.String[] getServletNames()
        Returns:
        Returns the servletName.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • dump

        public void dump​(java.lang.Appendable out,
                         java.lang.String indent)
                  throws java.io.IOException
        Description copied from interface: Dumpable
        Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
        Specified by:
        dump in interface Dumpable
        Parameters:
        out - The appendable to dump to
        indent - The indent to apply after any new lines.
        Throws:
        java.io.IOException - if unable to write to Appendable
      • dump

        public java.lang.String dump()
        Specified by:
        dump in interface Dumpable