Interface CustomRequestCondition<T extends CustomRequestCondition<T>>

Type Parameters:
T - request condition
All Superinterfaces:
org.springframework.web.servlet.mvc.condition.RequestCondition<T>
All Known Implementing Classes:
AbstractCustomRequestCondition

public interface CustomRequestCondition<T extends CustomRequestCondition<T>> extends org.springframework.web.servlet.mvc.condition.RequestCondition<T>
Extension of RequestCondition that is aware of the annotated element it is for (either handler type or method).
Since:
2.0.0
Author:
Arne Vandamme
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    combine(T other)
     
    int
    compareTo(T other, jakarta.servlet.http.HttpServletRequest request)
     
    getMatchingCondition(jakarta.servlet.http.HttpServletRequest request)
     
    void
    Set the handler type or the handler method that this condition is being created for.
  • Method Details

    • setAnnotatedElement

      void setAnnotatedElement(AnnotatedElement annotatedElement)
      Set the handler type or the handler method that this condition is being created for.
      Parameters:
      annotatedElement - handler type or method
    • combine

      T combine(T other)
      Specified by:
      combine in interface org.springframework.web.servlet.mvc.condition.RequestCondition<T extends CustomRequestCondition<T>>
    • getMatchingCondition

      T getMatchingCondition(jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      getMatchingCondition in interface org.springframework.web.servlet.mvc.condition.RequestCondition<T extends CustomRequestCondition<T>>
    • compareTo

      int compareTo(T other, jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      compareTo in interface org.springframework.web.servlet.mvc.condition.RequestCondition<T extends CustomRequestCondition<T>>