Class BooleanSpec
java.lang.Object
org.springframework.cloud.gateway.route.builder.UriSpec
org.springframework.cloud.gateway.route.builder.BooleanSpec
A spec used to apply logical operators.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionBooleanSpec(Route.AsyncBuilder routeBuilder, RouteLocatorBuilder.Builder builder) -
Method Summary
-
Constructor Details
-
BooleanSpec
-
-
Method Details
-
and
Apply logicalandoperator.- Returns:
- a
BooleanSpecto be used to add logical operators
-
or
Apply logicaloroperator.- Returns:
- a
BooleanSpecto be used to add logical operators
-
negate
Negate the logical operator.- Returns:
- a
BooleanSpecto be used to add logical operators
-
filters
Add filters to the route definition.- Parameters:
fn- AFunctionthat takes in aGatewayFilterSpecand returns aUriSpec- Returns:
- a
UriSpec
-