Class SearchResultReferenceImpl
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.SearchResultReferenceImpl
- All Implemented Interfaces:
Message, Response, SearchResultReference
SearchResponseReference implementation
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class AbstractMessage
controls -
Constructor Summary
ConstructorsConstructorDescriptionCreates a SearchResponseReference as a reply to an SearchRequest to indicate the end of a search operation.SearchResultReferenceImpl(int id) Creates a SearchResponseReference as a reply to an SearchRequest to indicate the end of a search operation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks to see if an object is equal to this SearchResponseReference stub.Gets the sequence of LdapUrls as a Referral instance.inthashCode()voidsetReferral(Referral referral) Sets the sequence of LdapUrls as a Referral instance.toString()Returns the Search Result Reference stringMethods inherited from class AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toStringMethods inherited from interface Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
-
Constructor Details
-
SearchResultReferenceImpl
public SearchResultReferenceImpl()Creates a SearchResponseReference as a reply to an SearchRequest to indicate the end of a search operation. -
SearchResultReferenceImpl
public SearchResultReferenceImpl(int id) Creates a SearchResponseReference as a reply to an SearchRequest to indicate the end of a search operation.- Parameters:
id- the session unique message id
-
-
Method Details
-
getReferral
Gets the sequence of LdapUrls as a Referral instance.- Specified by:
getReferralin interfaceSearchResultReference- Returns:
- the sequence of LdapUrls
-
setReferral
Sets the sequence of LdapUrls as a Referral instance.- Specified by:
setReferralin interfaceSearchResultReference- Parameters:
referral- the sequence of LdapUrls
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractMessage- Returns:
- the instance's hash code
- See Also:
-
equals
Checks to see if an object is equal to this SearchResponseReference stub.- Overrides:
equalsin classAbstractMessage- Parameters:
obj- the object to compare to this response stub- Returns:
- true if the objects are equivalent false otherwise
-
toString
-