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.VisitorRequestPredicateRequestPredicates
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidand()Receive "middle" notification of a logical AND predicate.default voidendAnd()Receive last notification of a logical AND predicate.default voidReceive last notification of a negated predicate.default voidendOr()Receive last notification of a logical OR predicate.default voidReceive notification of an HTTP header predicate.default voidReceive notification of an HTTP method predicate.default voidor()Receive "middle" notification of a logical OR predicate.default voidReceive notification of a path predicate.default voidpathExtension(String extension) Receive notification of a path extension predicate.default voidqueryParam(String name, String value) Receive notification of a query parameter predicate.default voidstartAnd()Receive first notification of a logical AND predicate.default voidReceive first notification of a negated predicate.default voidstartOr()Receive first notification of a logical OR predicate.default voidunknown(org.springframework.web.reactive.function.server.RequestPredicate predicate) Receive first notification of an unknown predicate.default voiddefault voidvisit(org.springframework.web.reactive.function.server.RequestPredicate predicate)
-
Method Details
-
method
Receive notification of an HTTP method predicate.- Specified by:
methodin interfaceorg.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
Receive notification of a path predicate.- Specified by:
pathin interfaceorg.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
Receive notification of a path extension predicate.- Specified by:
pathExtensionin interfaceorg.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
Receive notification of an HTTP header predicate.- Specified by:
headerin interfaceorg.springframework.web.reactive.function.server.RequestPredicates.Visitor- Parameters:
name- the name of the HTTP header to checkvalue- the desired value of the HTTP header- See Also:
-
RequestPredicates.headers(Predicate)RequestPredicates.contentType(MediaType...)RequestPredicates.accept(MediaType...)RequestPredicates.Visitor.header(String, String)
-
queryParam
Receive notification of a query parameter predicate.- Specified by:
queryParamin interfaceorg.springframework.web.reactive.function.server.RequestPredicates.Visitor- Parameters:
name- the name of the query parametervalue- the desired value of the parameter- See Also:
-
RequestPredicates.queryParam(String, String)RequestPredicates.Visitor.queryParam(String, String)
-
version
- Specified by:
versionin interfaceorg.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 byand(), followed by the right-hand side, followed byendAnd().- Specified by:
startAndin interfaceorg.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 byendAnd().- Specified by:
andin interfaceorg.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:
endAndin interfaceorg.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 byendOr().- Specified by:
startOrin interfaceorg.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 byendOr().- Specified by:
orin interfaceorg.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:
endOrin interfaceorg.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 byendNegate().- Specified by:
startNegatein interfaceorg.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:
endNegatein interfaceorg.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:
unknownin interfaceorg.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)
-