Class oclc.z39.Z39search
All Packages Class Hierarchy This Package Previous Next Index
Class oclc.z39.Z39search
java.lang.Object
|
+----oclc.z39.Z39api
|
+----oclc.z39.Z39search
- public class Z39search
- extends Z39api
Z39search creates SearchRequests and translates SearchResponses.
- Version:
- @(#)Z39search.java 1.8 06/27/96
- Author:
- Jenny Colvard
-
errorCode
- Error code if Search failed.
-
errorMsg
- Error message if Search failed.
-
Present
- PresentResponse if piggybacked Present was requested.
-
referenceId
- Value passed to Request and returned by a target Z39.50 server and
Response stores it here.
-
resultCount
- Number of records located by Search.
-
resultSetStatus
- Piggybacked Present Status.
-
searchStatus
- Status.
-
Z39search()
-
-
Request(int, int, int, int, int, String, String, String, String, String, String, int, int, int)
- Creates a Z39.50 SearchRequest.
-
Response(BerString)
-
-
Response(DataDir)
-
-
toString()
-
referenceId
public int referenceId
- Value passed to Request and returned by a target Z39.50 server and
Response stores it here.
resultCount
public int resultCount
- Number of records located by Search.
searchStatus
public int searchStatus
- Status.
resultSetStatus
public int resultSetStatus
- Piggybacked Present Status.
errorCode
public int errorCode
- Error code if Search failed.
errorMsg
public String errorMsg
- Error message if Search failed.
Present
public Z39present Present
- PresentResponse if piggybacked Present was requested.
Z39search
public Z39search()
Request
public BerString Request(int referenceId,
int smallSetUpperBound,
int largeSetLowerBound,
int mediumSetPresentNumber,
int replaceIndicator,
String resultSetName,
String databaseNames,
String smallSetElementSetNames,
String mediumSetElementSetNames,
String preferredRecordSyntax,
String query,
int query_type,
int extraLen,
int offset)
- Creates a Z39.50 SearchRequest.
- Parameters:
- referenceId - Will be returned on Response.
- smallSetUpperBound - Result set boundary to return all records.
- largeSetLowerBound - Result set boundary to return no records.
- mediumSetPresentNumber - Number of records to return for medium sets.
- replaceIndicator - Indicates response in cases where the resultSetName
already exists.
- resultSetName - Identifies the results from a SearchRequest.
- databaseNames - Set of databases to which the query applies.
- smallSetElementSetNames - Preferred composition of records.
- mediumSetElementSetNames - Preferred composition of records.
- preferredRecordSyntax - Requested syntax of returned records.
- query - Search query.
- query_type - Identifies the type of query. Types 0, 1, 100 & 101 are
supported.
- extraLen - Allow this much extra room in the built BER record.
- offset - Build the Request at this offset in the BerString
- Returns:
- BerString containing Request or null if space was unavailable
Response
public void Response(BerString response)
Response
public void Response(DataDir response)
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index