Module io.helidon.nima.webserver
Package io.helidon.nima.webserver.http1
Class Http1LoggingConnectionListener
java.lang.Object
io.helidon.nima.webserver.http1.Http1LoggingConnectionListener
- All Implemented Interfaces:
DataListener<ConnectionContext>,Http1ConnectionListener
Connection listener that logs all exchanged information.
-
Constructor Summary
ConstructorsConstructorDescriptionHttp1LoggingConnectionListener(String prefix) Create a new listener with a prefix (such assendandrecv). -
Method Summary
Modifier and TypeMethodDescriptionvoiddata(ConnectionContext ctx, byte[] bytes, int offset, int length) Data received or sent.voiddata(ConnectionContext ctx, BufferData data) Data received or sent.voidheaders(ConnectionContext ctx, Headers headers) Handle headers.voidprologue(ConnectionContext ctx, HttpPrologue prologue) Handle prologue.
-
Constructor Details
-
Http1LoggingConnectionListener
Create a new listener with a prefix (such assendandrecv).- Parameters:
prefix- prefix to use when logging, also used as a suffix of logger name, to enable separate configuration
-
-
Method Details
-
data
Description copied from interface:DataListenerData received or sent.- Specified by:
datain interfaceDataListener<ConnectionContext>- Parameters:
ctx- contextdata- data
-
data
Description copied from interface:DataListenerData received or sent.- Specified by:
datain interfaceDataListener<ConnectionContext>- Parameters:
ctx- contextbytes- byte arrayoffset- position within the byte arraylength- number of bytes
-
prologue
Description copied from interface:Http1ConnectionListenerHandle prologue.- Specified by:
prologuein interfaceHttp1ConnectionListener- Parameters:
ctx- contextprologue- prologue
-
headers
Description copied from interface:Http1ConnectionListenerHandle headers.- Specified by:
headersin interfaceHttp1ConnectionListener- Parameters:
ctx- contextheaders- headers
-