This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch hlog
in repository https://gitbox.apache.org/repos/asf/camel.git

commit ce1e8018356f0e48f1566624729c0dec9f96c597
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Dec 10 11:43:36 2024 +0100

    CAMEL-21468: camel-http - Allow to log request/repsonse HTTP raw data to 
see what is sent over the wire.
---
 .../camel/component/http/HttpActivityListener.java      | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git 
a/components/camel-http/src/main/java/org/apache/camel/component/http/HttpActivityListener.java
 
b/components/camel-http/src/main/java/org/apache/camel/component/http/HttpActivityListener.java
index 9abb99c4f79..0ceb5ae595c 100644
--- 
a/components/camel-http/src/main/java/org/apache/camel/component/http/HttpActivityListener.java
+++ 
b/components/camel-http/src/main/java/org/apache/camel/component/http/HttpActivityListener.java
@@ -26,8 +26,25 @@ import org.apache.hc.core5.http.HttpHost;
  */
 public interface HttpActivityListener {
 
+    /**
+     * HTTP request is about to be sent
+     *
+     * @param source   the http producer that are used
+     * @param exchange the current exchange
+     * @param httpHost the host the request is sent to
+     * @param request  the http request
+     */
     void onRequestSubmitted(Object source, Exchange exchange, HttpHost 
httpHost, ClassicHttpRequest request);
 
+    /**
+     * HTTP response received
+     *
+     * @param source   the http producer that are used
+     * @param exchange the current exchange
+     * @param httpHost the host the request is received from
+     * @param response the http response
+     * @param elapsed  time in millis before the response was received after 
sending
+     */
     void onResponseReceived(Object source, Exchange exchange, HttpHost 
httpHost, ClassicHttpResponse response, long elapsed);
 
 }

Reply via email to