public class HttpRequestResponseLogUtil
extends java.lang.Object
The utility can be used to generate HTTP request / response log strings. Both for incoming service calls as outgoing calls (i.e. calls to backend systems).
Constructor and Description |
---|
HttpRequestResponseLogUtil() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createLogString(org.springframework.http.HttpHeaders headers,
byte[] body)
Create a log string for the given @code{headers} and @code{body}.
|
java.lang.String |
createLogString(org.springframework.http.HttpHeaders headers,
java.lang.String body)
Create a log string for the given @code{headers} and @code{body}.
|
org.springframework.http.HttpHeaders |
getHeaders(javax.servlet.http.HttpServletRequest request)
Create
HttpHeaders for the @code{request}. |
org.springframework.http.HttpHeaders |
getHeaders(javax.servlet.http.HttpServletResponse response)
Create
HttpHeaders for the @code{response}. |
public org.springframework.http.HttpHeaders getHeaders(javax.servlet.http.HttpServletRequest request)
HttpHeaders
for the @code{request}.public org.springframework.http.HttpHeaders getHeaders(javax.servlet.http.HttpServletResponse response)
HttpHeaders
for the @code{response}.public java.lang.String createLogString(org.springframework.http.HttpHeaders headers, java.lang.String body) throws java.io.IOException
java.io.IOException
public java.lang.String createLogString(org.springframework.http.HttpHeaders headers, byte[] body) throws java.io.IOException
java.io.IOException