org.webbitserver.handler.logging.LogSink Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webbit Show documentation
Show all versions of webbit Show documentation
A Java event based WebSocket and HTTP server
package org.webbitserver.handler.logging;
import org.webbitserver.EventSourceConnection;
import org.webbitserver.HttpRequest;
import org.webbitserver.WebSocketConnection;
public interface LogSink {
void httpStart(HttpRequest request);
void httpEnd(HttpRequest request);
void webSocketConnectionOpen(WebSocketConnection connection);
void webSocketConnectionClose(WebSocketConnection connection);
void webSocketInboundData(WebSocketConnection connection, String data);
void webSocketInboundData(WebSocketConnection connection, byte[] message);
void webSocketInboundPong(WebSocketConnection connection, String message);
void webSocketOutboundData(WebSocketConnection connection, String data);
void webSocketOutboundData(WebSocketConnection connection, byte[] data);
void webSocketOutboundPing(WebSocketConnection connection, String message);
void error(HttpRequest request, Throwable error);
void custom(HttpRequest request, String action, String data);
void eventSourceConnectionOpen(EventSourceConnection connection);
void eventSourceConnectionClose(EventSourceConnection connection);
void eventSourceOutboundData(EventSourceConnection connection, String data);
}