Class ShipServerHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<java.lang.Object>
-
- org.openmuc.jeebus.ship.node.websocket.WebSocketHandler
-
- org.openmuc.jeebus.ship.node.websocket.server.ShipServerHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,AuthenticatedConnection,BasicConnection
public class ShipServerHandler extends WebSocketHandler implements AuthenticatedConnection
-
-
Field Summary
-
Fields inherited from class org.openmuc.jeebus.ship.node.websocket.WebSocketHandler
channel, connection, log, messageBuffer, node, nodeContext, pongReceived, shipConnRdyLatch
-
-
Constructor Summary
Constructors Constructor Description ShipServerHandler(ShipNodeContext nodeCtx, ShipServer server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelActive(io.netty.channel.ChannelHandlerContext ctx)voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx)voidchannelRead0(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg)voidchannelReadComplete(io.netty.channel.ChannelHandlerContext ctx)voidclose()io.netty.channel.ChannelgetChannel()ShipConnectionImplgetConnection()voidsetConnection(ShipConnectionImpl connection)-
Methods inherited from class org.openmuc.jeebus.ship.node.websocket.WebSocketHandler
doubleConnProcedure, exceptionCaught, getPeerSki, getRemoteAddress, getRemoteHost, getRemoteIpAndPort, getShipConnection, getTrustLevel, handlePingPongFrame, handleWebSocketFrame, isPingPongFrame, isShipConnRdy, sendMsg
-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openmuc.jeebus.ship.node.websocket.AuthenticatedConnection
getPeerSki, getRemoteAddress
-
Methods inherited from interface org.openmuc.jeebus.ship.shipconnection.BasicConnection
sendMsg
-
-
-
-
Constructor Detail
-
ShipServerHandler
public ShipServerHandler(ShipNodeContext nodeCtx, ShipServer server)
-
-
Method Detail
-
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception- Specified by:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
java.lang.Exception
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception- Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
java.lang.Exception
-
channelRead0
public void channelRead0(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg)- Specified by:
channelRead0in classio.netty.channel.SimpleChannelInboundHandler<java.lang.Object>
-
channelReadComplete
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
channelReadCompletein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadCompletein classio.netty.channel.ChannelInboundHandlerAdapter
-
setConnection
public void setConnection(ShipConnectionImpl connection)
-
getChannel
public io.netty.channel.Channel getChannel()
-
close
public void close()
- Specified by:
closein interfaceBasicConnection- Specified by:
closein classWebSocketHandler
-
getConnection
public ShipConnectionImpl getConnection()
-
-