| 
 | 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.Z39init
Z39init creates InitRequests and translates InitResponses.
| Field Summary | |
|  String[] | DBListArray of available DatabaseNames. | 
|  String[] | DisplayDBList | 
|  short | failureCodeReason InitRequest failed. | 
|  String | failureMsgFailure message for init request. | 
|  int | maximumRecordSizeOverride of preferredMessageSize for retrieval of exceptionally large records. | 
|  String | MessageOfTheDayString containing message from Z39.50 server. | 
|  String | optionsNegotiates whether specific features are available. | 
|  int | preferredMessageSizePreferred maximum size in bytes of responses to a PresentRequest. | 
|  int | referenceIdValue passed to Request and returned by a target Z39.50 server and Response stores it here. | 
|  int | requestLengthinteger data type containing the number of bytes in the request. | 
|  int | responseLengthinteger data type containing the number of bytes in the response. | 
|  short | result'Accept' or 'Reject'. | 
|  String | txnIdValue passed as part of sessionId response containing the transactionId. | 
|  Z39session | zsessionZ39session | 
| Constructor Summary | |
| Z39init() | |
| Z39init(Z39session z) | |
| Method Summary | |
|  void | doInit(int referenceId,
       String options,
       int preferredMessageSize,
       int maximumRecordSize,
       String id,
       String password,
       String newpassword,
       DataDir userInformationField,
       boolean reconnect)Creates, sends, and parses the response for a Z39.50 Init. | 
|  String | getFailureMsg() | 
|  void | reInit()Reinitializes session to Z39.50 server if connection is gone The init parms to the server are the original parms | 
|  BerString | Request(int referenceId,
        String options,
        int preferredMessageSize,
        int maximumRecordSize,
        String id,
        String password,
        String newpassword,
        DataDir userInformationField,
        boolean reconnect)Creates a Z39.50 InitRequest. | 
|  BerString | Request(int referenceId,
        String options,
        int preferredMessageSize,
        int maximumRecordSize,
        String id,
        String password,
        String newpassword,
        DataDir userInformationField,
        boolean reconnect,
        int extraLen,
        int offset)Creates a Z39.50 InitRequest. | 
|  void | Response(BerString response)Processes a Z39.50 InitResponse. | 
|  void | Response(DataDir response)Processes a Z39.50 InitResponse. | 
|  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 String txnId
public String options
public int preferredMessageSize
public int maximumRecordSize
public short result
public String MessageOfTheDay
public String[] DBList
public String[] DisplayDBList
public short failureCode
public String failureMsg
public int requestLength
public int responseLength
public Z39session zsession
| Constructor Detail | 
public Z39init()
public Z39init(Z39session z)
| Method Detail | 
public void doInit(int referenceId,
                   String options,
                   int preferredMessageSize,
                   int maximumRecordSize,
                   String id,
                   String password,
                   String newpassword,
                   DataDir userInformationField,
                   boolean reconnect)
            throws Exception,
                   Diagnostic1
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 accesspassword - use null for anonymous accessnewpassword - See Z39.50 Specification.userInformationField - See Z39.50 Specification.
public void reInit()
            throws Exception,
                   Diagnostic1
public BerString Request(int referenceId,
                         String options,
                         int preferredMessageSize,
                         int maximumRecordSize,
                         String id,
                         String password,
                         String newpassword,
                         DataDir userInformationField,
                         boolean reconnect)
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 accesspassword - use null for anonymous accessnewpassword - See Z39.50 Specification.userInformationField - See Z39.50 Specification.
public BerString Request(int referenceId,
                         String options,
                         int preferredMessageSize,
                         int maximumRecordSize,
                         String id,
                         String password,
                         String newpassword,
                         DataDir userInformationField,
                         boolean reconnect,
                         int extraLen,
                         int offset)
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 accesspassword - use null for anonymous accessnewpassword - See Z39.50 Specification.userInformationField - See Z39.50 Specification.reconnect - flag indicating whether to request reconnect information from the serverextraLen - Allow this much extra room in the built BER record.offset - Build the Request at this offset in the BerStringpublic void Response(BerString response)
response - BerString containing response.public void Response(DataDir response)
response - DataDir containing responsepublic String getFailureMsg()
public String toString()
| 
 | Open SiteSearch 4.1.1 Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||