Class QueryBroadcastSM

    • Method Detail

      • getMessageID

        public String getMessageID()
      • getSourceAddress

        public Address getSourceAddress()
      • bodyToBuffer

        protected void bodyToBuffer​(ByteBuffer buf)
                             throws BufferOverflowException
        Description copied from class: PDU
        Write PDU body (not including header or TLVs) to a ByteBuffer. Subclasses MUST override this if they have any additional fields in their body. Fields must be written in big-endian byte order (the default with ByteBuffer anyway).
        Overrides:
        bodyToBuffer in class PDU
        Throws:
        BufferOverflowException
      • bodySize

        protected int bodySize()
        Description copied from class: PDU
        Return size (in bytes) of PDU body (not including header or TLVs). Subclasses MUST override this if they have any additional fields in their body, so that PDU lengths will be calculated correctly.
        Overrides:
        bodySize in class PDU
      • bodyEquals

        protected boolean bodyEquals​(PDU pdu)
        Description copied from class: PDU
        Compares the body of given PDU with the body (not including header or TLVs) of this PDU for equality. Subclasses MUST override this if they have any additional fields in their body, so that PDUs comparison will be performed correctly.
        Overrides:
        bodyEquals in class PDU
      • bodyHashCode

        protected int bodyHashCode()
        Description copied from class: PDU
        Get the hash code value of PDU body (not including header or TLVs). Subclasses MUST override this if they have any additional fields in their body, so that PDU hash code will be calculated correctly.
        Overrides:
        bodyHashCode in class PDU
      • createResponse

        public Response createResponse​(int status)
        Description copied from class: Request
        Create a response of the appropriate type. Subclasses override to return correct type. Implementations MUST set the response sequence number to be the same as the request sequence number.
        Specified by:
        createResponse in class Request
        Parameters:
        status - the value for the responses' command_status field
        Returns:
        the response corresponding to this request, or null if there is no appropriate response type (eg. outbind, alert_notification).