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 -
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 request.
-
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:
interceptin interfaceorg.springframework.http.client.ClientHttpRequestInterceptor- Throws:
IOException
-
traceRequest
protected static void traceRequest(org.springframework.http.HttpRequest request, byte[] body) Trace request.- Parameters:
request- the requestbody- 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-
-