Open SiteSearch 4.1.1
Final

ORG.oclc.z39.client
Class Z39trc

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

public class Z39trc
extends Object

Z39trc creates Trigger Resource Control Requests


Field Summary
 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
Z39trc()
           
Z39trc(Z39session z)
           
 
Method Summary
 void doTriggerResourceControl(int referenceId, int action)
          Creates and sends a Z39.50 TriggerResourceControl request.
 BerString Request(int referenceId, int action)
          Creates a Z39.50 TriggerResourceControl Request.
 BerString Request(int referenceId, int action, int extraLen, int offset)
          Creates a Z39.50 TriggerResourceControl Request.
 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.

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

Z39trc

public Z39trc(Z39session z)

Z39trc

public Z39trc()
Method Detail

doTriggerResourceControl

public void doTriggerResourceControl(int referenceId,
                                     int action)
                              throws Exception,
                                     Diagnostic1
Creates and sends a Z39.50 TriggerResourceControl request. No response is expected
Parameters:
referenceId - Will be returned on Response.
action - Resource Control Action
Throws:
Exception - exceptions from BerConnect
Diagnostic1 - Z39.50 diagnostics

Request

public BerString Request(int referenceId,
                         int action)
Creates a Z39.50 TriggerResourceControl Request.
Parameters:
referenceId - Will be returned on Response.
action -  
Returns:
BerString containing Request or null if space was unavailable

Request

public BerString Request(int referenceId,
                         int action,
                         int extraLen,
                         int offset)
Creates a Z39.50 TriggerResourceControl Request.
Parameters:
referenceId - Will be returned on Response.
Returns:
BerString containing Request or null if space was unavailable

toString

public String toString()
Overrides:
toString in class Object

Open SiteSearch 4.1.1
Final