Class BooleanSpec
- java.lang.Object
-
- org.springframework.cloud.gateway.route.builder.UriSpec
-
- org.springframework.cloud.gateway.route.builder.BooleanSpec
-
public class BooleanSpec extends UriSpec
A spec used to apply logical operators.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBooleanSpec.BooleanOpSpecstatic classBooleanSpec.NotOpSpec
-
Constructor Summary
Constructors Constructor Description BooleanSpec(Route.AsyncBuilder routeBuilder, RouteLocatorBuilder.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanSpec.BooleanOpSpecand()Apply logicalandoperator.UriSpecfilters(Function<GatewayFilterSpec,UriSpec> fn)Add filters to the route definition.BooleanSpecnegate()Negate the logical operator.BooleanSpec.BooleanOpSpecor()Apply logicaloroperator.
-
-
-
Constructor Detail
-
BooleanSpec
public BooleanSpec(Route.AsyncBuilder routeBuilder, RouteLocatorBuilder.Builder builder)
-
-
Method Detail
-
and
public BooleanSpec.BooleanOpSpec and()
Apply logicalandoperator.- Returns:
- a
BooleanSpecto be used to add logical operators
-
or
public BooleanSpec.BooleanOpSpec or()
Apply logicaloroperator.- Returns:
- a
BooleanSpecto be used to add logical operators
-
negate
public BooleanSpec negate()
Negate the logical operator.- Returns:
- a
BooleanSpecto be used to add logical operators
-
filters
public UriSpec filters(Function<GatewayFilterSpec,UriSpec> fn)
Add filters to the route definition.- Parameters:
fn- AFunctionthat takes in aGatewayFilterSpecand returns aUriSpec- Returns:
- a
UriSpec
-
-