Package org.apache.hc.core5.testing.nio
Class LoggingHttp1StreamListener
- java.lang.Object
-
- org.apache.hc.core5.testing.nio.LoggingHttp1StreamListener
-
- All Implemented Interfaces:
Http1StreamListener
public class LoggingHttp1StreamListener extends java.lang.Object implements Http1StreamListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
LoggingHttp1StreamListener.Type
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.Logger
connLog
private org.slf4j.Logger
headerLog
static LoggingHttp1StreamListener
INSTANCE_CLIENT
static LoggingHttp1StreamListener
INSTANCE_SERVER
private java.lang.String
requestDirection
private java.lang.String
responseDirection
-
Constructor Summary
Constructors Modifier Constructor Description private
LoggingHttp1StreamListener(LoggingHttp1StreamListener.Type type)
-
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_CLIENT
public static final LoggingHttp1StreamListener INSTANCE_CLIENT
-
INSTANCE_SERVER
public static final LoggingHttp1StreamListener INSTANCE_SERVER
-
connLog
private final org.slf4j.Logger connLog
-
headerLog
private final org.slf4j.Logger headerLog
-
requestDirection
private final java.lang.String requestDirection
-
responseDirection
private final java.lang.String responseDirection
-
-
Constructor Detail
-
LoggingHttp1StreamListener
private LoggingHttp1StreamListener(LoggingHttp1StreamListener.Type type)
-
-
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
-
-