Interface WebSocketFrameEncoder
- All Superinterfaces:
ChannelHandler, ChannelOutboundHandler
- All Known Implementing Classes:
WebSocket00FrameEncoder, WebSocket07FrameEncoder, WebSocket08FrameEncoder, WebSocket13FrameEncoder
Marker interface which all WebSocketFrame encoders need to implement.
This makes it easier to access the added encoder later in the
ChannelPipeline.-
Nested Class Summary
Nested classes/interfaces inherited from interface ChannelHandler
ChannelHandler.SharableModifier and TypeInterfaceDescriptionstatic @interfaceIndicates that the same instance of the annotatedChannelHandlercan be added to one or moreChannelPipelines multiple times without a race condition. -
Method Summary
Methods inherited from interface ChannelHandler
exceptionCaught, handlerAdded, handlerRemovedModifier and TypeMethodDescriptionvoidexceptionCaught(ChannelHandlerContext ctx, Throwable cause) Deprecated.voidGets called after theChannelHandlerwas added to the actual context and it's ready to handle events.voidGets called after theChannelHandlerwas removed from the actual context and it doesn't handle events anymore.Methods inherited from interface ChannelOutboundHandler
bind, close, connect, deregister, disconnect, flush, read, writeModifier and TypeMethodDescriptionvoidbind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) Called once a bind operation is made.voidclose(ChannelHandlerContext ctx, ChannelPromise promise) Called once a close operation is made.voidconnect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) Called once a connect operation is made.voidderegister(ChannelHandlerContext ctx, ChannelPromise promise) Called once a deregister operation is made from the current registeredEventLoop.voiddisconnect(ChannelHandlerContext ctx, ChannelPromise promise) Called once a disconnect operation is made.voidCalled once a flush operation is made.voidInterceptsChannelHandlerContext.read().voidwrite(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) Called once a write operation is made.
ChannelInboundHandlerand implement the method there.