org.apache.directory.shared.ldap.message
Class SearchResponseEntryImpl

java.lang.Object
  extended by org.apache.directory.shared.ldap.message.AbstractMessage
      extended by org.apache.directory.shared.ldap.message.AbstractResponse
          extended by org.apache.directory.shared.ldap.message.SearchResponseEntryImpl
All Implemented Interfaces:
Message, Response, SearchResponseEntry

public class SearchResponseEntryImpl
extends AbstractResponse
implements SearchResponseEntry

Lockable SearchResponseEntry implementation

Version:
$Rev: 690033 $
Author:
Apache Directory Project

Field Summary
 
Fields inherited from interface org.apache.directory.shared.ldap.message.SearchResponseEntry
TYPE
 
Constructor Summary
SearchResponseEntryImpl(int id)
          Creates a SearchResponseEntry as a reply to an SearchRequest to indicate the end of a search operation.
 
Method Summary
 boolean equals(java.lang.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 entry
 LdapDN getObjectName()
          Gets the distinguished name of the entry object returned.
 void setEntry(Entry entry)
          Sets the entry.
 void setObjectName(LdapDN objectName)
          Sets the distinguished name of the entry object returned.
 java.lang.String toString()
          Return a string representation of a SearchResultEntry request
 
Methods inherited from class org.apache.directory.shared.ldap.message.AbstractMessage
add, addAll, get, getControls, getMessageId, getType, hasControl, hashCode, put, remove
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.shared.ldap.message.Message
add, addAll, get, getControls, getMessageId, getType, hasControl, put, remove
 

Constructor Detail

SearchResponseEntryImpl

public SearchResponseEntryImpl(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 interface SearchResponseEntry
Returns:
the entry

setEntry

public void setEntry(Entry entry)
Sets the entry.

Specified by:
setEntry in interface SearchResponseEntry
Parameters:
entry - the entry

getObjectName

public LdapDN getObjectName()
Gets the distinguished name of the entry object returned.

Specified by:
getObjectName in interface SearchResponseEntry
Returns:
the Dn of the entry returned.

setObjectName

public void setObjectName(LdapDN objectName)
Sets the distinguished name of the entry object returned.

Specified by:
setObjectName in interface SearchResponseEntry
Parameters:
objectName - the Dn of the entry returned.

equals

public boolean equals(java.lang.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 java.lang.String toString()
Return a string representation of a SearchResultEntry request

Overrides:
toString in class java.lang.Object


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.