All Packages Class Hierarchy This Package Previous Next Index
Class ORG.oclc.z39.client.Z39init
java.lang.Object
|
+----ORG.oclc.z39.client.Z39init
- public class Z39init
- extends Object
Z39init creates InitRequests and translates InitResponses.
- Version:
- @(#)Z39init.java 1.1 07/09/97
-
DBList
- Array of available DatabaseNames.
-
DisplayDBList
-
-
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'.
-
zsession
- Z39session
-
Z39init()
-
-
Z39init(Z39session)
-
-
doInit(int, String, int, int, String, String, String, DataDir)
- Creates, sends, and parses the response for a Z39.50 Init.
-
getFailureMsg()
-
-
Request(int, String, int, int, String, String, String, DataDir)
- Creates a Z39.50 InitRequest.
-
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.
DisplayDBList
public String DisplayDBList[]
failureCode
public short failureCode
- Reason InitRequest failed.
zsession
public Z39session zsession
- Z39session
Z39init
public Z39init()
Z39init
public Z39init(Z39session z)
doInit
public boolean doInit(int referenceId,
String options,
int preferredMessageSize,
int maximumRecordSize,
String id,
String password,
String newpassword,
DataDir userInformationField) throws Exception
- Creates, sends, and parses the response for a Z39.50 Init.
- 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.
- Returns:
- boolean indicating success of failure of request
- Throws: Exception
- caught from Z39Connect classes trying to send/receive the message
Request
public BerString Request(int referenceId,
String options,
int preferredMessageSize,
int maximumRecordSize,
String id,
String password,
String newpassword,
DataDir userInformationField)
- 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.
- Returns:
- BerString containing Request or null if space was unavailable
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
getFailureMsg
public String getFailureMsg()
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index