Class SearchResultEntryImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractResponse
org.apache.directory.api.ldap.model.message.SearchResultEntryImpl
- All Implemented Interfaces:
Message, Response, SearchResultEntry
Lockable SearchResponseEntry implementation
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class AbstractMessage
controls -
Constructor Summary
ConstructorsConstructorDescriptionCreates a SearchResponseEntry as a reply to an SearchRequest to indicate the end of a search operation.SearchResultEntryImpl(int id) Creates a SearchResponseEntry as a reply to an SearchRequest to indicate the end of a search operation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks for equality by comparing the objectName, and attributes properties of this Message after delegating to the super.equals() method.getEntry()Gets the entryGets the distinguished name of the entry object returned.inthashCode()voidSets the entry.voidsetObjectName(Dn objectName) Sets the distinguished name of the entry object returned.toString()Return a string representation of a SearchResultEntry requestMethods inherited from class AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toStringMethods inherited from interface Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
-
Constructor Details
-
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 Details
-
getEntry
Gets the entry- Specified by:
getEntryin interfaceSearchResultEntry- Returns:
- the entry
-
setEntry
Sets the entry.- Specified by:
setEntryin interfaceSearchResultEntry- Parameters:
entry- the entry
-
getObjectName
Gets the distinguished name of the entry object returned.- Specified by:
getObjectNamein interfaceSearchResultEntry- Returns:
- the Dn of the entry returned.
-
setObjectName
Sets the distinguished name of the entry object returned.- Specified by:
setObjectNamein interfaceSearchResultEntry- Parameters:
objectName- the Dn of the entry returned.
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractMessage- Returns:
- the instance's hash code
- See Also:
-
equals
Checks for equality by comparing the objectName, and attributes properties of this Message after delegating to the super.equals() method.- Overrides:
equalsin classAbstractMessage- Parameters:
obj- the object to test for equality with this message- Returns:
- true if the obj is equal false otherwise
-
toString
-