Open SiteSearch 4.1.1
Final

ORG.oclc.z39.client
Class Z39response

java.lang.Object
  |
  +--ORG.oclc.z39.client.Z39response

public class Z39response
extends Object

Z39response takes a unknown Z39.50 response, identifies it and calls the appropriate routine to examine the response.


Field Summary
 Z39init init
          InitResponse.
static int not_BER
          Value for type meaning this response was not in BER format.
 Z39present present
          PresentResponse.
 Z39scan scan
          ScanResponse.
 Z39search search
          SearchResponse.
 Z39sort sort
          SortResponse.
 int type
          Type of the last response examined.
static int zClient_init
          Value for type meaning this response was an Init.
static int zClient_present
          Value for type meaning this response was a Present.
static int zClient_scan
          Value for type meaning this response was a Scan.
static int zClient_search
          Value for type meaning this response was a Search.
static int zClient_unknown
          Value for type meaning this response was of an unknown type.
 Z39session zsession
          Z39session
 
Constructor Summary
Z39response()
           
Z39response(Z39session z)
           
 
Method Summary
 void Response(BerString response)
          Determines the type and processes a Z39.50 Response.
 void Response(DataDir response)
          Determines the type and processes a Z39.50 Response.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

not_BER

public static final int not_BER
Value for type meaning this response was not in BER format.

zClient_unknown

public static final int zClient_unknown
Value for type meaning this response was of an unknown type.

zClient_init

public static final int zClient_init
Value for type meaning this response was an Init.

zClient_search

public static final int zClient_search
Value for type meaning this response was a Search.

zClient_present

public static final int zClient_present
Value for type meaning this response was a Present.

zClient_scan

public static final int zClient_scan
Value for type meaning this response was a Scan.

type

public int type
Type of the last response examined.

init

public Z39init init
InitResponse. If this is !null, Response will use this object. If this is null, Response will create the object and use it.

scan

public Z39scan scan
ScanResponse. If this is !null, Response will use this object. If this is null, Response will create the object and use it.

search

public Z39search search
SearchResponse. If this is !null, Response will use this object. If this is null, Response will create the object and use it.

present

public Z39present present
PresentResponse. If this is !null, Response will use this object. If this is null, Response will create the object and use it.

sort

public Z39sort sort
SortResponse. If this is !null, Response will use this object. If this is null, Response will create the object and use it.

zsession

public Z39session zsession
Z39session
Constructor Detail

Z39response

public Z39response()

Z39response

public Z39response(Z39session z)
Method Detail

Response

public void Response(BerString response)
              throws AccessControl
Determines the type and processes a Z39.50 Response.
Parameters:
response - - BerString containing Response.

Response

public void Response(DataDir response)
              throws AccessControl
Determines the type and processes a Z39.50 Response.
Parameters:
response - - DataDir containing Response.

toString

public String toString()
Overrides:
toString in class Object

Open SiteSearch 4.1.1
Final