Package org.hawaiiframework.logging.http
Class DefaultHawaiiRequestResponseLogger
- java.lang.Object
-
- org.hawaiiframework.logging.http.DefaultHawaiiRequestResponseLogger
-
- All Implemented Interfaces:
HawaiiRequestResponseLogger
public class DefaultHawaiiRequestResponseLogger extends Object implements HawaiiRequestResponseLogger
General logger.
-
-
Constructor Summary
Constructors Constructor Description DefaultHawaiiRequestResponseLogger(HttpRequestResponseHeadersLogUtil headersLogUtil, HttpRequestResponseBodyLogUtil bodyLogUtil, HttpRequestResponseDebugLogUtil debugLogUtil, HawaiiLoggingConfigurationProperties configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
logRequest(ResettableHttpServletRequest wrappedRequest)
Log incoming request.void
logRequest(org.springframework.http.HttpRequest request, byte[] body)
Log outgoing request (call).void
logResponse(javax.servlet.http.HttpServletRequest servletRequest, ContentCachingWrappedResponse wrappedResponse)
Log response of incoming request.void
logResponse(org.springframework.http.client.ClientHttpResponse response)
Log response of an outgoing request (call).
-
-
-
Constructor Detail
-
DefaultHawaiiRequestResponseLogger
public DefaultHawaiiRequestResponseLogger(HttpRequestResponseHeadersLogUtil headersLogUtil, HttpRequestResponseBodyLogUtil bodyLogUtil, HttpRequestResponseDebugLogUtil debugLogUtil, HawaiiLoggingConfigurationProperties configuration)
-
-
Method Detail
-
logRequest
public void logRequest(ResettableHttpServletRequest wrappedRequest) throws IOException
Log incoming request.- Specified by:
logRequest
in interfaceHawaiiRequestResponseLogger
- Throws:
IOException
-
logRequest
public void logRequest(org.springframework.http.HttpRequest request, byte[] body)
Log outgoing request (call).- Specified by:
logRequest
in interfaceHawaiiRequestResponseLogger
-
logResponse
public void logResponse(javax.servlet.http.HttpServletRequest servletRequest, ContentCachingWrappedResponse wrappedResponse)
Log response of incoming request.- Specified by:
logResponse
in interfaceHawaiiRequestResponseLogger
-
logResponse
public void logResponse(org.springframework.http.client.ClientHttpResponse response) throws IOException
Log response of an outgoing request (call).- Specified by:
logResponse
in interfaceHawaiiRequestResponseLogger
- Throws:
IOException
-
-