Java Code Examples for org.springframework.http.codec.multipart.MultipartHttpMessageReader#setEnableLoggingRequestDetails()
The following examples show how to use
org.springframework.http.codec.multipart.MultipartHttpMessageReader#setEnableLoggingRequestDetails() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ServerDefaultCodecsImpl.java From spring-analysis-note with MIT License | 5 votes |
@Override protected void extendTypedReaders(List<HttpMessageReader<?>> typedReaders) { HttpMessageReader<Part> partReader = getMultipartReader(); boolean logRequestDetails = isEnableLoggingRequestDetails(); if (partReader instanceof LoggingCodecSupport) { ((LoggingCodecSupport) partReader).setEnableLoggingRequestDetails(logRequestDetails); } typedReaders.add(partReader); MultipartHttpMessageReader reader = new MultipartHttpMessageReader(partReader); reader.setEnableLoggingRequestDetails(logRequestDetails); typedReaders.add(reader); }
Example 2
Source File: ServerDefaultCodecsImpl.java From java-technology-stack with MIT License | 5 votes |
@Override protected void extendTypedReaders(List<HttpMessageReader<?>> typedReaders) { if (synchronossMultipartPresent) { boolean enable = isEnableLoggingRequestDetails(); SynchronossPartHttpMessageReader partReader = new SynchronossPartHttpMessageReader(); partReader.setEnableLoggingRequestDetails(enable); typedReaders.add(partReader); MultipartHttpMessageReader reader = new MultipartHttpMessageReader(partReader); reader.setEnableLoggingRequestDetails(enable); typedReaders.add(reader); } }