ORG.oclc.webz
Class INIT
java.lang.Object
|
+--ORG.oclc.webz.Verb
|
+--ORG.oclc.webz.ZVerb
|
+--ORG.oclc.webz.INIT
- public class INIT
- extends ZVerb
The INIT class performs a Z39.50 Init request to a Z39.50 server hosting
a database. INIT uses input parameters contained in a
RequestManager object, or
a RequestManager object and a URL String. A successful execution of
INIT results in establishment of a Z39.50 session with the server.
If execution fails, a FailurePage exception is thrown.
It is important to note that a Z39.50 Init request will be issued
on all Z39.50 commands if it has not been performed. This class is provided
as a way to specifically request the action.
The valid input widgets for the INIT class are:
dbname or
dbgroup
If the widgets are not specified, then INIT will default to the
"dbname"/"dbgroup" values
stored in the user state. If available, the user's AccessClient will
provide the Z39.50 Authorization and password, otherwise, the default
server authorization defined in the configuration files is passed
in the initialization request.
- See Also:
FailurePage
,
JavaPage
,
UserStateObject
,
ZDb
,
ZServer
,
ZUserData
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 |
INIT()
Constructs an INIT object. |
Method Summary |
void |
runit(RequestManager rMngr)
Executes the INIT class using the input parameters contained in
the RequestManager object. |
void |
runit(RequestManager rMngr,
String URLCmd)
Executes the INIT class using the RequestManager object and the
input parameters contained in the URLCmd. |
INIT
public INIT()
- Constructs an INIT object.
runit
public void runit(RequestManager rMngr)
- Executes the INIT class using the input parameters contained in
the RequestManager object.
Issue a Z39.50 Init request for the user to the
the appropriate Z39.50 server specified by the database
name or database group name.
Each method called from the runit() method can throw
a FailurePage exception. If this occurs, the catch logic for the
exceptions invokes setup of the bad page or command to
execute upon
return.
If the request is successfully executed, the next page
is set up for execution upon return.
- Parameters:
rMngr
- the RequestManager object containing the input parameters- Overrides:
- runit in class Verb
runit
public void runit(RequestManager rMngr,
String URLCmd)
- Executes the INIT class using the RequestManager object and the
input parameters contained in the URLCmd.
Issue a Z39.50 Init request for the user to the
the appropriate Z39.50 server specified by the database
name or database group name.
Each method called from the runit() method can throw
a FailurePage exception. If this occurs, the catch logic for the
exceptions invokes setup of the bad page or command to
execute upon
return.
If the request is successfully executed, the next page
is set up for execution upon return
- Parameters:
rMngr
- the RequestManager object containing the input parametersURLCmd
- the command string with the widgets delimited by ":"