org.apache.directory.api.ldap.model.message
Class SearchResultDoneImpl

java.lang.Object
  extended by org.apache.directory.api.ldap.model.message.AbstractMessage
      extended by org.apache.directory.api.ldap.model.message.AbstractResponse
          extended by org.apache.directory.api.ldap.model.message.AbstractResultResponse
              extended by org.apache.directory.api.ldap.model.message.SearchResultDoneImpl
All Implemented Interfaces:
Message, Response, ResultResponse, SearchResultDone
Direct Known Subclasses:
SearchNoDResponse

public class SearchResultDoneImpl
extends AbstractResultResponse
implements SearchResultDone

SearchResponseDone implementation

Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
ldapResult
 
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controls
 
Fields inherited from interface org.apache.directory.api.ldap.model.message.SearchResultDone
TYPE
 
Constructor Summary
SearchResultDoneImpl()
          Creates a SearchResponseDone as a reply to an SearchRequest to indicate the end of a search operation.
SearchResultDoneImpl(int id)
          Creates a SearchResponseDone as a reply to an SearchRequest to indicate the end of a search operation.
 
Method Summary
 boolean equals(Object obj)
          Checks for equality by using the underlying LdapResult objects of this SearchResponseDone stub.
 int hashCode()
          
 String toString()
          Get a String representation of a SearchResultDone
 
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
getLdapResult
 
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
 
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

SearchResultDoneImpl

public SearchResultDoneImpl()
Creates a SearchResponseDone as a reply to an SearchRequest to indicate the end of a search operation.


SearchResultDoneImpl

public SearchResultDoneImpl(int id)
Creates a SearchResponseDone as a reply to an SearchRequest to indicate the end of a search operation.

Parameters:
id - the session unique message id
Method Detail

hashCode

public int hashCode()

Overrides:
hashCode in class AbstractResultResponse
Returns:
the instance's hash code
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Checks for equality by using the underlying LdapResult objects of this SearchResponseDone stub.

Overrides:
equals in class AbstractResultResponse
Parameters:
obj - the object to be tested for equality
Returns:
true if obj is equivalent to this SearchResponseDone impl

toString

public String toString()
Get a String representation of a SearchResultDone

Overrides:
toString in class AbstractResultResponse
Returns:
A SearchResultDone String


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.