Open SiteSearch 4.1.1
Final

ORG.oclc.z39
Class ESOrderPrice

java.lang.Object
  |
  +--ORG.oclc.z39.ESOrderPrice

public class ESOrderPrice
extends Object
implements ExtSvcHandler

ESOrderPrice creates extended services item prices requests and translates responses. This is an extension to the pre-define extended services in the Z39.50 standard to work with OCLC's document ordering system.


Field Summary
 String[] dbname
          The dbname(s) for the ES request.
 Vector expressMailPrices
          all expressMailPrices
 Vector exRoyaltyPrices
          all exRoyaltyPrices
 Vector fastFaxPrices
          all fastFaxPrices
 Vector faxPrices
          all faxPrices
 Vector foreignPrices
          all foreignPrices
 Vector ILLPrices
          all IllPrices
 String itemIssn
          ISSN of item
 String itemTitle
          Title of item
 String resultSetId
          The resultSetId for the ES request.
 int resultSetStartPosition
          The result set start point for ES types based on result set Id.
 Vector usMailPrices
          all usMailPrices
 
Constructor Summary
ESOrderPrice()
          Constructs an ESOrderPrice object.
ESOrderPrice(DataDir tp)
           
ESOrderPrice(String resultSet, int startPosition)
          Constructs and ESOrderPrice using the input resultset name and record number position.
 
Method Summary
 DataDir buildRequest()
          Build the extended services item oclc price request.
 DataDir buildResponse()
          Build the extended services item order response task package.
 String[] dbname(DataDir taskPackage)
          There are no dbnames with this task package, return null.
 Vector getPrices(int method)
          Get the price vector given a match on the input integer value.
 Vector getPrices(String method)
          Get the price vector given a match on the input text.
 void parseRequest(DataDir request)
          Parse the incoming extended services item order request.
 void parseResponse(DataDir response)
           
 void resetDbname(String name, DataDir taskPackage)
           
 void resetResultSetId(String resultSetName, DataDir taskPackage)
           
 String resultSetId(DataDir taskPackage)
           
 int resultSetStartPosition(DataDir taskPackage)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resultSetId

public String resultSetId
The resultSetId for the ES request.

dbname

public String[] dbname
The dbname(s) for the ES request.

resultSetStartPosition

public int resultSetStartPosition
The result set start point for ES types based on result set Id.

itemIssn

public String itemIssn
ISSN of item

itemTitle

public String itemTitle
Title of item

ILLPrices

public Vector ILLPrices
all IllPrices

faxPrices

public Vector faxPrices
all faxPrices

fastFaxPrices

public Vector fastFaxPrices
all fastFaxPrices

expressMailPrices

public Vector expressMailPrices
all expressMailPrices

usMailPrices

public Vector usMailPrices
all usMailPrices

exRoyaltyPrices

public Vector exRoyaltyPrices
all exRoyaltyPrices

foreignPrices

public Vector foreignPrices
all foreignPrices
Constructor Detail

ESOrderPrice

public ESOrderPrice()
Constructs an ESOrderPrice object.

ESOrderPrice

public ESOrderPrice(String resultSet,
                    int startPosition)
Constructs and ESOrderPrice using the input resultset name and record number position.

ESOrderPrice

public ESOrderPrice(DataDir tp)
Method Detail

resetResultSetId

public void resetResultSetId(String resultSetName,
                             DataDir taskPackage)
Specified by:
resetResultSetId in interface ExtSvcHandler

resetDbname

public void resetDbname(String name,
                        DataDir taskPackage)
Specified by:
resetDbname in interface ExtSvcHandler

resultSetStartPosition

public int resultSetStartPosition(DataDir taskPackage)
Specified by:
resultSetStartPosition in interface ExtSvcHandler

resultSetId

public String resultSetId(DataDir taskPackage)
Specified by:
resultSetId in interface ExtSvcHandler

dbname

public String[] dbname(DataDir taskPackage)
There are no dbnames with this task package, return null.
Specified by:
dbname in interface ExtSvcHandler

buildRequest

public DataDir buildRequest()
Build the extended services item oclc price request.

parseResponse

public void parseResponse(DataDir response)

buildResponse

public DataDir buildResponse()
Build the extended services item order response task package.

parseRequest

public void parseRequest(DataDir request)
Parse the incoming extended services item order request.

toString

public String toString()
Overrides:
toString in class Object

getPrices

public Vector getPrices(String method)
Get the price vector given a match on the input text. Valid inputs are: "ILL", "fax", "fastfax", "expressmail", "usmail", "foreign", "exroyalty" text comparisons are case insensitive
Returns:
Vector with ESOrderPriceInfo entries for the delivery method

getPrices

public Vector getPrices(int method)
Get the price vector given a match on the input integer value. Valid inputs are: Z39esOrderApi.ILLPrice Z39esOrderApi.faxPrice Z39esOrderApi.fastFaxPrice Z39esOrderApi.expressMailPrice Z39esOrderApi.usMailPrice Z39esOrderApi.foreignPrice Z39esOrderApi.exRoyaltyPrice
Returns:
Vector with ESOrderPriceInfo entries for the delivery method
See Also:
Z39esOrderApi.java

Open SiteSearch 4.1.1
Final