public class SearchReference extends java.lang.Object implements ResponseMessage
| Modifier and Type | Field and Description |
|---|---|
private static int |
HASH_CODE_SEED
hash code seed.
|
private int |
messageId
message ID.
|
private Response<SearchResult> |
referenceResponse
response from following the reference.
|
private java.lang.String[] |
referralUrls
referral urls.
|
private ResponseControl[] |
responseControls
response controls.
|
| Constructor and Description |
|---|
SearchReference(int id,
ResponseControl[] c,
java.util.Collection<java.lang.String> urls)
Creates a search reference.
|
SearchReference(int id,
ResponseControl[] c,
java.lang.String... url)
Creates a search reference.
|
| Modifier and Type | Method and Description |
|---|---|
ResponseControl |
getControl(java.lang.String oid)
Returns the first response control with the supplied OID for this response message.
|
ResponseControl[] |
getControls()
Returns the controls for this message.
|
int |
getMessageId()
Returns the message ID for this response message.
|
Response<SearchResult> |
getReferenceResponse()
Returns the response from following the reference.
|
java.lang.String[] |
getReferralUrls()
Returns the referral urls for this search reference.
|
int |
hashCode() |
void |
setReferenceResponse(Response<SearchResult> response)
Sets the response from following the reference.
|
java.lang.String |
toString() |
private static final int HASH_CODE_SEED
private final java.lang.String[] referralUrls
private final ResponseControl[] responseControls
private final int messageId
private Response<SearchResult> referenceResponse
public SearchReference(int id,
ResponseControl[] c,
java.lang.String... url)
id - message idc - response controlsurl - referral urlspublic SearchReference(int id,
ResponseControl[] c,
java.util.Collection<java.lang.String> urls)
id - message idc - response controlsurls - referral urlspublic java.lang.String[] getReferralUrls()
public ResponseControl[] getControls()
MessagegetControls in interface Message<ResponseControl>public ResponseControl getControl(java.lang.String oid)
ResponseMessagegetControl in interface ResponseMessageoid - of the response control to returnpublic int getMessageId()
ResponseMessagegetMessageId in interface ResponseMessagepublic Response<SearchResult> getReferenceResponse()
public void setReferenceResponse(Response<SearchResult> response)
response - from following the referencepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object