Open SiteSearch 4.1.1
Final

ORG.oclc.HoldingServer
Class HoldingInfoClient

java.lang.Object
  |
  +--ORG.oclc.HoldingServer.HoldingInfoClient

public class HoldingInfoClient
extends Object


Field Summary
 int ErrorCode
          Error code if request failed.
 String ErrorMsg
          Error message if request failed.
 BerString[] HoldingDatas
          Array of HoldingInfo returned in Response.
 int RequestLength
          The number of bytes in the request.
 int ResponseLength
          The number of bytes in the response.
 int StatusCode
          Status code.
 String TransactionID
          Value passed to Request() and returned by the target Holding Server and Response() stores it here.
 
Constructor Summary
HoldingInfoClient()
           
 
Method Summary
 void dumpHoldingInfo()
           
static void dumpHoldings(DataDir holdingDir)
           
 BerString Request(String transactionId, int holdingInfoRequestType, int[] OCLCRecNos, String[] ISSNs, int holdingInfoType, char holdingLevel, long instNum, String instSym, String holdingState, String groupSymbol)
          Generate a HoldingInfo Client Request.
 boolean Response(BerString response)
          Porcess a HoldingInfo Client Response.
 boolean Response(DataDir response)
           
 boolean Response(int statusCode, int errorCode, String errorMsg, BerString[] holdingDatas)
           
 void run(String transactionId, int holdingInfoRequestType, int[] OCLCRecNos, String[] ISSNs, int holdingInfoType, char holdingLevel, long instNum, String instSym, String holdingState, String groupSymbol)
          Creates and sends a HoldingInfo, gets and processes the HoldingInfo response
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TransactionID

public String TransactionID
Value passed to Request() and returned by the target Holding Server and Response() stores it here.

StatusCode

public int StatusCode
Status code. true, if successfull; otherwise, false.

ErrorCode

public int ErrorCode
Error code if request failed.

ErrorMsg

public String ErrorMsg
Error message if request failed.

HoldingDatas

public BerString[] HoldingDatas
Array of HoldingInfo returned in Response.

RequestLength

public int RequestLength
The number of bytes in the request.

ResponseLength

public int ResponseLength
The number of bytes in the response.
Constructor Detail

HoldingInfoClient

public HoldingInfoClient()
Method Detail

run

public void run(String transactionId,
                int holdingInfoRequestType,
                int[] OCLCRecNos,
                String[] ISSNs,
                int holdingInfoType,
                char holdingLevel,
                long instNum,
                String instSym,
                String holdingState,
                String groupSymbol)
         throws IOException,
                EOFException
Creates and sends a HoldingInfo, gets and processes the HoldingInfo response
Parameters:
TransactionId - is the TransactionID getting from client and Will be returned on Response.
HoldingInfoRequestType - indicates type of input data provided. Available types are: 1. ByOCLCRecnos, 2. ByISSNs.
OCLCRecnos - provides list of OCLCRecnos.
ISSNs - provides list of iSSNs.
HoldingInfoType - indicates type of holding data requested. Available types are: 1. InstOwnData, 2. HoldingInfo.
HoldingLevel - provide user's holding level information.
InstSymbol - provide user's institution symbol.
GroupSymbol - provide user's group symbol.
Throws:
Exception - exceptions from BerConnect

Request

public BerString Request(String transactionId,
                         int holdingInfoRequestType,
                         int[] OCLCRecNos,
                         String[] ISSNs,
                         int holdingInfoType,
                         char holdingLevel,
                         long instNum,
                         String instSym,
                         String holdingState,
                         String groupSymbol)
Generate a HoldingInfo Client Request.
Parameters:
TransactionId - is the TransactionID getting from client and Will be returned on Response.
HoldingInfoRequestType - indicates type of input data provided. Available types are: 1. ByOCLCRecnos, 2. ByISSNs.
OCLCRecnos - provides list of OCLCRecnos.
ISSNs - provides list of iSSNs.
HoldingInfoType - indicates type of holding data requested. Available types are: 1. InstOwnData, 2. HoldingInfo.
HoldingLevel - provide user's holding level information.
InstSymbol - provide user's institution symbol.
GroupSymbol - provide user's group symbol.
Returns:
BerString containing Request or null if space was unavailable.

Response

public boolean Response(BerString response)
Porcess a HoldingInfo Client Response.
Parameters:
response - is BerString containing Response. information.
Returns:
boolean, true if succeed, false if failed.

Response

public boolean Response(DataDir response)

Response

public boolean Response(int statusCode,
                        int errorCode,
                        String errorMsg,
                        BerString[] holdingDatas)

toString

public String toString()
Overrides:
toString in class Object

dumpHoldingInfo

public void dumpHoldingInfo()

dumpHoldings

public static void dumpHoldings(DataDir holdingDir)

Open SiteSearch 4.1.1
Final