java.lang.Object
org.eclipse.milo.opcua.stack.core.channel.messages.HelloMessage

public class HelloMessage extends Object
  • Constructor Details

    • HelloMessage

      public HelloMessage(long protocolVersion, long receiveBufferSize, long sendBufferSize, long maxMessageSize, long maxChunkCount, @Nullable String endpointUrl)
      Parameters:
      protocolVersion - the latest version of the OPC UA TCP protocol supported by the Client.
      receiveBufferSize - the largest MessageChunk that the sender (Client) can receive. This value shall be greater than or equal to 8192 bytes.
      sendBufferSize - the largest MessageChunk that the sender (Client) will send. This value shall be greater than or equal to 8192 bytes.
      maxMessageSize - the maximum size for any response Message. The Message size is calculated using the unencrypted Message body. A value of zero indicates that the Client has no limit.
      maxChunkCount - the maximum number of chunks in any response Message. A value of zero indicates that the Client has no limit.
      endpointUrl - the URL of the Endpoint which the Client wished to connect to. The encoded value shall be less than 4096 bytes.
  • Method Details

    • getProtocolVersion

      public long getProtocolVersion()
    • getReceiveBufferSize

      public long getReceiveBufferSize()
    • getSendBufferSize

      public long getSendBufferSize()
    • getMaxMessageSize

      public long getMaxMessageSize()
    • getMaxChunkCount

      public long getMaxChunkCount()
    • getEndpointUrl

      public @Nullable String getEndpointUrl()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • encode

      public static void encode(HelloMessage message, io.netty.buffer.ByteBuf buffer)
    • decode

      public static HelloMessage decode(io.netty.buffer.ByteBuf buffer) throws UaException
      Throws:
      UaException