Open SiteSearch 4.1.1
Final

ORG.oclc.z39.client
Class Z39accessControl

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

public class Z39accessControl
extends Object

Z39accessControl creates AccessControl Responses to send to the Z3950 server.


Field Summary
 AccessControl accessControl
          AccessControl object created when an access control request is received.
 int referenceId
          Value passed to Request and returned by a target Z39.50 server and Response 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.
 Z39session zsession
          Z39session
 
Constructor Summary
Z39accessControl()
           
Z39accessControl(Z39session z)
           
 
Method Summary
 void doAccessControl(int referenceId, AccessControl accessControlInfo)
          Creates and sends a Z3950 AccessControl Response and receives the response to the original command from the server.
 void Response(BerString response)
           
 void Response(DataDir dir)
           
 BerString Response(int referenceId, AccessControl accessControlInfo)
          Creates a Z3950 AccessControl Response.
 BerString Response(int referenceId, AccessControl accessControlInfo, int extraLen, int offset)
          Creates a Z3950 AccessControl Response.
 String toString()
           
 
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 Request and returned by a target Z39.50 server and Response stores it here.

accessControl

public AccessControl accessControl
AccessControl object created when an access control request is received.

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.

zsession

public Z39session zsession
Z39session
Constructor Detail

Z39accessControl

public Z39accessControl(Z39session z)

Z39accessControl

public Z39accessControl()
Method Detail

doAccessControl

public void doAccessControl(int referenceId,
                            AccessControl accessControlInfo)
                     throws Exception,
                            Diagnostic1,
                            AccessControl
Creates and sends a Z3950 AccessControl Response and receives the response to the original command from the server.
Parameters:
referenceId - Will be sent on the Response.
accessControlInfo - AccessControl object containing the response information.
Throws:
Exception - exceptions from BerConnect
Diagnostic1 - Z39.50 diagnostics

Response

public BerString Response(int referenceId,
                          AccessControl accessControlInfo)
Creates a Z3950 AccessControl Response.
Parameters:
referenceId - Will be sent on the Response.
accessControlInfo - AccessControl object containing the response information.
Returns:
BerString containing Request or null if space was unavailable

Response

public BerString Response(int referenceId,
                          AccessControl accessControlInfo,
                          int extraLen,
                          int offset)
Creates a Z3950 AccessControl Response.
Parameters:
referenceId - Will be sent on the Response.
accessControlInfo - AccessControl object containing the response information.
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

Response

public void Response(BerString response)
              throws AccessControl

Response

public void Response(DataDir dir)
              throws AccessControl

toString

public String toString()
Overrides:
toString in class Object

Open SiteSearch 4.1.1
Final