com.raritantechnologies.federated.z3950
Class Z3950SearchApp.ZClient

java.lang.Object
  extended bySynchronousOriginBean
      extended bycom.raritantechnologies.federated.z3950.Z3950SearchApp.ZClient
Enclosing class:
Z3950SearchApp

public class Z3950SearchApp.ZClient
extends SynchronousOriginBean

The ZClient class is used as a Z3950 Client to retrieve results from a Z3950 Target.

See Also:
Serialized Form

Field Summary
static char ISO2709_FS
           
static char ISO2709_IDFS
           
static char ISO2709_RS
           
 long resultCount
           
 
Constructor Summary
Z3950SearchApp.ZClient()
           
Z3950SearchApp.ZClient(java.lang.String principal, java.lang.String credentials)
           
 
Method Summary
 void cmdAuth(java.lang.String args)
          implemenation of the "auth" command.
 void cmdBase(java.lang.String args)
          Implementation of the "base" command.
 void cmdElements(java.lang.String args)
          Implemenation of the "base" command -- Change the element set name in use (Normally "F" or "B").
 void cmdFind(java.lang.String args)
          implemenation of the "find" command.
 void cmdFormat(java.lang.String args)
          Implemenation of the "format" command -- Change the format of results.
 void cmdOpen(java.lang.String args)
          implemenation of the "open" command.
 void cmdShow(java.lang.String args)
          Implemenation of the "show" command.
 void displayRecords(Records_type r)
          implemenation of the "display records" command.
 void dumpOID(int[] oid)
           
 void executeSearch(java.util.Properties inputParameters, java.lang.String pqnQuery)
           
 java.util.Hashtable getHashtableForRecord(Records_type r)
           
 java.util.Hashtable getHashtableResult(int i)
          get a hashtable version of results for record # i.
 long getResultCount()
           
 void incomingAccessControlRequest(APDUEvent e)
           
 void incomingPresentResponse(APDUEvent e)
           
 PresentResponse_type sendPresent(long start, long count, java.lang.String elements)
           
 SearchResponse_type sendSearch(RootNode query)
           
 SearchResponse_type sendSearch(java.lang.String query, java.lang.String refid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ISO2709_RS

public static final char ISO2709_RS
See Also:
Constant Field Values

ISO2709_FS

public static final char ISO2709_FS
See Also:
Constant Field Values

ISO2709_IDFS

public static final char ISO2709_IDFS
See Also:
Constant Field Values

resultCount

public long resultCount
Constructor Detail

Z3950SearchApp.ZClient

public Z3950SearchApp.ZClient()

Z3950SearchApp.ZClient

public Z3950SearchApp.ZClient(java.lang.String principal,
                              java.lang.String credentials)
Method Detail

getResultCount

public long getResultCount()

executeSearch

public void executeSearch(java.util.Properties inputParameters,
                          java.lang.String pqnQuery)

cmdOpen

public void cmdOpen(java.lang.String args)
implemenation of the "open" command.

Returns:
void

cmdFind

public void cmdFind(java.lang.String args)
implemenation of the "find" command.

Returns:
void

getHashtableResult

public java.util.Hashtable getHashtableResult(int i)
get a hashtable version of results for record # i.

Returns:
HashTable

cmdShow

public void cmdShow(java.lang.String args)
Implemenation of the "show" command.

Returns:
void

cmdBase

public void cmdBase(java.lang.String args)
Implementation of the "base" command.

Returns:
void

cmdElements

public void cmdElements(java.lang.String args)
Implemenation of the "base" command -- Change the element set name in use (Normally "F" or "B").

Returns:
void

cmdFormat

public void cmdFormat(java.lang.String args)

Implemenation of the "format" command -- Change the format of results.

Returns:
void

cmdAuth

public void cmdAuth(java.lang.String args)
implemenation of the "auth" command.

Returns:
void

dumpOID

public void dumpOID(int[] oid)

displayRecords

public void displayRecords(Records_type r)
implemenation of the "display records" command.

Returns:
void

getHashtableForRecord

public java.util.Hashtable getHashtableForRecord(Records_type r)

sendSearch

public SearchResponse_type sendSearch(java.lang.String query,
                                      java.lang.String refid)
                               throws SearchException,
                                      InvalidQueryException
Throws:
SearchException
InvalidQueryException

sendSearch

public SearchResponse_type sendSearch(RootNode query)
                               throws SearchException,
                                      InvalidQueryException
Throws:
SearchException
InvalidQueryException

sendPresent

public PresentResponse_type sendPresent(long start,
                                        long count,
                                        java.lang.String elements)

incomingAccessControlRequest

public void incomingAccessControlRequest(APDUEvent e)

incomingPresentResponse

public void incomingPresentResponse(APDUEvent e)