org.springframework.web.servlet.mvc.condition

Class AbstractRequestCondition<T extends AbstractRequestCondition<T>>

  • java.lang.Object
    • org.springframework.web.servlet.mvc.condition.AbstractRequestCondition<T>
    • Constructor Detail

      • AbstractRequestCondition

        public AbstractRequestCondition()
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Indicates whether this condition is empty, i.e. whether or not it contains any discrete items.
        Returns:
        true if empty; false otherwise
      • getContent

        protected abstract java.util.Collection<?> getContent()
        Return the discrete items a request condition is composed of.

        For example URL patterns, HTTP request methods, param expressions, etc.

        Returns:
        a collection of objects, never null
      • getToStringInfix

        protected abstract java.lang.String getToStringInfix()
        The notation to use when printing discrete items of content.

        For example " || " for URL patterns or " && " for param expressions.

      • equals

        public boolean equals(@Nullable
                              java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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