Class DefaultFilterMapping

java.lang.Object
cloud.piranha.webapp.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(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)
      Equals.
      Overrides:
      equals in class Object
      Parameters:
      object - the object to compare against.
      Returns:
      true if equal, false otherwise.
    • getDispatcherType

      public DispatcherType getDispatcherType()
      Returns the dispatcher type.
      Specified by:
      getDispatcherType in interface FilterMapping
      Returns:
      the dispatcher type
    • getFilterName

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

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

      public int hashCode()
      Hash code.
      Overrides:
      hashCode in class Object
      Returns:
      the hash code.