|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.z39.client.Z39scan
Z39scan creates ScanRequests and translates ScanResponses.
Field Summary | |
AccessControl |
accessControl
AccessControl object created when an access control request is received. |
int |
errorCode
Error code if Scan failed. |
String |
errorMsg
Error message if Scan failed. |
int |
numberOfEntriesReturned
Number of terms returned. |
int |
referenceId
Value passed to Request and returned by a target Z39.50 server and Response stores it here. |
int |
requestLength
integer data type containing the number of bytes in the request. |
int |
responseLength
integer data type containing the number of bytes in the response. |
int |
scanStatus
Status. |
TermInfo[] |
terms
Scan results |
Z39session |
zsession
Z39session |
Constructor Summary | |
Z39scan()
|
|
Z39scan(Z39session z)
|
Method Summary | |
void |
doScan(int referenceId,
String databaseName,
String term,
String resultsAttributes,
int stepSize,
int numberOfTermsRequested,
int preferredPositionInResponse)
Creates and sends a Z39.50 ScanRequest, processes a Z39.50 Scan Response |
protected void |
GetScanTerms(DataDir parm)
Build term, displayTerm and postings arrays from ScanResponse. |
protected String |
getTerm(String termPlusAttributes)
|
static boolean |
makeZ39AttributesPlusTerm(String termPlusAttributes,
DataDir parent,
boolean fNewton)
|
BerString |
Request(int referenceId,
String databaseName,
String term,
String resultsAttributes,
int stepSize,
int numberOfTermsRequested,
int preferredPositionInResponse)
Creates a Z39.50 ScanRequest. |
BerString |
Request(int referenceId,
String databaseName,
String term,
String resultsAttributes,
int stepSize,
int numberOfTermsRequested,
int preferredPositionInResponse,
int extraLen,
int offset)
Creates a Z39.50 ScanRequest. |
void |
Response(BerString response)
Processes a Z39.50 ScanResponse. |
void |
Response(DataDir response)
Processes a Z39.50 ScanResponse. |
void |
sortTerms(TermInfo[] sort)
|
String |
termsToString()
Format a newline separated String of terms and postings. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public int referenceId
public int numberOfEntriesReturned
public int scanStatus
public int errorCode
public String errorMsg
public TermInfo[] terms
public int requestLength
public int responseLength
public AccessControl accessControl
public Z39session zsession
Constructor Detail |
public Z39scan()
public Z39scan(Z39session z)
Method Detail |
public void doScan(int referenceId, String databaseName, String term, String resultsAttributes, int stepSize, int numberOfTermsRequested, int preferredPositionInResponse) throws Exception, Diagnostic1, AccessControl
referenceId
- Will be returned on Response.databaseName
- Database to be Scanned.term
- Starting point for Scan.stepSize
- 'N' means Newton indexes ???.numberOfTermsRequested
- How many terms to return.preferredPositionInResponse
- Where the Scan term should appear in the
list.public BerString Request(int referenceId, String databaseName, String term, String resultsAttributes, int stepSize, int numberOfTermsRequested, int preferredPositionInResponse)
referenceId
- Will be returned on Response.databaseName
- Database to be Scanned.term
- Starting point for Scan.stepSize
- 'N' means Newton indexes ???.numberOfTermsRequested
- How many terms to return.preferredPositionInResponse
- Where the Scan term should appear in the
list.public BerString Request(int referenceId, String databaseName, String term, String resultsAttributes, int stepSize, int numberOfTermsRequested, int preferredPositionInResponse, int extraLen, int offset)
referenceId
- Will be returned on Response.databaseName
- Database to be Scanned.term
- Starting point for Scan.stepSize
- 'N' means Newton indexes ???.numberOfTermsRequested
- How many terms to return.preferredPositionInResponse
- Where the Scan term should appear in the
list.extraLen
- Allow this much extra room in the built BER record.offset
- Build the Request at this offset in the BerString.public void Response(BerString response) throws AccessControl
response
- BerString containing response.public void Response(DataDir response) throws AccessControl
response
- DataDir containing response.protected void GetScanTerms(DataDir parm)
parm
- ScanResponse Z39scanApi.entries field.public String toString()
public String termsToString()
protected String getTerm(String termPlusAttributes)
public static boolean makeZ39AttributesPlusTerm(String termPlusAttributes, DataDir parent, boolean fNewton)
public void sortTerms(TermInfo[] sort)
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |