Package | Description |
---|---|
org.springframework.cloud.gateway.route.builder |
Modifier and Type | Method and Description |
---|---|
BooleanSpec |
PredicateSpec.after(ZonedDateTime datetime)
A predicate to check if a request was made after a specific
ZonedDateTime |
BooleanSpec |
PredicateSpec.alwaysTrue()
A predicate which is always true
|
BooleanSpec |
PredicateSpec.asyncPredicate(AsyncPredicate<org.springframework.web.server.ServerWebExchange> predicate) |
BooleanSpec |
BooleanSpec.BooleanOpSpec.asyncPredicate(AsyncPredicate<org.springframework.web.server.ServerWebExchange> predicate) |
BooleanSpec |
PredicateSpec.before(ZonedDateTime datetime)
A predicate to check if a request was made before a specific
ZonedDateTime |
BooleanSpec |
PredicateSpec.between(ZonedDateTime datetime1,
ZonedDateTime datetime2)
A predicate to check if a request was made between two
ZonedDateTime s |
BooleanSpec |
PredicateSpec.cloudFoundryRouteService() |
BooleanSpec |
PredicateSpec.cookie(String name,
String regex)
A predicate that checks if a cookie matches a given regular expression
|
BooleanSpec |
PredicateSpec.header(String header)
A predicate that checks if a given header is present on the request
|
BooleanSpec |
PredicateSpec.header(String header,
String regex)
A predicate that checks if a given headers has a value which matches a regular expression
|
BooleanSpec |
PredicateSpec.host(String pattern)
A predicate that checks if the
host header matches a given pattern |
BooleanSpec |
PredicateSpec.method(org.springframework.http.HttpMethod method)
A predicate that checks if the HTTP method matches
|
BooleanSpec |
PredicateSpec.method(String method)
A predicate that checks if the HTTP method matches
|
BooleanSpec |
BooleanSpec.negate()
Negate the logical operator.
|
BooleanSpec |
PredicateSpec.path(String pattern)
A predicate that checks if the path of the request matches the given pattern
|
BooleanSpec |
PredicateSpec.path(String pattern,
boolean matchOptionalTrailingSeparator)
A predicate that checks if the path of the request matches the given pattern
|
BooleanSpec |
PredicateSpec.predicate(Predicate<org.springframework.web.server.ServerWebExchange> predicate) |
BooleanSpec |
BooleanSpec.BooleanOpSpec.predicate(Predicate<org.springframework.web.server.ServerWebExchange> predicate) |
BooleanSpec |
PredicateSpec.query(String param)
A predicate that checks if a given query parameter is present in the request URL
|
BooleanSpec |
PredicateSpec.query(String param,
String regex)
A predicate that checks if a query parameter matches a regular expression
|
<T> BooleanSpec |
PredicateSpec.readBody(Class<T> inClass,
Predicate<T> predicate)
This predicate is BETA and may be subject to change in a future release.
|
BooleanSpec |
PredicateSpec.remoteAddr(RemoteAddressResolver resolver,
String... addrs)
A predicate which checks the remote address of the request.
|
BooleanSpec |
PredicateSpec.remoteAddr(String... addrs)
A predicate which checks the remote address of the request.
|
BooleanSpec |
PredicateSpec.weight(String group,
int weight)
A predicate which will select a route based on its assigned weight.
|
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.