Class UnifiedUIBackofficeLoggingInterceptor

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

public class UnifiedUIBackofficeLoggingInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor
Interceptor to log the PROS 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 the request.

    Methods inherited from class java.lang.Object

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

    • UnifiedUIBackofficeLoggingInterceptor

      public UnifiedUIBackofficeLoggingInterceptor()
  • 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 the request.
      Parameters:
      request - the request
      body - the body
    • getConfigurationService

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

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