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
public class SearchResultReferenceImpl extends AbstractResponse implements SearchResultReference
SearchResponseReference implementation- Author:
- Apache Directory Project
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static longserialVersionUID-
Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
controls
-
-
Constructor Summary
Constructors Constructor Description SearchResultReferenceImpl()Creates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Checks to see if an object is equal to this SearchResponseReference stub.ReferralgetReferral()Gets the sequence of LdapUrls as a Referral instance.inthashCode()voidsetReferral(Referral referral)Sets the sequence of LdapUrls as a Referral instance.StringtoString()Returns the Search Result Reference string-
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.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
-
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
getReferral
public Referral getReferral()
Gets the sequence of LdapUrls as a Referral instance.- Specified by:
getReferralin interfaceSearchResultReference- Returns:
- the sequence of LdapUrls
-
setReferral
public void setReferral(Referral referral)
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:
Object.hashCode()
-
equals
public boolean equals(Object obj)
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
-
-