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 -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.servicelayer.config.ConfigurationServiceGets configurationService.org.springframework.http.client.ClientHttpResponseintercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configurationService.protected static voidtraceRequest(org.springframework.http.HttpRequest request, byte[] body) Trace the request.
-
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:
interceptin interfaceorg.springframework.http.client.ClientHttpRequestInterceptor- Throws:
IOException
-
traceRequest
protected static void traceRequest(org.springframework.http.HttpRequest request, byte[] body) Trace the request.- Parameters:
request- the requestbody- 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
-