Class RuleBasedFilterConfig.Rule.Builder
java.lang.Object
com.yahoo.vespa.config.jdisc.http.filter.RuleBasedFilterConfig.Rule.Builder
- All Implemented Interfaces:
com.yahoo.config.ConfigBuilder
- Enclosing class:
- RuleBasedFilterConfig.Rule
public static final class RuleBasedFilterConfig.Rule.Builder
extends Object
implements com.yahoo.config.ConfigBuilder
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockResponseCode(int __value) Add the given builder to this builder's list of BlockResponseHeaders buildersMake a new builder and run the supplied function on it before adding it to the listSet the given list as this builder's list of BlockResponseHeaders buildersblockResponseMessage(String __value) build()hostNames(Collection<String> __values) pathExpressions(String __value) pathExpressions(Collection<String> __values)
-
Field Details
-
hostNames
-
methods
-
pathExpressions
-
blockResponseHeaders
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
name
-
action
-
hostNames
-
hostNames
-
methods
-
methods
public RuleBasedFilterConfig.Rule.Builder methods(Collection<RuleBasedFilterConfig.Rule.Methods.Enum> __values) -
pathExpressions
-
pathExpressions
-
blockResponseCode
-
blockResponseMessage
-
blockResponseHeaders
public RuleBasedFilterConfig.Rule.Builder blockResponseHeaders(RuleBasedFilterConfig.Rule.BlockResponseHeaders.Builder __builder) Add the given builder to this builder's list of BlockResponseHeaders builders- Parameters:
__builder- a builder- Returns:
- this builder
-
blockResponseHeaders
public RuleBasedFilterConfig.Rule.Builder blockResponseHeaders(Consumer<RuleBasedFilterConfig.Rule.BlockResponseHeaders.Builder> __func) Make a new builder and run the supplied function on it before adding it to the list- Parameters:
__func- lambda that modifies the given builder- Returns:
- this builder
-
blockResponseHeaders
public RuleBasedFilterConfig.Rule.Builder blockResponseHeaders(List<RuleBasedFilterConfig.Rule.BlockResponseHeaders.Builder> __builders) Set the given list as this builder's list of BlockResponseHeaders builders- Parameters:
__builders- a list of builders- Returns:
- this builder
-
build
-