Open SiteSearch 4.1.1
Final

ORG.oclc.z39.server
Class Z39init

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

public class Z39init
extends Object

Z39init creates InitResponses and translates InitRequests.


Field Summary
 String autho
           
 String groupid
           
 int maximumRecordSize
          Override of preferredMessageSize for retrieval of exceptionally large records.
 String newpassword
           
 String options
          Negotiates whether specific features are available.
 String optionsSupported
           
 String password
           
 int preferredMessageSize
          Preferred maximum size in bytes of responses to a PresentRequest.
 String protocolVersion
           
 int referenceId
          Value received in Request and returned in Response.
 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 sessionId
           
 String txnId
           
 DataDir userInformation
           
 boolean wantsHost
           
 
Constructor Summary
Z39init(String weDo)
           
 
Method Summary
 void Request(BerString request)
          Processes a Z39.50 InitRequest
 void Request(DataDir request)
          Processes a Z39.50 InitRequest.
 BerString Response(String host, int port, int result, int failureCode, String MessageOfTheDay, String[] DBList, String sessionId, int extraLen, int offset)
          Creates a Z39.50 InitResponse
 String sessionId()
          Returns the String containing the sessionId part from the input sessionID.
 String toString()
           
 String txnId()
          Returns the String containing the transaction id part from the input sessionID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

referenceId

public int referenceId
Value received in Request and returned in Response.

sessionId

public String sessionId

txnId

public String txnId

optionsSupported

public String optionsSupported

protocolVersion

public String protocolVersion

wantsHost

public boolean wantsHost

autho

public String autho

password

public String password

newpassword

public String newpassword

groupid

public String groupid

userInformation

public DataDir userInformation

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.

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

Z39init

public Z39init(String weDo)
Method Detail

txnId

public String txnId()
Returns the String containing the transaction id part from the input sessionID.

sessionId

public String sessionId()
Returns the String containing the sessionId part from the input sessionID.

Response

public BerString Response(String host,
                          int port,
                          int result,
                          int failureCode,
                          String MessageOfTheDay,
                          String[] DBList,
                          String sessionId,
                          int extraLen,
                          int offset)
Creates a Z39.50 InitResponse
Parameters:
host - the host connected to
port - the port connected to
result - the result status of the init
failureCode - the failure code for failed init requests.
MessageOfTheDay - the message of the day from the Z39.50 server
DbList - the names of the databases the user has access to
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

Request

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

Request

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

toString

public String toString()
Overrides:
toString in class Object

Open SiteSearch 4.1.1
Final