java.lang.Object
io.helidon.webserver.http1.Http1LoggingConnectionListener
- All Implemented Interfaces:
io.helidon.common.buffers.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) voiddata(ConnectionContext ctx, io.helidon.common.buffers.BufferData data) voidheaders(ConnectionContext ctx, Headers headers) Handle headers.voidprologue(ConnectionContext ctx, HttpPrologue prologue) Handle prologue.voidstatus(ConnectionContext ctx, Status status) Handle status (server response only).
-
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
- Specified by:
datain interfaceio.helidon.common.buffers.DataListener<ConnectionContext>
-
data
- Specified by:
datain interfaceio.helidon.common.buffers.DataListener<ConnectionContext>
-
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
-
status
Description copied from interface:Http1ConnectionListenerHandle status (server response only).- Specified by:
statusin interfaceHttp1ConnectionListener- Parameters:
ctx- contextstatus- status
-