Class SecureMessageHeader
java.lang.Object
org.eclipse.milo.opcua.stack.core.channel.headers.SecureMessageHeader
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSecureMessageHeader(MessageType messageType, char finalFlag, long messageSize, long secureChannelId) -
Method Summary
Modifier and TypeMethodDescriptionstatic SecureMessageHeaderdecode(io.netty.buffer.ByteBuf buffer) static voidencode(SecureMessageHeader header, io.netty.buffer.ByteBuf buffer) charlonglong
-
Field Details
-
SECURE_MESSAGE_HEADER_SIZE
public static final int SECURE_MESSAGE_HEADER_SIZE- See Also:
-
-
Constructor Details
-
SecureMessageHeader
public SecureMessageHeader(MessageType messageType, char finalFlag, long messageSize, long secureChannelId) - Parameters:
messageType- theMessageTypeof 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.
-
-
Method Details
-
getMessageType
-
getChunkType
public char getChunkType() -
getMessageSize
public long getMessageSize() -
getSecureChannelId
public long getSecureChannelId() -
encode
public static void encode(SecureMessageHeader header, io.netty.buffer.ByteBuf buffer) throws UaException - Throws:
UaException
-
decode
- Throws:
UaException
-