Open SiteSearch 4.1.1
Final

ORG.oclc.z39.server
Class Z39present

java.lang.Object
  |
  +--ORG.oclc.z39.server.Z39present

public class Z39present
extends Object

Z39present creates PresentResponses and translates PresentRequests.


Field Summary
 Diagnostic1 diagnostic
          Value passed to Response and returned by a target Z39.50 server and Request stores it here.
 String genericElementSetName
           
 int maximumRecordSize
           
 int numberOfRecordsRequested
           
 int preferredMessageSize
           
 String PreferredRecordSyntax
           
 int referenceId
           
 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.
 String ResultSetId
           
 int resultSetStartPoint
           
 String sessionId
           
 String txnId
           
 
Constructor Summary
Z39present()
           
 
Method Summary
 int addRecords(int presentStatus, DataDir dir, DbPresentData[] presentData, int[] numReturned)
           
 void init(int maximumRecordSize, int preferredMessageSize)
           
 void Request(BerString request)
          Processes a Z39.50 PresentRequest.
 void Request(DataDir request)
          Processes a Z39.50 PresentRequest.
 BerString Response(int NumberOfRecordsReturned, DbPresentData[] presentData, int NextResultSetPosition, int presentStatus, Diagnostic1 error, int extraLen, int offset)
          Creates a Z39.50 PresentResponse.
 String sessionId()
           
 String toString()
           
 String txnId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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

ResultSetId

public String ResultSetId

resultSetStartPoint

public int resultSetStartPoint

numberOfRecordsRequested

public int numberOfRecordsRequested

genericElementSetName

public String genericElementSetName

PreferredRecordSyntax

public String PreferredRecordSyntax

maximumRecordSize

public int maximumRecordSize

preferredMessageSize

public int preferredMessageSize

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.
Constructor Detail

Z39present

public Z39present()
Method Detail

init

public void init(int maximumRecordSize,
                 int preferredMessageSize)

sessionId

public String sessionId()

txnId

public String txnId()

Response

public BerString Response(int NumberOfRecordsReturned,
                          DbPresentData[] presentData,
                          int NextResultSetPosition,
                          int presentStatus,
                          Diagnostic1 error,
                          int extraLen,
                          int offset)
Creates a Z39.50 PresentResponse.
Parameters:
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

addRecords

public int addRecords(int presentStatus,
                      DataDir dir,
                      DbPresentData[] presentData,
                      int[] numReturned)

Request

public void Request(BerString request)
Processes a Z39.50 PresentRequest.
Parameters:
request - BerString containing request.

Request

public void Request(DataDir request)
Processes a Z39.50 PresentRequest.
Parameters:
request - DataDir containing request

toString

public String toString()
Overrides:
toString in class Object

Open SiteSearch 4.1.1
Final