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

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

public class SearchResponseEntryImpl
extends AbstractResponse
implements SearchResponseEntry

Lockable SearchResponseEntry implementation

Version:
$Rev: 379008 $
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 Lockable 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.
 javax.naming.directory.Attributes getAttributes()
          Gets the set of attributes and all their values in a Attributes.
 java.lang.String getObjectName()
          Gets the distinguished name of the entry object returned.
 void setAttributes(javax.naming.directory.Attributes attributes)
          Sets the set of attributes and all their values in a Attributes.
 void setObjectName(java.lang.String 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, get, getControls, getMessageId, getType, put, remove
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.shared.ldap.message.Message
add, get, getControls, getMessageId, getType, put, remove
 

Constructor Detail

SearchResponseEntryImpl

public SearchResponseEntryImpl(int id)
Creates a Lockable SearchResponseEntry as a reply to an SearchRequest to indicate the end of a search operation.

Parameters:
id - the session unique message id
Method Detail

getAttributes

public javax.naming.directory.Attributes getAttributes()
Gets the set of attributes and all their values in a Attributes.

Specified by:
getAttributes in interface SearchResponseEntry
Returns:
the set of attributes and all their values

setAttributes

public void setAttributes(javax.naming.directory.Attributes attributes)
Sets the set of attributes and all their values in a Attributes.

Specified by:
setAttributes in interface SearchResponseEntry
Parameters:
attributes - the set of attributes and all their values

getObjectName

public java.lang.String 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(java.lang.String 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



Copyright © 2003-2006 . All Rights Reserved.