Class FilterMapping

  • All Implemented Interfaces:
    org.eclipse.jetty.util.component.Dumpable

    @ManagedObject("Filter Mappings")
    public class FilterMapping
    extends java.lang.Object
    implements org.eclipse.jetty.util.component.Dumpable
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable

        org.eclipse.jetty.util.component.Dumpable.DumpableContainer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALL  
      static int ASYNC  
      static int DEFAULT
      Dispatch types
      static int ERROR  
      static int FORWARD  
      static int INCLUDE  
      static int REQUEST  
      • Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

        KEY
    • Constructor Summary

      Constructors 
      Constructor Description
      FilterMapping()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean appliesTo​(javax.servlet.DispatcherType t)  
      static javax.servlet.DispatcherType dispatch​(int type)
      Dispatch type from name
      static javax.servlet.DispatcherType dispatch​(java.lang.String type)
      Dispatch type from name
      static int dispatch​(javax.servlet.DispatcherType type)
      Dispatch type from name
      java.lang.String dump()  
      void dump​(java.lang.Appendable out, java.lang.String indent)  
      java.util.EnumSet<javax.servlet.DispatcherType> getDispatcherTypes()  
      java.lang.String getFilterName()  
      java.lang.String[] getPathSpecs()  
      java.lang.String[] getServletNames()  
      boolean isDefaultDispatches()  
      void setDispatcherTypes​(java.util.EnumSet<javax.servlet.DispatcherType> dispatcherTypes)  
      void setDispatches​(int dispatches)  
      void setFilterName​(java.lang.String filterName)  
      void setPathSpec​(java.lang.String pathSpec)  
      void setPathSpecs​(java.lang.String[] pathSpecs)  
      void setServletName​(java.lang.String servletName)  
      void setServletNames​(java.lang.String[] servletNames)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.jetty.util.component.Dumpable

        dumpSelf
    • 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

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

        public boolean isDefaultDispatches()
      • getFilterName

        @ManagedAttribute(value="filter name",
                          readonly=true)
        public java.lang.String getFilterName()
        Returns:
        Returns the filterName.
      • getPathSpecs

        @ManagedAttribute(value="url patterns",
                          readonly=true)
        public java.lang.String[] getPathSpecs()
        Returns:
        Returns the pathSpec.
      • 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.
      • 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
        Specified by:
        dump in interface org.eclipse.jetty.util.component.Dumpable
        Throws:
        java.io.IOException
      • dump

        public java.lang.String dump()
        Specified by:
        dump in interface org.eclipse.jetty.util.component.Dumpable