Open SiteSearch 4.1.1
Final

ORG.oclc.z39.server
Class Z39delete

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

public class Z39delete
extends Object

Z39delete creates DeleteResponses and translates DeleteRequests.


Field Summary
 int deleteFunction
          Specified by the origin.
 int[] deleteListStatuses
          If the deleteFunction was 'list', then these are statuses for each list
 String deleteMessage
          Optional text message from the target
 int deleteOperationStatus
          Returned by the target
 int numberNotDeleted
          If the deleteFunction was 'bulk' and some were not delete, the target fills this in
 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.
 String[] resultSetList
          If the deleteFunction is 'list', then this is the list
 String sessionId
           
 String txnId
           
 
Constructor Summary
Z39delete()
           
 
Method Summary
 void Request(BerString request)
           
 void Request(DataDir request)
           
 void Response(int status, int notDeleted, String[] resultsSets, int[] statuses, String message)
           
 void Response(int status, String[] resultsSets, int[] statuses, String message, int referenceId)
          Creates a Z39.50 DeleteResponse.
 String sessionId()
           
 BerString toBerString(int extraLen, int offset)
           
 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 Request and returned by a target Z39.50 server and Response stores it here

deleteFunction

public int deleteFunction
Specified by the origin. Request to delete all results set or just a specified list of results sets

resultSetList

public String[] resultSetList
If the deleteFunction is 'list', then this is the list

deleteOperationStatus

public int deleteOperationStatus
Returned by the target

deleteListStatuses

public int[] deleteListStatuses
If the deleteFunction was 'list', then these are statuses for each list

numberNotDeleted

public int numberNotDeleted
If the deleteFunction was 'bulk' and some were not delete, the target fills this in

deleteMessage

public String deleteMessage
Optional text message from the target

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.

sessionId

public String sessionId

txnId

public String txnId
Constructor Detail

Z39delete

public Z39delete()
Method Detail

sessionId

public String sessionId()

txnId

public String txnId()

Response

public void Response(int status,
                     String[] resultsSets,
                     int[] statuses,
                     String message,
                     int referenceId)
Creates a Z39.50 DeleteResponse.
Parameters:
referenceId - Will be returned on 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

Response

public void Response(int status,
                     int notDeleted,
                     String[] resultsSets,
                     int[] statuses,
                     String message)

toBerString

public BerString toBerString(int extraLen,
                             int offset)

Request

public void Request(BerString request)

Request

public void Request(DataDir request)

toString

public String toString()
Overrides:
toString in class Object

Open SiteSearch 4.1.1
Final