Class SearchResultEntryImpl

    • Constructor Detail

      • SearchResultEntryImpl

        public SearchResultEntryImpl()
        Creates a SearchResponseEntry as a reply to an SearchRequest to indicate the end of a search operation.
      • SearchResultEntryImpl

        public SearchResultEntryImpl​(int id)
        Creates a SearchResponseEntry as a reply to an SearchRequest to indicate the end of a search operation.
        Parameters:
        id - the session unique message id
    • Method Detail

      • setEntry

        public void setEntry​(Entry entry)
        Sets the entry.
        Specified by:
        setEntry in interface SearchResultEntry
        Parameters:
        entry - the entry
      • getObjectName

        public Dn getObjectName()
        Gets the distinguished name of the entry object returned.
        Specified by:
        getObjectName in interface SearchResultEntry
        Returns:
        the Dn of the entry returned.
      • setObjectName

        public void setObjectName​(Dn objectName)
        Sets the distinguished name of the entry object returned.
        Specified by:
        setObjectName in interface SearchResultEntry
        Parameters:
        objectName - the Dn of the entry returned.
      • equals

        public boolean equals​(Object obj)
        Checks for equality by comparing the objectName, and attributes properties of this Message after delegating to the super.equals() method.
        Overrides:
        equals in class AbstractMessage
        Parameters:
        obj - the object to test for equality with this message
        Returns:
        true if the obj is equal false otherwise
      • toString

        public String toString()
        Return a string representation of a SearchResultEntry request
        Overrides:
        toString in class Object