Open SiteSearch 4.1.1
Final

ORG.oclc.z39.server
Class Z39extsvc

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

public class Z39extsvc
extends Object

Z39extsvc decodes ExtentedServicesRequest and translates ExtentedServicesResponses.


Field Summary
 ExtSvcHandler esHandler
           
 ExtSvcData esParms
           
 int referenceId
          Value passed to Response and returned by a target Z39.50 server and Request stores it here.
 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
           
 
Constructor Summary
Z39extsvc()
           
 
Method Summary
static void addExtendedServicesSupported(String extSvcClassname, String extSvcOID)
          Method to add specification of additional classes that implement the ExtSvcHandler class for handling extended services in the Z3950 Server.
 String[] dbname(DataDir taskPackage)
           
 void Request(BerString request)
           
 void Request(DataDir request)
           
 BerString Response(ExtSvcData esData, Diagnostic1 error, int extraLen, int offset)
          Creates a Z39.50 Extended Services Response.
 String resultSetId(DataDir taskPackage)
           
 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

referenceId

public int referenceId
Value passed to Response and returned by a target Z39.50 server and Request stores it here.

sessionId

public String sessionId

txnId

public String txnId

esParms

public ExtSvcData esParms

esHandler

public ExtSvcHandler esHandler

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

Z39extsvc

public Z39extsvc()
Method Detail

addExtendedServicesSupported

public static final void addExtendedServicesSupported(String extSvcClassname,
                                                      String extSvcOID)
Method to add specification of additional classes that implement the ExtSvcHandler class for handling extended services in the Z3950 Server.

sessionId

public String sessionId()

txnId

public String txnId()

Response

public BerString Response(ExtSvcData esData,
                          Diagnostic1 error,
                          int extraLen,
                          int offset)
Creates a Z39.50 Extended Services Response.
Parameters:
taskPackage - the response taskPackage
error - the diagnostics generated by the request
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

Request

public void Request(BerString request)

Request

public void Request(DataDir request)

resultSetId

public String resultSetId(DataDir taskPackage)

dbname

public String[] dbname(DataDir taskPackage)

toString

public String toString()
Overrides:
toString in class Object

Open SiteSearch 4.1.1
Final