|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SearchResponseHandler
Interface for handling search responses. Results are streamed to handler implementations so that large result sets can be processed efficiently.
| Method Summary | |
|---|---|
void |
columns(java.util.List<java.lang.String> columns)
If results are returned then this method is called with the column headers returned. |
void |
count(int count)
If a count was returned in the search response. |
void |
data(java.util.List<java.lang.String> data)
If results are returned then the this method is called for each record returned. |
void |
delimiter(java.lang.String hex)
If a delimiter is specified in the response then this method is called with the byte delimiter as hexidecimal string. |
void |
done()
On completion of processing of the search results or if a parsing error occurs then this called. |
java.lang.String |
getPath()
Get the path requested for the search. |
java.lang.String |
getQuery()
Get the query requested for the search. |
int |
getRecordsInResponse()
Return the number of records processed in this search response. |
java.util.List<java.lang.String> |
getSelect()
Get the columns requested for the search. |
RETSUserSession |
getSession()
Get the user session used for the search. |
void |
hasMoreData()
If the results returned have been limited by either the user or the server and more results are available then this method will be called. |
void |
noRecordsFound()
Callback when search was successful but specifically no records were found. |
void |
responseCode(int code,
java.lang.String text,
java.lang.String description)
Callback for search RETS response code. |
void |
setContext(RETSUserSession session,
java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> select)
Set the search context for the results being parsed. |
| Method Detail |
|---|
int getRecordsInResponse()
java.util.List<java.lang.String> getSelect()
RETSUserSession.search(String, String, List, SearchResponseHandler)java.lang.String getPath()
RETSUserSession.search(String, String, List, SearchResponseHandler)java.lang.String getQuery()
RETSUserSession.search(String, String, List, SearchResponseHandler)RETSUserSession getSession()
RETSUserSession.search(String, String, List, SearchResponseHandler)
void responseCode(int code,
java.lang.String text,
java.lang.String description)
code - The RETS response code.text - The text associated with the response code.description - An associated long description of the response code.void noRecordsFound()
void count(int count)
void delimiter(java.lang.String hex)
hex - The byte delimiter as a hexidecimal string.
void columns(java.util.List<java.lang.String> columns)
throws RETSClientException
columns - A list of column names.
RETSClientException
void data(java.util.List<java.lang.String> data)
throws RETSClientException
data - A list of the record fields.
RETSClientExceptionvoid hasMoreData()
void done()
void setContext(RETSUserSession session,
java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> select)
session - The user session.path - The search path.query - The DMQL2 query.select - The columns selected to be returned or null for all.RETSUserSession.search(String, String, List, SearchResponseHandler)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||