Class LoggingHttp1StreamListener
- java.lang.Object
-
- org.apache.hc.core5.testing.classic.LoggingHttp1StreamListener
-
- All Implemented Interfaces:
Http1StreamListener
public class LoggingHttp1StreamListener extends java.lang.Object implements Http1StreamListener
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.Logger
connLog
static LoggingHttp1StreamListener
INSTANCE
-
Constructor Summary
Constructors Constructor Description LoggingHttp1StreamListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onExchangeComplete(HttpConnection connection, boolean keepAlive)
void
onRequestHead(HttpConnection connection, HttpRequest request)
void
onResponseHead(HttpConnection connection, HttpResponse response)
-
-
-
Field Detail
-
INSTANCE
public static final LoggingHttp1StreamListener INSTANCE
-
connLog
private final org.slf4j.Logger connLog
-
-
Method Detail
-
onRequestHead
public void onRequestHead(HttpConnection connection, HttpRequest request)
- Specified by:
onRequestHead
in interfaceHttp1StreamListener
-
onResponseHead
public void onResponseHead(HttpConnection connection, HttpResponse response)
- Specified by:
onResponseHead
in interfaceHttp1StreamListener
-
onExchangeComplete
public void onExchangeComplete(HttpConnection connection, boolean keepAlive)
- Specified by:
onExchangeComplete
in interfaceHttp1StreamListener
-
-