Class HttpJsonLoggingInterceptor.HttpJsonLoggingInterceptorBuilder
java.lang.Object
com.amilesend.client.connection.http.HttpJsonLoggingInterceptor.HttpJsonLoggingInterceptorBuilder
- Enclosing class:
HttpJsonLoggingInterceptor
-
Method Summary
Modifier and TypeMethodDescriptionbuild()gson(@NonNull com.google.gson.Gson gson) The configured GSON instance.isRequestLogged(boolean isRequestLogged) Log requests flag.isResponseLogged(boolean isResponseLogged) Log response flag.log(org.slf4j.Logger log) The logger instance.loggingLevel(org.slf4j.event.Level loggingLevel) The logging level of the statements.redactedHeader(String redactedHeader) redactedHeaders(Collection<? extends String> redactedHeaders) redactedQueryParam(String redactedQueryParam) redactedQueryParams(Collection<? extends String> redactedQueryParams) toString()
-
Method Details
-
redactedHeader
public HttpJsonLoggingInterceptor.HttpJsonLoggingInterceptorBuilder redactedHeader(String redactedHeader) -
redactedHeaders
public HttpJsonLoggingInterceptor.HttpJsonLoggingInterceptorBuilder redactedHeaders(Collection<? extends String> redactedHeaders) -
clearRedactedHeaders
-
redactedQueryParam
public HttpJsonLoggingInterceptor.HttpJsonLoggingInterceptorBuilder redactedQueryParam(String redactedQueryParam) -
redactedQueryParams
public HttpJsonLoggingInterceptor.HttpJsonLoggingInterceptorBuilder redactedQueryParams(Collection<? extends String> redactedQueryParams) -
clearRedactedQueryParams
-
gson
public HttpJsonLoggingInterceptor.HttpJsonLoggingInterceptorBuilder gson(@NonNull com.google.gson.Gson gson) The configured GSON instance. Note: Recommended to set the pretty-print flag.- Returns:
this.
-
isRequestLogged
public HttpJsonLoggingInterceptor.HttpJsonLoggingInterceptorBuilder isRequestLogged(boolean isRequestLogged) Log requests flag.- Returns:
this.
-
isResponseLogged
public HttpJsonLoggingInterceptor.HttpJsonLoggingInterceptorBuilder isResponseLogged(boolean isResponseLogged) Log response flag.- Returns:
this.
-
log
The logger instance.- Returns:
this.
-
loggingLevel
public HttpJsonLoggingInterceptor.HttpJsonLoggingInterceptorBuilder loggingLevel(org.slf4j.event.Level loggingLevel) The logging level of the statements.- Returns:
this.
-
build
-
toString
-