Package org.microproxy.extras
Class MapRemote.Builder
java.lang.Object
org.microproxy.extras.MapRemote.Builder
- Enclosing class:
MapRemote
Builds
MapRemote.-
Method Summary
Modifier and TypeMethodDescriptionAdds a rule from a spec.add(MapRemote.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|replacement- 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. A larger body is answered with413, as for any filter that buffers requests.- Parameters:
bytes- the buffer limit in bytes- Returns:
- this builder
-
build
Creates the addon.- Returns:
- the configured addon
-