Open SiteSearch 4.1.1
Final

ORG.oclc.z39.server
Class Z39sort

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

public class Z39sort
extends Object

Z39sort creates SortResponses and translates SortRequests.


Field Summary
 int errorCode
          Value passed to Response and returned by a target Z39.50 server and Request stores it here.
 boolean fUseSortAttributes
           
 int referenceId
           
 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 resultSetName
           
 String sessionId
           
 boolean sortAccrossDbs
           
 int[] sortCase
           
 String[] sortKeys
           
 int[] sortOrder
           
 String sortResultSetName
           
 String txnId
           
 
Constructor Summary
Z39sort()
           
 
Method Summary
 void Request(BerString request)
           
 void Request(DataDir request)
           
 BerString Response(int SortStatus, int resultSetStatus, Diagnostic1 error, int extraLen, int offset)
          Creates a Z39.50 SortResponse.
 String sessionId()
           
 String toString()
           
 String txnId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

errorCode

public int errorCode
Value passed to Response and returned by a target Z39.50 server and Request stores it here.

referenceId

public int referenceId

sessionId

public String sessionId

txnId

public String txnId

sortKeys

public String[] sortKeys

sortOrder

public int[] sortOrder

sortCase

public int[] sortCase

resultSetName

public String resultSetName

sortResultSetName

public String sortResultSetName

fUseSortAttributes

public boolean fUseSortAttributes

sortAccrossDbs

public boolean sortAccrossDbs

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.
Constructor Detail

Z39sort

public Z39sort()
Method Detail

sessionId

public String sessionId()

txnId

public String txnId()

Response

public BerString Response(int SortStatus,
                          int resultSetStatus,
                          Diagnostic1 error,
                          int extraLen,
                          int offset)
Creates a Z39.50 SortResponse.
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

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