Interface RequestPredicateVisitorAdapter

All Superinterfaces:
org.springframework.web.reactive.function.server.RequestPredicates.Visitor
All Known Implementing Classes:
ConsumingWebEndpointMappingAdapter

public interface RequestPredicateVisitorAdapter extends org.springframework.web.reactive.function.server.RequestPredicates.Visitor
The adapter interface for RequestPredicates.Visitor
Since:
1.0.0
Author:
Mercy
See Also:
  • RequestPredicates.Visitor
  • RequestPredicate
  • RequestPredicates
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    and()
    Receive "middle" notification of a logical AND predicate.
    default void
    Receive last notification of a logical AND predicate.
    default void
    Receive last notification of a negated predicate.
    default void
    Receive last notification of a logical OR predicate.
    default void
    header(String name, String value)
    Receive notification of an HTTP header predicate.
    default void
    method(Set<org.springframework.http.HttpMethod> methods)
    Receive notification of an HTTP method predicate.
    default void
    or()
    Receive "middle" notification of a logical OR predicate.
    default void
    path(String pattern)
    Receive notification of a path predicate.
    default void
    pathExtension(String extension)
    Receive notification of a path extension predicate.
    default void
    queryParam(String name, String value)
    Receive notification of a query parameter predicate.
    default void
    Receive first notification of a logical AND predicate.
    default void
    Receive first notification of a negated predicate.
    default void
    Receive first notification of a logical OR predicate.
    default void
    unknown(org.springframework.web.reactive.function.server.RequestPredicate predicate)
    Receive first notification of an unknown predicate.
    default void
    version(String version)
    default void
    visit(org.springframework.web.reactive.function.server.RequestPredicate predicate)
     
  • Method Details

    • method

      default void method(Set<org.springframework.http.HttpMethod> methods)
      Receive notification of an HTTP method predicate.
      Specified by:
      method in interface org.springframework.web.reactive.function.server.RequestPredicates.Visitor
      Parameters:
      methods - the HTTP methods that make up the predicate
      See Also:
      • RequestPredicates.method(HttpMethod)
      • RequestPredicates.Visitor.method(Set)
    • path

      default void path(String pattern)
      Receive notification of a path predicate.
      Specified by:
      path in interface org.springframework.web.reactive.function.server.RequestPredicates.Visitor
      Parameters:
      pattern - the path pattern that makes up the predicate
      See Also:
      • RequestPredicates.path(String)
      • RequestPredicates.Visitor.path(String)
    • pathExtension

      default void pathExtension(String extension)
      Receive notification of a path extension predicate.
      Specified by:
      pathExtension in interface org.springframework.web.reactive.function.server.RequestPredicates.Visitor
      Parameters:
      extension - the path extension that makes up the predicate
      See Also:
      • RequestPredicates.pathExtension(String)
      • RequestPredicates.Visitor.pathExtension(String)
    • header

      default void header(String name, String value)
      Receive notification of an HTTP header predicate.
      Specified by:
      header in interface org.springframework.web.reactive.function.server.RequestPredicates.Visitor
      Parameters:
      name - the name of the HTTP header to check
      value - the desired value of the HTTP header
      See Also:
      • RequestPredicates.headers(Predicate)
      • RequestPredicates.contentType(MediaType...)
      • RequestPredicates.accept(MediaType...)
      • RequestPredicates.Visitor.header(String, String)
    • queryParam

      default void queryParam(String name, String value)
      Receive notification of a query parameter predicate.
      Specified by:
      queryParam in interface org.springframework.web.reactive.function.server.RequestPredicates.Visitor
      Parameters:
      name - the name of the query parameter
      value - the desired value of the parameter
      See Also:
      • RequestPredicates.queryParam(String, String)
      • RequestPredicates.Visitor.queryParam(String, String)
    • version

      default void version(String version)
      Specified by:
      version in interface org.springframework.web.reactive.function.server.RequestPredicates.Visitor
      Since:
      Spring Framework 7.0
    • startAnd

      default void startAnd()
      Receive first notification of a logical AND predicate. The first subsequent notification will contain the left-hand side of the AND-predicate; followed by and(), followed by the right-hand side, followed by endAnd().
      Specified by:
      startAnd in interface org.springframework.web.reactive.function.server.RequestPredicates.Visitor
      See Also:
      • RequestPredicate.and(RequestPredicate)
      • RequestPredicates.Visitor.startAnd()
    • and

      default void and()
      Receive "middle" notification of a logical AND predicate. The following notification contains the right-hand side, followed by endAnd().
      Specified by:
      and in interface org.springframework.web.reactive.function.server.RequestPredicates.Visitor
      See Also:
      • RequestPredicate.and(RequestPredicate)
      • RequestPredicates.Visitor.and()
    • endAnd

      default void endAnd()
      Receive last notification of a logical AND predicate.
      Specified by:
      endAnd in interface org.springframework.web.reactive.function.server.RequestPredicates.Visitor
      See Also:
      • RequestPredicate.and(RequestPredicate)
      • RequestPredicates.Visitor.endAnd()
    • startOr

      default void startOr()
      Receive first notification of a logical OR predicate. The first subsequent notification will contain the left-hand side of the OR-predicate; the second notification contains the right-hand side, followed by endOr().
      Specified by:
      startOr in interface org.springframework.web.reactive.function.server.RequestPredicates.Visitor
      See Also:
      • RequestPredicate.or(RequestPredicate)
      • RequestPredicates.Visitor.startOr()
    • or

      default void or()
      Receive "middle" notification of a logical OR predicate. The following notification contains the right-hand side, followed by endOr().
      Specified by:
      or in interface org.springframework.web.reactive.function.server.RequestPredicates.Visitor
      See Also:
      • RequestPredicate.or(RequestPredicate)
      • RequestPredicates.Visitor.or()
    • endOr

      default void endOr()
      Receive last notification of a logical OR predicate.
      Specified by:
      endOr in interface org.springframework.web.reactive.function.server.RequestPredicates.Visitor
      See Also:
      • RequestPredicate.or(RequestPredicate)
      • RequestPredicates.Visitor.endOr()
    • startNegate

      default void startNegate()
      Receive first notification of a negated predicate. The first subsequent notification will contain the negated predicated, followed by endNegate().
      Specified by:
      startNegate in interface org.springframework.web.reactive.function.server.RequestPredicates.Visitor
      See Also:
      • RequestPredicate.negate()
      • RequestPredicates.Visitor.startNegate()
    • endNegate

      default void endNegate()
      Receive last notification of a negated predicate.
      Specified by:
      endNegate in interface org.springframework.web.reactive.function.server.RequestPredicates.Visitor
      See Also:
      • RequestPredicate.negate()
      • RequestPredicates.Visitor.endNegate()
    • unknown

      default void unknown(org.springframework.web.reactive.function.server.RequestPredicate predicate)
      Receive first notification of an unknown predicate.
      Specified by:
      unknown in interface org.springframework.web.reactive.function.server.RequestPredicates.Visitor
      See Also:
      • RequestPredicates.Visitor.unknown(RequestPredicate)
    • visit

      default void visit(org.springframework.web.reactive.function.server.RequestPredicate predicate)