Package org.microproxy.extras
Class MapLocal.Builder
java.lang.Object
org.microproxy.extras.MapLocal.Builder
- Enclosing class:
MapLocal
Builds
MapLocal.-
Method Summary
Modifier and TypeMethodDescriptionAdds a rule from a spec.add(MapLocal.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]|url-regex|file-or-directory- Returns:
- this builder
- Throws:
IllegalArgumentException- if the spec is invalid or its path does not exist
-
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
-