Class oclc.z39.Z39init
All Packages Class Hierarchy This Package Previous Next Index
Class oclc.z39.Z39init
java.lang.Object
|
+----oclc.z39.Z39api
|
+----oclc.z39.Z39init
- public class Z39init
- extends Z39api
Z39init creates InitRequests and translates InitResponses.
- Version:
- @(#)Z39init.java 1.7 06/17/96
- Author:
- Jenny Colvard
-
DBList
- Array of available DatabaseNames.
-
failureCode
- Reason InitRequest failed.
-
maximumRecordSize
- Override of preferredMessageSize for retrieval of exceptionally large
records.
-
MessageOfTheDay
- String containing message from Z39.50 server.
-
options
- Negotiates whether specific features are available.
-
preferredMessageSize
- Preferred maximum size in bytes of responses to a PresentRequest.
-
referenceId
- Value passed to Request and returned by a target Z39.50 server and
Response stores it here.
-
result
- 'Accept' or 'Reject'.
-
Z39init()
-
-
Request(int, String, int, int, String, String, String, DataDir, int, int)
- Creates a Z39.50 InitRequest.
-
Response(BerString)
- Processes a Z39.50 InitResponse.
-
Response(DataDir)
- Processes a Z39.50 InitResponse.
-
toString()
-
referenceId
public int referenceId
- Value passed to Request and returned by a target Z39.50 server and
Response stores it here.
options
public String options
- Negotiates whether specific features are available. See Z39.50
Specification.
preferredMessageSize
public int preferredMessageSize
- Preferred maximum size in bytes of responses to a PresentRequest.
See Z39.50 Specification.
maximumRecordSize
public int maximumRecordSize
- Override of preferredMessageSize for retrieval of exceptionally large
records. See Z39.50 Specification.
result
public short result
- 'Accept' or 'Reject'. See Z39.50 Specification.
MessageOfTheDay
public String MessageOfTheDay
- String containing message from Z39.50 server.
DBList
public String DBList[]
- Array of available DatabaseNames.
failureCode
public short failureCode
- Reason InitRequest failed.
Z39init
public Z39init()
Request
public BerString Request(int referenceId,
String options,
int preferredMessageSize,
int maximumRecordSize,
String id,
String password,
String newpassword,
DataDir userInformationField,
int extraLen,
int offset)
- Creates a Z39.50 InitRequest.
- Parameters:
- referenceId - Will be returned on Response and allows Requests
and responses to be matched up by the application.
- options - See Z39.50 Specification.
- preferredMessageSize - See Z39.50 Specification.
- maximumRecordSize - See Z39.50 Specification.
- id - use null for anonymous access
- password - use null for anonymous access
- newpassword - See Z39.50 Specification.
- userInformationField - See Z39.50 Specification.
- 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)
- Processes a Z39.50 InitResponse.
- Parameters:
- response - BerString containing response.
Response
public void Response(DataDir response)
- Processes a Z39.50 InitResponse.
- Parameters:
- response - DataDir containing response
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index