ORG.oclc.z39.server
Class Z39search
java.lang.Object
|
+--ORG.oclc.z39.server.Z39search
- public class Z39search
- extends Object
Z39search creates SearchResponses and translates SearchRequests.
Method Summary |
void |
Request(BerString request)
|
void |
Request(DataDir request)
|
BerString |
Response(int resultCount,
int searchStatus,
int resultSetStatus,
int presentStatus,
Z39present present,
DbPresentData[] recs,
int NumberOfRecordsReturned,
DbResults[] dbResults,
Diagnostic1 error,
int extraLen,
int offset)
Creates a Z39.50 SearchResponse. |
BerString |
Response(int resultCount,
int searchStatus,
int resultSetStatus,
int presentStatus,
Z39present present,
DbPresentData[] recs,
int NumberOfRecordsReturned,
DbResults[] dbResults,
TermComponentPostings[] componentPostings,
DataDir oclcUserInfo,
String oclcUserInfoOID,
Diagnostic1 error,
int extraLen,
int offset)
Creates a Z39.50 SearchResponse. |
String |
sessionId()
|
String |
toString()
|
String |
txnId()
|
diagnostic
public Diagnostic1 diagnostic
- Value passed to Response and returned by a target Z39.50 server and
Request stores it here.
referenceId
public int referenceId
sessionId
public String sessionId
txnId
public String txnId
queryType
public int queryType
query
public String query
attributesPlusTerm
public DataDir attributesPlusTerm
DbList
public String[] DbList
resultSetName
public String resultSetName
replaceIndicator
public int replaceIndicator
smallSetUpperBound
public int smallSetUpperBound
largeSetLowerBound
public int largeSetLowerBound
mediumSetPresentNumber
public int mediumSetPresentNumber
smallSetElementSetNames
public String smallSetElementSetNames
mediumSetElementSetNames
public String mediumSetElementSetNames
PreferredRecordSyntax
public String PreferredRecordSyntax
searchResultsOID
public String searchResultsOID
oclc7
public oclcUserInformation7 oclc7
oclc8
public oclcUserInformation8 oclc8
queryOID
public String queryOID
requestLength
public int requestLength
- integer data type containing the number of bytes in the request.
responseLength
public int responseLength
- integer data type containing the number of bytes in the response.
Z39search
public Z39search()
sessionId
public String sessionId()
txnId
public String txnId()
Response
public BerString Response(int resultCount,
int searchStatus,
int resultSetStatus,
int presentStatus,
Z39present present,
DbPresentData[] recs,
int NumberOfRecordsReturned,
DbResults[] dbResults,
Diagnostic1 error,
int extraLen,
int offset)
- Creates a Z39.50 SearchResponse.
- Parameters:
referenceId
- Will be returned on Request.extraLen
- Allow this much extra room in the built BER record.offset
- Build the Response at this offset in the BerString- Returns:
- BerString containing Response or null if space was unavailable
Response
public BerString Response(int resultCount,
int searchStatus,
int resultSetStatus,
int presentStatus,
Z39present present,
DbPresentData[] recs,
int NumberOfRecordsReturned,
DbResults[] dbResults,
TermComponentPostings[] componentPostings,
DataDir oclcUserInfo,
String oclcUserInfoOID,
Diagnostic1 error,
int extraLen,
int offset)
- Creates a Z39.50 SearchResponse.
- Parameters:
referenceId
- Will be returned on Request.extraLen
- Allow this much extra room in the built BER record.offset
- Build the Response at this offset in the BerString- Returns:
- BerString containing Response or null if space was unavailable
Request
public void Request(BerString request)
Request
public void Request(DataDir request)
toString
public String toString()
- Overrides:
- toString in class Object