Top Description Fields Constructors Methods
org.springframework.http.codec

public Class LoggingCodecSupport

extends Object
Class Inheritance
Known Direct Subclasses
org.springframework.http.codec.multipart.DefaultPartHttpMessageReader, org.springframework.http.codec.multipart.MultipartHttpMessageReader, org.springframework.http.codec.multipart.MultipartWriterSupport, org.springframework.http.codec.multipart.PartEventHttpMessageReader, org.springframework.http.codec.FormHttpMessageReader, org.springframework.http.codec.FormHttpMessageWriter
Imports
org.apache.commons.logging.Log, org.springframework.http.HttpLogging

Base class for org.springframework.core.codec.Encoder, org.springframework.core.codec.Decoder, HttpMessageReader, or HttpMessageWriter that uses a logger and shows potentially sensitive request data.
Author
Rossen Stoyanchev
Since
5.1

Field Summary

Modifier and TypeField and Description
private boolean
enableLoggingRequestDetails

Whether to log potentially sensitive info (form data at DEBUG and headers at TRACE).

protected final Log

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
isEnableLoggingRequestDetails()

Whether any logging of values being encoded or decoded is explicitly disabled regardless of log level.

public void
setEnableLoggingRequestDetails(boolean
whether to enable or not
enable
)

Whether to log form data at DEBUG level, and headers at TRACE level.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

enableLoggingRequestDetailsback to summary
private boolean enableLoggingRequestDetails

Whether to log potentially sensitive info (form data at DEBUG and headers at TRACE).

loggerback to summary
protected final Log logger

Constructor Detail

LoggingCodecSupportback to summary
public LoggingCodecSupport()

Method Detail

isEnableLoggingRequestDetailsback to summary
public boolean isEnableLoggingRequestDetails()

Whether any logging of values being encoded or decoded is explicitly disabled regardless of log level.

setEnableLoggingRequestDetailsback to summary
public void setEnableLoggingRequestDetails(boolean enable)

Whether to log form data at DEBUG level, and headers at TRACE level. Both may contain sensitive information.

By default set to false so that request details are not shown.

Parameters
enable:boolean

whether to enable or not