Class EchoMixin.Builder
java.lang.Object
org.apache.juneau.rest.server.ops.EchoMixin.Builder
- Enclosing class:
- EchoMixin
Builder for
EchoMixin instances.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder()Constructor — package access forEchoMixin.create(). -
Method Summary
Modifier and TypeMethodDescriptionbodyLimit(long value) Sets the body capture cap.build()Builds aEchoMixininstance.enabled()Enables the/echo/*endpoint — shorthand forenabled(Boolean.TRUE).Sets the explicit enablement tri-state for the/echo/*endpoint.redactedHeaders(String... values) Replaces the redacted-header set with the supplied values.redactHeader(String value) Adds an additional header name to the redacted-header set.
-
Constructor Details
-
Builder
protected Builder()Constructor — package access forEchoMixin.create().
-
-
Method Details
-
enabled
Sets the explicit enablement tri-state for the/echo/*endpoint.This is a non-logging switch that is independent of the JUL logger level. The default is unset (
null), which defers to the${juneau.echo.enabled:false}deployment fallback (system property / relaxed environment variable) — see the class-level Javadoc for the resolution rules and the global-fallback blast-radius warning.- Parameters:
value-Boolean.TRUEto enable,Boolean.FALSEto explicitly disable (overriding the global fallback), ornullto leave unset (defer to the fallback).- Returns:
- This object.
-
enabled
Enables the/echo/*endpoint — shorthand forenabled(Boolean.TRUE).- Returns:
- This object.
-
bodyLimit
Sets the body capture cap.Captured content is truncated when the inbound body exceeds this size; the
truncatedflag in the response is set totrue.- Parameters:
value- Cap, in bytes. Must be>= 0.- Returns:
- This object.
-
redactedHeaders
Replaces the redacted-header set with the supplied values.Header names are matched case-insensitively. Pass an empty array to disable redaction (not recommended outside of integration tests).
- Parameters:
values- The header names to redact. Can benull(equivalent to an empty array — disables redaction);nullor blank elements are skipped.- Returns:
- This object.
-
redactHeader
Adds an additional header name to the redacted-header set.- Parameters:
value- The header name to redact (case-insensitive). Must not benullor blank.- Returns:
- This object.
-
build
Builds aEchoMixininstance.- Returns:
- A configured instance.
-