com.consol.citrus.http.interceptor
Class LoggingClientInterceptor

java.lang.Object
  extended by com.consol.citrus.http.interceptor.LoggingClientInterceptor
All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestInterceptor

public class LoggingClientInterceptor
extends Object
implements org.springframework.http.client.ClientHttpRequestInterceptor

Simple logging interceptor writes Http request and response messages to the console.

Since:
1.2
Author:
Christoph Deppisch

Constructor Summary
LoggingClientInterceptor()
           
 
Method Summary
 void handleRequest(String request)
          Handles request messages for logging.
 void handleResponse(String response)
          Handles response messages for logging.
 org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingClientInterceptor

public LoggingClientInterceptor()
Method Detail

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

handleRequest

public void handleRequest(String request)
Handles request messages for logging.

Parameters:
request -

handleResponse

public void handleResponse(String response)
Handles response messages for logging.

Parameters:
response -


Copyright © 2008-2013 ConSol* Consulting&Solutions GmbH. All Rights Reserved.