Class LoggingInterceptor

java.lang.Object
de.hybris.platform.shoppingservices.interceptors.LoggingInterceptor
All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestInterceptor

public class LoggingInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor
Interceptor to log the request and response properties.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected de.hybris.platform.servicelayer.config.ConfigurationService
    Gets configurationService.
    org.springframework.http.client.ClientHttpResponse
    intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution)
     
    void
    setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
    Sets configurationService.
    protected static void
    traceRequest(org.springframework.http.HttpRequest request, byte[] body)
    Trace request.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LoggingInterceptor

      public LoggingInterceptor()
  • Method Details

    • intercept

      public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) throws IOException
      Specified by:
      intercept in interface org.springframework.http.client.ClientHttpRequestInterceptor
      Throws:
      IOException
    • traceRequest

      protected static void traceRequest(org.springframework.http.HttpRequest request, byte[] body)
      Trace request.
      Parameters:
      request - the request
      body - the body
    • getConfigurationService

      protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
      Gets configurationService.
      Returns:
      configurationService
    • setConfigurationService

      public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
      Sets configurationService.
      Parameters:
      configurationService -