Class ShipServer
- java.lang.Object
-
- org.openmuc.jeebus.ship.node.websocket.server.ShipServer
-
public class ShipServer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description ShipServer(io.netty.handler.ssl.SslContext sslContext, int port, java.lang.String wssPath, ShipNodeContext nodeContext, ShipNodeImpl shipNode, boolean keepAlive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHandler(ShipServerHandler handler)java.util.List<ShipServerHandler>getHandlers()intgetPort()ShipNodeImplgetSocketCB()java.lang.StringgetWssPath()voidremoveHandler(ShipServerHandler handler)voidsetConnHandler(ConnectionHandler connHandler)voidsetHandlers(java.util.List<ShipServerHandler> handlers)voidstop()
-
-
-
Constructor Detail
-
ShipServer
public ShipServer(io.netty.handler.ssl.SslContext sslContext, int port, java.lang.String wssPath, ShipNodeContext nodeContext, ShipNodeImpl shipNode, boolean keepAlive) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
-
Method Detail
-
stop
public void stop()
-
getHandlers
public java.util.List<ShipServerHandler> getHandlers()
-
setHandlers
public void setHandlers(java.util.List<ShipServerHandler> handlers)
-
getPort
public int getPort()
-
setConnHandler
public void setConnHandler(ConnectionHandler connHandler)
-
addHandler
public void addHandler(ShipServerHandler handler)
-
removeHandler
public void removeHandler(ShipServerHandler handler)
-
getWssPath
public java.lang.String getWssPath()
-
getSocketCB
public ShipNodeImpl getSocketCB()
-
-