Package org.microproxy.extras
Class BlockList.Builder
java.lang.Object
org.microproxy.extras.BlockList.Builder
- Enclosing class:
BlockList
Builds
BlockList.-
Method Summary
Modifier and TypeMethodDescriptionAdds a rule from a spec.add(BlockList.Rule rule) Adds a rule.build()Creates the addon.maxBodySize(int bytes) Largest request body buffered for filters that look at it (~bq); default 10 MiB.
-
Method Details
-
add
Adds a rule from a spec.- Parameters:
spec- a spec of the form|flow-filter|status- Returns:
- this builder
- Throws:
IllegalArgumentException- if the spec is invalid
-
add
Adds a rule.- Parameters:
rule- the rule to append- Returns:
- this builder
-
maxBodySize
Largest request body buffered for filters that look at it (~bq); default 10 MiB.- Parameters:
bytes- the buffer limit in bytes- Returns:
- this builder
-
build
Creates the addon.- Returns:
- the configured addon
-