Class CompareRequestImpl

    • Constructor Detail

      • CompareRequestImpl

        public CompareRequestImpl()
        Creates an CompareRequest implementation to compare a named entry with an attribute value assertion pair.
    • Method Detail

      • getName

        public Dn getName()
        Gets the distinguished name of the entry to be compared using the attribute value assertion.
        Specified by:
        getName in interface CompareRequest
        Returns:
        the Dn of the compared entry.
      • setName

        public CompareRequest setName​(Dn name)
        Sets the distinguished name of the entry to be compared using the attribute value assertion.
        Specified by:
        setName in interface CompareRequest
        Parameters:
        name - the Dn of the compared entry.
        Returns:
        The CompareRequest instance
      • getAssertionValue

        public Value getAssertionValue()
        Gets the attribute value to use in making the comparison.
        Specified by:
        getAssertionValue in interface CompareRequest
        Returns:
        the attribute value to used in comparison.
      • setAssertionValue

        public CompareRequest setAssertionValue​(String value)
        Sets the attribute value to use in the comparison.
        Specified by:
        setAssertionValue in interface CompareRequest
        Parameters:
        value - the attribute value used in comparison.
        Returns:
        The CompareRequest instance
      • setAssertionValue

        public CompareRequest setAssertionValue​(byte[] value)
        Sets the attribute value to use in the comparison.
        Specified by:
        setAssertionValue in interface CompareRequest
        Parameters:
        value - the attribute value used in comparison.
        Returns:
        The CompareRequest instance
      • getAttributeId

        public String getAttributeId()
        Gets the attribute id use in making the comparison.
        Specified by:
        getAttributeId in interface CompareRequest
        Returns:
        the attribute id used in comparison.
      • setAttributeId

        public CompareRequest setAttributeId​(String attributeId)
        Sets the attribute id used in the comparison.
        Specified by:
        setAttributeId in interface CompareRequest
        Parameters:
        attributeId - the attribute id used in comparison.
        Returns:
        The CompareRequest instance
      • getResponseType

        public MessageTypeEnum getResponseType()
        Gets the protocol response message type for this request which produces at least one response.
        Specified by:
        getResponseType in interface SingleReplyRequest
        Returns:
        the message type of the response.
      • equals

        public boolean equals​(Object obj)
        Checks to see if an object is equivalent to this CompareRequest.
        Overrides:
        equals in class AbstractRequest
        Parameters:
        obj - the obj to compare with this CompareRequest
        Returns:
        true if the obj is equal to this request, false otherwise
      • toString

        public String toString()
        Get a String representation of a Compare Request
        Overrides:
        toString in class Object
        Returns:
        A Compare Request String