public final class SecureMessageHeader extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SECURE_MESSAGE_HEADER_SIZE |
| Constructor and Description |
|---|
SecureMessageHeader(MessageType messageType,
char finalFlag,
long messageSize,
long secureChannelId) |
| Modifier and Type | Method and Description |
|---|---|
static SecureMessageHeader |
decode(io.netty.buffer.ByteBuf buffer) |
static void |
encode(SecureMessageHeader header,
io.netty.buffer.ByteBuf buffer) |
char |
getChunkType() |
long |
getMessageSize() |
MessageType |
getMessageType() |
long |
getSecureChannelId() |
public static final int SECURE_MESSAGE_HEADER_SIZE
public SecureMessageHeader(MessageType messageType, char finalFlag, long messageSize, long secureChannelId)
messageType - the MessageType of the following message.finalFlag - a one byte ASCII code that indicates whether the MessageChunk is the final chunk in a
Message. The following values are defined at this time: 'C', an intermediate chunk, 'F',
the final chunk, and 'A', the final chunk (used when an error occurred and the Message
is aborted).messageSize - the length of the MessageChunk, in bytes. This value includes size of the Message header.secureChannelId - a unique identifier for the SecureChannel assigned by the Server.public MessageType getMessageType()
public char getChunkType()
public long getMessageSize()
public long getSecureChannelId()
public static void encode(SecureMessageHeader header, io.netty.buffer.ByteBuf buffer) throws UaException
UaExceptionpublic static SecureMessageHeader decode(io.netty.buffer.ByteBuf buffer) throws UaException
UaExceptionCopyright © 2025. All rights reserved.