public class SearchReference extends 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 String[] | 
referralUrls
referral urls. 
 | 
private ResponseControl[] | 
responseControls
response controls. 
 | 
| Constructor and Description | 
|---|
SearchReference(int id,
               ResponseControl[] c,
               Collection<String> urls)
Creates a search reference. 
 | 
SearchReference(int id,
               ResponseControl[] c,
               String... url)
Creates a search reference. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object o)  | 
ResponseControl | 
getControl(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. 
 | 
String[] | 
getReferralUrls()
Returns the referral urls for this search reference. 
 | 
int | 
hashCode()  | 
void | 
setReferenceResponse(Response<SearchResult> response)
Sets the response from following the reference. 
 | 
String | 
toString()  | 
private static final int HASH_CODE_SEED
private final String[] referralUrls
private final ResponseControl[] responseControls
private final int messageId
private Response<SearchResult> referenceResponse
public SearchReference(int id,
                       ResponseControl[] c,
                       String... url)
id - message idc - response controlsurl - referral urlspublic SearchReference(int id,
                       ResponseControl[] c,
                       Collection<String> urls)
id - message idc - response controlsurls - referral urlspublic String[] getReferralUrls()
public ResponseControl[] getControls()
MessagegetControls in interface Message<ResponseControl>public ResponseControl getControl(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 referenceCopyright © 2003-2019 Virginia Tech. All Rights Reserved.