Class HttpRequestResponseDebugLogUtil


  • public class HttpRequestResponseDebugLogUtil
    extends Object
    Utility for logging requests / responses.

    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).

    Since:
    3.0.0
    Author:
    Rutger Lubbers
    • Constructor Detail

      • HttpRequestResponseDebugLogUtil

        public HttpRequestResponseDebugLogUtil()
    • Method Detail

      • getTxRequestDebugOutput

        public String getTxRequestDebugOutput​(javax.servlet.http.HttpServletRequest servletRequest,
                                              String headers,
                                              String body)
      • getTxResponseDebugOutput

        public String getTxResponseDebugOutput​(String protocol,
                                               org.springframework.http.HttpStatus httpStatus,
                                               String headers,
                                               String body)
      • getCallResponseDebugOutput

        public String getCallResponseDebugOutput​(String headers,
                                                 String body)