Class AbandonRequestImpl

    • Constructor Detail

      • AbandonRequestImpl

        public AbandonRequestImpl()
        Creates an AbandonRequest implementation for an outstanding request.
      • AbandonRequestImpl

        public AbandonRequestImpl​(int abdandonnedId)
        Creates an AbandonRequest implementation for an outstanding request.
        Parameters:
        abdandonnedId - the sequence identifier of the AbandonRequest message.
    • Method Detail

      • getAbandoned

        public int getAbandoned()
        Gets the id of the request operation to terminate.
        Specified by:
        getAbandoned in interface AbandonRequest
        Returns:
        the id of the request message to abandon
      • setAbandoned

        public AbandonRequest setAbandoned​(int abandonId)
        Sets the id of the request operation to terminate.
        Specified by:
        setAbandoned in interface AbandonRequest
        Parameters:
        abandonId - the sequence id of the request message to abandon
        Returns:
        The AbandonRequest instance
      • abandon

        public void abandon()
        RFC 2251 [Section 4.11]: Abandon, Bind, Unbind, and StartTLS operations cannot be abandoned.
      • equals

        public boolean equals​(Object obj)
        Checks for equality first by asking the super method which should compare all but the Abandoned request's Id. It then compares this to determine equality.
        Overrides:
        equals in class AbstractRequest
        Parameters:
        obj - the object to test for equality to this AbandonRequest
        Returns:
        true if the obj equals this request, false otherwise
      • toString

        public String toString()
        Return a String representing an AbandonRequest
        Overrides:
        toString in class Object
        Returns:
        A String representing the AbandonRequest