Package org.drasyl.node.handler.crypto
Class ArmMessage
- java.lang.Object
-
- org.drasyl.node.handler.crypto.ArmMessage
-
- Direct Known Subclasses:
AcknowledgementMessage
,KeyExchangeMessage
public abstract class ArmMessage extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
LENGTH
-
Constructor Summary
Constructors Constructor Description ArmMessage()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static io.netty.buffer.ByteBuf
fromApplication(io.netty.buffer.ByteBuf msg)
abstract org.drasyl.node.handler.crypto.ArmMessage.MessageType
getType()
static Object
of(io.netty.buffer.ByteBuf byteBuf)
io.netty.buffer.ByteBuf
toByteBuf()
abstract void
writeBody(io.netty.buffer.ByteBuf byteBuf)
-
-
-
Field Detail
-
LENGTH
public static final int LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public abstract org.drasyl.node.handler.crypto.ArmMessage.MessageType getType()
-
writeBody
public abstract void writeBody(io.netty.buffer.ByteBuf byteBuf)
-
toByteBuf
public io.netty.buffer.ByteBuf toByteBuf()
-
fromApplication
public static io.netty.buffer.ByteBuf fromApplication(io.netty.buffer.ByteBuf msg)
-
of
public static Object of(io.netty.buffer.ByteBuf byteBuf) throws InvalidMessageFormatException
- Throws:
InvalidMessageFormatException
-
-