|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.webz.ZServer
The ZServer class maintains configuration for a Z39.50 Server input from the JaSSI configuration file. This information is used to customize Z39.50 access to the server. The class provides methods to retrieve the configuration information for the object.
The ZServer class also maintains a Hashtable object of Db objects containing database configuration information for the list of databases that the server "owns". The combination of server configuration and database information provides all the information necessary to perform Z3950 activities.
Db
,
Log
Field Summary | |
protected boolean |
authoRequired
String data type indicating whether the remote server requires an autho-password. |
protected Hashtable |
dbList
Hashtable object containing the Db database objects that this server owns. |
protected boolean |
fCanDoDedup
boolean data type indicating whether the server supports dedup requests - the OCLC ZBase server supports this feature (default=true). |
protected boolean |
fCanDoMultiDbSearch
boolean data type indicating whether the server supports mulitple database names in search/scan requests - the OCLC ZBase server supports this feature (default=true). |
protected boolean |
fCanDoReconnect
boolean data type indicating whether the server supports reconnections for the same Z3950 session - the OCLC ZBase server supports this feature (default=true). |
protected boolean |
fCanDoScan
boolean data type indicating whether the server supports Z3950 scan (default=true). |
protected boolean |
fCanDoSort
boolean data type indicating whether the server supports Z3950 sort (default=true). |
protected boolean |
fMustDeleteFirst
boolean data type indicating whether a delete result set request is required before each search request (default=false). |
protected boolean |
fNoPiggybackedPresents
boolean data type indicating whether the server does not support a search-read request (default=false). |
protected boolean |
fSummaryDbResults
boolean data type indicating whether the server supports a search response with per-db results - the OCLC ZBase Z3950 server supports this feature (default=false). |
protected boolean |
fTriggerResourceControl
boolean data type indicating whether the server supports a Z3950 Trigger Resource request (default=true). |
protected boolean |
fUseDefaultResultSetName
boolean data type indicating whether server only supports "default" result set names (default=false). |
protected boolean |
fUseElementSetNames
boolean data type indicating whether the server supports element set names (default=true). |
protected boolean |
fUseRefId
boolean data type indicating whether the server supports the use of reference Ids on the Z3950 requests (default=true). |
protected boolean |
fUseSortAttributes
boolean data type indicating the method of Z3950 sort request encoding. |
protected String |
hostName
String data type containing the hostname of the Z3950 server for client connections. |
protected String |
id
String data type containing the default Z3950 init authorization (default="autho"). |
protected String |
initOptions
String data type containing the Z3950 init options. |
protected int |
largeSetLowerBound
integer data type containing the Z3950 largeSetLowerBound value - see Z3950 standard (default=10000000). |
protected int |
maximumMsgSize
integer data type containing the Z3950 maximum message size (default=10000000). |
protected String |
passWord
String data type containing the default Z3950 init password (default="password"). |
protected int |
preferredMsgSize
integer data type containing the Z3950 preferred message size (default=5000000). |
protected int |
queryType
integer data type cotaining the Z3950 Query Type (1,101) where the default is Type 101 - See the Z3950 Standard. |
protected int |
replaceIndicator
integer data type indicating that duplicate resultsets on Z3950 search requests should be replaced with the most current results (default=1). |
protected String |
serverName
String data type containing the name of the Z3950 server. |
protected int |
serverPort
integer data type containing the port of the Z3950 server for client connections where 0 indicates to use the OpServe to locate the server. |
protected String |
serverType
String data type defining the type of server = "Z39". |
protected int |
smallSetUpperBound
integer data type containing the Z3950 smallSetUpperBound value - see Z3950 standard (default=0). |
protected int |
timeoutPeriod
integer data type containing timeout period in seconds for waiting for Z3950 responses (default=480 seconds(8 minues) and 0 indicates not to time). |
Class |
widgets2Infix
|
protected String |
widgets2InfixClass
|
Constructor Summary | |
ZServer()
Constructs a ZServer object. |
|
ZServer(String name,
IniFile ini)
Constructs a ZServer object for the input server name by reading server configuration information from the input iniFile object. |
|
ZServer(String name,
String host,
int port)
Constructs a ZServer object for the input server name, host, and port. |
Method Summary | |
boolean |
authoRequired()
Returns a boolean indicating whether the remote server requires an authorization/password. |
Hashtable |
dbList()
Returns a Hashtable object containing all the Db objects for databases this ZServer owns. |
boolean |
fCanDoDedup()
Returns a boolean indicating whether the server supports dedup requests. |
boolean |
fCanDoMultiDbSearch()
Returns a boolean indicating whether the server supports multiple dbnames on a search/scan request. |
boolean |
fCanDoRanked()
Returns a boolean indicating whether the server supports ranked retrieval requests - unsupported at this time. |
boolean |
fCanDoReconnect()
Returns a boolean indicating whether the server supports reconnection for existing sessions. |
boolean |
fCanDoScan()
Returns a boolean indicating whether the server supports scan (wordlist browse). |
boolean |
fCanDoSort()
Returns a boolean indicating whether the server supports sort. |
boolean |
fMustDeleteFirst()
Returns a boolean indicating whether the server requires a delete resultset request before each search request. |
boolean |
fNoPiggybackedPresents()
Returns a boolean indicating whether the server does not support records to be returned on a search request. |
boolean |
fSummaryDbResults()
Returns a boolean indicating whether a request for summary database results should be added to the search request - See the Z3950 specification. |
boolean |
fTriggerResourceControl()
Returns a boolean indicating whether the server supports the Z3950 Trigger Resource Control request. |
boolean |
fUseDefaultResultSetName()
Returns a boolean indicating whether to use a "default" resultset name on search requests. |
boolean |
fUseElementSetNames()
Returns a boolean indicating whether the server supports ElementSet Names on Z3950 requests. |
boolean |
fUseRefId()
Returns a boolean indicating whether the server supports the use of Reference Ids on Z3950 requests. |
boolean |
fUseSortAttributes()
Returns a boolean indicating whether Z3950 Sort requests use the SortAttributes tag to encode the sort request. |
ServerLocation |
getServerLocation(String sessionId)
Retrieves a ServerLocation object containing a port and host to connect to for this server from the SiteSearch OpServe process which provides load balancing among servers. |
String |
hostName()
Returns a String containing the hostname of the Z3950 server. |
String |
id()
Returns a String containing the default authorization for the Z39.50 server. |
void |
init(String name,
IniFile ini)
Initializes the Z39.50 Server object for the input server name by reading server configuration information from the input iniFile object. |
String |
initOptions()
Returns a String containing the init options for a Z3950 Init request. |
int |
largeSetLowerBound()
Returns an integer containing the large set lower bound value to use in Z3950 Search requests. |
int |
maximumMsgSize()
Returns an integer containing the maximum message size for the Z3950 server. |
String |
passWord()
Returns a String containing the default password for the Z39.50 server |
int |
preferredMsgSize()
Returns an integer containing the preferred message size for the server. |
int |
queryType()
Returns an integer containing the Z3950 query Type (1/101/0). |
int |
replaceIndicator()
Returns an integer containing the Replace indicator value. |
int |
scanStepSize()
Returns an integer containing the step size to use in Z3950 Scan requests. |
String |
serverName()
Returns a String containing the name of the server. |
int |
serverPort()
Returns an integer containing the port for Z3950 connections. |
String |
serverType()
Returns a String containing the type classification of the server. |
void |
setId(String id)
Sets the Default Authorization for the Server to the input String. |
void |
setPassword(String password)
Sets the Default Password for the Server to the input String. |
int |
smallSetUpperBound()
Returns an integer containing the small set upper bound to use in Z3950 Search requests. |
int |
timeoutPeriod()
Returns an integer containing the number of seconds to wait for a Z3950 response. |
String |
toString()
Generates the String representation of the object |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected String serverName
protected int serverPort
protected String hostName
protected String serverType
protected int queryType
protected Hashtable dbList
protected String initOptions
protected boolean fUseDefaultResultSetName
protected boolean fNoPiggybackedPresents
protected boolean fMustDeleteFirst
protected boolean fSummaryDbResults
protected boolean fTriggerResourceControl
protected boolean fUseRefId
protected boolean fUseElementSetNames
protected boolean fCanDoMultiDbSearch
protected boolean fCanDoReconnect
protected boolean fCanDoDedup
protected boolean fCanDoSort
protected boolean fCanDoScan
protected boolean fUseSortAttributes
protected int replaceIndicator
protected int smallSetUpperBound
protected int largeSetLowerBound
protected int preferredMsgSize
protected int maximumMsgSize
protected String id
protected String passWord
protected int timeoutPeriod
protected boolean authoRequired
protected String widgets2InfixClass
public Class widgets2Infix
Constructor Detail |
public ZServer()
public ZServer(String name, String host, int port)
name
- the name of the Z39.50 Serverhost
- the hostname to connect toport
- the port to connect topublic ZServer(String name, IniFile ini)
name
- the name of the Z39.50 Serverini
- the JaSSI configuration ini fileMethod Detail |
public void init(String name, IniFile ini)
name
- the name of the Z39.50 Serverini
- the JaSSI configuration ini filepublic boolean authoRequired()
public Hashtable dbList()
public boolean fCanDoDedup()
public boolean fCanDoMultiDbSearch()
public boolean fCanDoRanked()
public boolean fCanDoReconnect()
public boolean fCanDoScan()
public boolean fCanDoSort()
public boolean fSummaryDbResults()
public boolean fMustDeleteFirst()
public boolean fNoPiggybackedPresents()
public boolean fTriggerResourceControl()
public boolean fUseDefaultResultSetName()
public boolean fUseElementSetNames()
public boolean fUseRefId()
public boolean fUseSortAttributes()
public ServerLocation getServerLocation(String sessionId)
public String hostName()
public String id()
public void setId(String id)
id
- the authorization stringpublic void setPassword(String password)
password
- the passwordpublic String initOptions()
public int largeSetLowerBound()
public int maximumMsgSize()
public String passWord()
public int preferredMsgSize()
public int queryType()
public int replaceIndicator()
public int scanStepSize()
public int smallSetUpperBound()
public String serverName()
public int serverPort()
public String serverType()
public int timeoutPeriod()
public String toString()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |