Class RuleBasedFilterConfig.DefaultRule.Builder
java.lang.Object
com.yahoo.vespa.config.jdisc.http.filter.RuleBasedFilterConfig.DefaultRule.Builder
- All Implemented Interfaces:
com.yahoo.config.ConfigBuilder
- Enclosing class:
- RuleBasedFilterConfig.DefaultRule
public static final class RuleBasedFilterConfig.DefaultRule.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 buildersblockResponseHeaders(Consumer<RuleBasedFilterConfig.DefaultRule.BlockResponseHeaders.Builder> __func) Make a new builder and run the supplied function on it before adding it to the listblockResponseHeaders(List<RuleBasedFilterConfig.DefaultRule.BlockResponseHeaders.Builder> __builders) Set the given list as this builder's list of BlockResponseHeaders buildersblockResponseMessage(String __value) build()
-
Field Details
-
blockResponseHeaders
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
action
public RuleBasedFilterConfig.DefaultRule.Builder action(RuleBasedFilterConfig.DefaultRule.Action.Enum __value) -
blockResponseCode
-
blockResponseMessage
-
blockResponseHeaders
public RuleBasedFilterConfig.DefaultRule.Builder blockResponseHeaders(RuleBasedFilterConfig.DefaultRule.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.DefaultRule.Builder blockResponseHeaders(Consumer<RuleBasedFilterConfig.DefaultRule.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.DefaultRule.Builder blockResponseHeaders(List<RuleBasedFilterConfig.DefaultRule.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
-