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

java.lang.Object
  extended by org.apache.directory.shared.ldap.message.internal.InternalAbstractMessage
      extended by org.apache.directory.shared.ldap.message.internal.InternalAbstractResponse
          extended by org.apache.directory.shared.ldap.message.SearchResponseEntryImpl
All Implemented Interfaces:
InternalMessage, InternalResponse, InternalSearchResponseEntry

public class SearchResponseEntryImpl
extends InternalAbstractResponse
implements InternalSearchResponseEntry

Lockable SearchResponseEntry implementation

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

Field Summary
 
Fields inherited from interface org.apache.directory.shared.ldap.message.internal.InternalSearchResponseEntry
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
 DN getObjectName()
          Gets the distinguished name of the entry object returned.
 void setEntry(Entry entry)
          Sets the entry.
 void setObjectName(DN 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.internal.InternalAbstractMessage
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.internal.InternalMessage
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 InternalSearchResponseEntry
Returns:
the entry

setEntry

public void setEntry(Entry entry)
Sets the entry.

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

getObjectName

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

Specified by:
getObjectName in interface InternalSearchResponseEntry
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 InternalSearchResponseEntry
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 InternalAbstractMessage
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.