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
public class SearchResultEntryImpl extends AbstractResponse implements SearchResultEntry
Lockable SearchResponseEntry implementation- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description SearchResultEntryImpl()
Creates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Checks for equality by comparing the objectName, and attributes properties of this Message after delegating to the super.equals() method.Entry
getEntry()
Gets the entryDn
getObjectName()
Gets the distinguished name of the entry object returned.int
hashCode()
void
setEntry(Entry entry)
Sets the entry.void
setObjectName(Dn objectName)
Sets the distinguished name of the entry object returned.String
toString()
Return a string representation of a SearchResultEntry request-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toString
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
-
-
-
-
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
-
getEntry
public Entry getEntry()
Gets the entry- Specified by:
getEntry
in interfaceSearchResultEntry
- Returns:
- the entry
-
setEntry
public void setEntry(Entry entry)
Sets the entry.- Specified by:
setEntry
in interfaceSearchResultEntry
- Parameters:
entry
- the entry
-
getObjectName
public Dn getObjectName()
Gets the distinguished name of the entry object returned.- Specified by:
getObjectName
in interfaceSearchResultEntry
- 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 interfaceSearchResultEntry
- Parameters:
objectName
- the Dn of the entry returned.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractMessage
- Returns:
- the instance's hash code
- See Also:
Object.hashCode()
-
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 classAbstractMessage
- Parameters:
obj
- the object to test for equality with this message- Returns:
- true if the obj is equal false otherwise
-
-