@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class SearchResultReference extends java.lang.Object implements java.io.Serializable, LDAPResponse
NO_CONTROLS
Constructor and Description |
---|
SearchResultReference(int messageID,
java.lang.String[] referralURLs,
Control[] controls)
Creates a new search result reference with the provided information.
|
SearchResultReference(java.lang.String[] referralURLs,
Control[] controls)
Creates a new search result reference with the provided information.
|
Modifier and Type | Method and Description |
---|---|
Control |
getControl(java.lang.String oid)
Retrieves the control with the specified OID.
|
Control[] |
getControls()
Retrieves the set of controls returned with this search result reference.
|
int |
getMessageID()
Retrieves the message ID for the LDAP message containing this response.
|
java.lang.String[] |
getReferralURLs()
Retrieves the set of referral URLs for this search result reference.
|
java.lang.String |
toString()
Retrieves a string representation of this search result reference.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this search result reference to the
provided buffer.
|
public SearchResultReference(@NotNull java.lang.String[] referralURLs, @NotNull Control[] controls)
referralURLs
- The set of referral URLs for this search result
reference. It must not be null
.controls
- The set of controls returned with this search result
reference. It must not be null
.public SearchResultReference(int messageID, @NotNull java.lang.String[] referralURLs, @NotNull Control[] controls)
messageID
- The message ID for the LDAP message containing this
response.referralURLs
- The set of referral URLs for this search result
reference. It must not be null
.controls
- The set of controls returned with this search result
reference. It must not be null
.public int getMessageID()
getMessageID
in interface LDAPResponse
@NotNull public java.lang.String[] getReferralURLs()
@NotNull public Control[] getControls()
get
method in the response control class.@Nullable public Control getControl(@NotNull java.lang.String oid)
oid
- The OID of the control to retrieve.null
if there is no
such control for this search result reference.@NotNull public java.lang.String toString()
toString
in class java.lang.Object
public void toString(@NotNull java.lang.StringBuilder buffer)
toString
in interface LDAPResponse
buffer
- The buffer to which to append the string representation of
this search result reference.