ORG.oclc.webz
Class ZQueryHandler
java.lang.Object
|
+--ORG.oclc.webz.Verb
|
+--ORG.oclc.webz.ZVerb
|
+--ORG.oclc.webz.ZQueryHandler
- Direct Known Subclasses:
- LIMIT, QUERY, SCAN
- public class ZQueryHandler
- extends ZVerb
The ZQueryHandler class is a utility class for Z39.50 search and scan -
It creates a query string from an input URL and invokes the
Z39.58 query parser to create a query string to pass the Z39.50
search and scan classes.
- See Also:
Z3958Parser
,
UserStateObject
,
ZDb
,
Log
Fields inherited from class ORG.oclc.webz.ZVerb |
bytesIn,
bytesOut,
dbGroupSearch,
dbname,
fmtClass,
format,
inputQueryInfo,
numrecs,
postings,
ranked,
recno,
resultSetName,
sorting,
tempDb,
traceMsgs,
z39session,
zDb,
zQueryTerm,
zServer,
zUserData |
Constructor Summary |
ZQueryHandler()
Constructs a ZQueryHandler object |
Method Summary |
String |
getErrMsg()
Retrieves a String containing the error message from the
Z39.58 query parser |
int |
getErrno()
Retrieves an integer containing the error code from the
Z39.58 query parser |
String |
parse(DataPairs inputQueryInfo,
ZDb db,
String defaultOperator)
Creates a String containing a Z39.50 query string based on the
input URL parsed query contained in the inputQueryObject. |
ZQueryHandler
public ZQueryHandler()
- Constructs a ZQueryHandler object
getErrMsg
public String getErrMsg()
- Retrieves a String containing the error message from the
Z39.58 query parser
- Returns:
- String
getErrno
public int getErrno()
- Retrieves an integer containing the error code from the
Z39.58 query parser
- Returns:
- int
parse
public String parse(DataPairs inputQueryInfo,
ZDb db,
String defaultOperator)
throws Exception
- Creates a String containing a Z39.50 query string based on the
input URL parsed query contained in the inputQueryObject.
It invokes the Z39.50 Query parser to create the query
suitable for the Z39.50 search or scan.
- Parameters:
inputQueryInfo
- the DataPairs containing the normalized input
URL query and limits- Returns:
- String
- Throws:
- Exception - any exception caught from the parser class