Class DefaultFilterMapping

java.lang.Object
cloud.piranha.core.impl.DefaultFilterMapping
All Implemented Interfaces:
FilterMapping

public class DefaultFilterMapping extends Object implements FilterMapping
The default FilterMapping.
Author:
Manfred Riem ([email protected])
  • Constructor Details

    • DefaultFilterMapping

      public DefaultFilterMapping(String filterName, String urlPattern)
      Constructor.
      Parameters:
      filterName - the filter name.
      urlPattern - the URL pattern.
    • DefaultFilterMapping

      public DefaultFilterMapping(jakarta.servlet.DispatcherType dispatcherType, String filterName, String urlPattern)
      Constructor.
      Parameters:
      dispatcherType - the dispatcher type.
      filterName - the filter name.
      urlPattern - the URL pattern.
  • Method Details

    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • getDispatcherType

      public jakarta.servlet.DispatcherType getDispatcherType()
      Description copied from interface: FilterMapping
      Returns the dispatcher type.

      The dispatcher type is the kind of dispatch that the filter mapping applies to. Default is REQUEST, which represents the request from the user to the system.

      Specified by:
      getDispatcherType in interface FilterMapping
      Returns:
      the dispatcher type
    • getFilterName

      public String getFilterName()
      Description copied from interface: FilterMapping
      Returns the filter name.
      Specified by:
      getFilterName in interface FilterMapping
      Returns:
      the filter name
    • getUrlPattern

      public String getUrlPattern()
      Description copied from interface: FilterMapping
      Returns the URL pattern.
      Specified by:
      getUrlPattern in interface FilterMapping
      Returns:
      the URL pattern
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object