Class CompareRequestProtocolOp

    • Constructor Detail

      • CompareRequestProtocolOp

        public CompareRequestProtocolOp​(@NotNull
                                        java.lang.String dn,
                                        @NotNull
                                        java.lang.String attributeName,
                                        @NotNull
                                        ASN1OctetString assertionValue)
        Creates a new compare request protocol op with the provided information.
        Parameters:
        dn - The DN for this compare request.
        attributeName - The attribute name for this compare request.
        assertionValue - The assertion value for this compare request.
      • CompareRequestProtocolOp

        public CompareRequestProtocolOp​(@NotNull
                                        CompareRequest request)
        Creates a new compare request protocol op from the provided compare request object.
        Parameters:
        request - The compare request object to use to create this protocol op.
    • Method Detail

      • getDN

        @NotNull
        public java.lang.String getDN()
        Retrieves the DN for this compare request.
        Returns:
        The DN for this compare request.
      • getAttributeName

        @NotNull
        public java.lang.String getAttributeName()
        Retrieves the attribute name for this compare request.
        Returns:
        The attribute name for this compare request.
      • writeTo

        public void writeTo​(@NotNull
                            ASN1Buffer buffer)
        Writes an ASN.1-encoded representation of this LDAP protocol op to the provided ASN.1 buffer. This method is intended for internal use only and should not be used by third-party code.
        Specified by:
        writeTo in interface ProtocolOp
        Parameters:
        buffer - The ASN.1 buffer to which the encoded representation should be written.
      • toCompareRequest

        @NotNull
        public CompareRequest toCompareRequest​(@Nullable
                                               Control... controls)
        Creates a compare request from this protocol op.
        Parameters:
        controls - The set of controls to include in the compare request. It may be empty or null if no controls should be included.
        Returns:
        The compare request that was created.
      • toString

        @NotNull
        public java.lang.String toString()
        Retrieves a string representation of this protocol op.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of this protocol op.
      • toString

        public void toString​(@NotNull
                             java.lang.StringBuilder buffer)
        Appends a string representation of this LDAP protocol op to the provided buffer.
        Specified by:
        toString in interface ProtocolOp
        Parameters:
        buffer - The buffer to which the string representation should be appended.