Class ContentPreviewingClientBuilder
java.lang.Object
com.linecorp.armeria.client.logging.ContentPreviewingClientBuilder
Builds a new
ContentPreviewingClient
.-
Method Summary
Modifier and TypeMethodDescriptionbuild
(HttpClient delegate) Returns a newly-createdContentPreviewingClient
decoratingdelegate
based on the properties of this builder.Function
<? super HttpClient, ContentPreviewingClient> Returns a newly-createdContentPreviewingClient
decorator based on the properties of this builder.previewSanitizer
(BiFunction<? super RequestContext, String, ? extends @Nullable Object> previewSanitizer) Sets theBiFunction
to use to sanitize request and response content preview.requestPreviewSanitizer
(BiFunction<? super RequestContext, String, ? extends @Nullable Object> requestPreviewSanitizer) Sets theBiFunction
to use to sanitize request content preview.responsePreviewSanitizer
(BiFunction<? super RequestContext, String, ? extends @Nullable Object> responsePreviewSanitizer) Sets theBiFunction
to use to sanitize response content preview.
-
Method Details
-
requestPreviewSanitizer
public ContentPreviewingClientBuilder requestPreviewSanitizer(BiFunction<? super RequestContext, String, ? extends @Nullable Object> requestPreviewSanitizer) Sets theBiFunction
to use to sanitize request content preview. It is common to have theBiFunction
that removes sensitive content, such as an address, before logging. If unset, will not sanitize request content preview. -
responsePreviewSanitizer
public ContentPreviewingClientBuilder responsePreviewSanitizer(BiFunction<? super RequestContext, String, ? extends @Nullable Object> responsePreviewSanitizer) Sets theBiFunction
to use to sanitize response content preview. It is common to have theBiFunction
that removes sensitive content, such as an address, before logging. If unset, will not sanitize response content preview. -
previewSanitizer
public ContentPreviewingClientBuilder previewSanitizer(BiFunction<? super RequestContext, String, ? extends @Nullable Object> previewSanitizer) Sets theBiFunction
to use to sanitize request and response content preview. It is common to have theBiFunction
that removes sensitive content, such as an address, before logging. If unset, will not sanitize response content preview. This method is a shortcut for:builder.requestContentSanitizer(previewSanitizer); builder.responseContentSanitizer(previewSanitizer);
- See Also:
-
build
Returns a newly-createdContentPreviewingClient
decoratingdelegate
based on the properties of this builder. -
newDecorator
Returns a newly-createdContentPreviewingClient
decorator based on the properties of this builder.
-