public class DefaultLogFormatter extends Object implements LogFormatter
LogFormatter implementation.| Constructor and Description |
|---|
DefaultLogFormatter() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
formatBody(byte[] body,
Charset charset) |
String |
formatRequest(org.springframework.http.HttpRequest request,
byte[] body) |
String |
formatResponse(org.springframework.http.client.ClientHttpResponse response) |
protected Charset |
getCharset(org.springframework.http.HttpMessage message) |
public String formatRequest(org.springframework.http.HttpRequest request, byte[] body)
formatRequest in interface LogFormatterpublic String formatResponse(org.springframework.http.client.ClientHttpResponse response) throws IOException
formatResponse in interface LogFormatterIOExceptionprotected Charset getCharset(org.springframework.http.HttpMessage message)
Copyright © 2017–2018. All rights reserved.