Class WebsocketAccessLogger
java.lang.Object
org.wso2.carbon.inbound.endpoint.protocol.websocket.WebsocketAccessLogger
This class is used to log the websocket access logs
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.netty.handler.codec.http.FullHttpRequestconvertToFullHttpRequest(String rawHttpRequest) Convert raw HTTP request to FullHttpRequestvoidlogChannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) Log the channel read eventvoidlogChannelRegistered(io.netty.channel.ChannelHandlerContext ctx) Log the channel registered eventvoidlogChannelUnregistered(io.netty.channel.ChannelHandlerContext ctx) Log the channel unregistered eventvoidlogChannelWrite(io.netty.channel.ChannelHandlerContext ctx, Object msg) Log the channel write event
-
Constructor Details
-
WebsocketAccessLogger
public WebsocketAccessLogger(io.netty.util.internal.logging.InternalLogger logger)
-
-
Method Details
-
logChannelRegistered
public void logChannelRegistered(io.netty.channel.ChannelHandlerContext ctx) Log the channel registered event -
logChannelUnregistered
public void logChannelUnregistered(io.netty.channel.ChannelHandlerContext ctx) Log the channel unregistered event -
logChannelRead
Log the channel read event -
logChannelWrite
Log the channel write event -
convertToFullHttpRequest
public static io.netty.handler.codec.http.FullHttpRequest convertToFullHttpRequest(String rawHttpRequest) Convert raw HTTP request to FullHttpRequest
-