|
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.access.AccessConnectInfo
The AccessConnectInfo class maintains configuration for connecting to a SiteSearch Access Server. It reads in the input configuration file and provides methods to retrieve the information.
Field Summary | |
protected String |
anotherIniFile
String containing an additional configuration file |
protected boolean |
authorizationRequired
Boolean data type indicating whether any type of authorization is required. |
protected int |
authorizationRetries
Integer data type indicating how many authorization retries are allowed. |
protected String |
clientClassName
String data type containing the AccessClient class to use for remote authentication |
protected int |
connectionRetries
Integer data type indicating how many connection retries to the Access Server are allowed. |
protected boolean |
dNSFlag
Boolean data type indicating whether to perform authorization based on Domain name. |
protected String |
hostName
String data type containing the hostname for client connections. |
protected boolean |
iPFlag
Boolean data type indicating whether to perform authorization based on IP address. |
protected String |
login
String data type containing the login for remote access |
protected boolean |
nameFlag
Boolean data type indicating whether to perform authorization by name. |
protected String |
opsConfigDir
String data type containing the directory where operations files are. |
protected String |
password
String data type containing the password for remote access |
protected String |
protocol
String data type containing the protocol (i.e. |
protected String |
serverName
String data type containing the name of the server. |
protected int |
serverPort
integer data type containing port number for client connections. |
protected String |
serverType
String data type containing the type of server = "Access". |
protected String |
systemName
String data type containing the system name |
protected int |
timeoutValue
Integer data type containing how many seconds to wait for a response from the Access Server. |
protected String |
URLString
String data type containing the URL for secure socket connection |
protected boolean |
useLowerCase
Boolean data type indicating whether to change autho and password to all lower case. |
Constructor Summary | |
AccessConnectInfo()
Constructs an AccessConnectInfo object. |
|
AccessConnectInfo(String name,
IniFile ini)
Constructs an AccessConnectInfo object using the configuration information from the input IniFile object. |
|
AccessConnectInfo(String name,
String host,
int port)
Constructs an AccessConnectInfo object for the input server name, on the input host and port. |
|
AccessConnectInfo(String name,
String host,
int port,
String protocol,
String URLString,
String login,
String password)
Constructs an AccessConnectInfo object for the input server name, on the input host and port. |
Method Summary | |
boolean |
authorizationByDNSRequired()
Returns a boolean indicating whether name Authorization by IP is required. |
boolean |
authorizationByIPRequired()
Returns a boolean indicating whether name Authorization by IP is required. |
boolean |
authorizationByNameRequired()
Returns a boolean indicating whether name Authorization by Name is required. |
int |
authorizationRetries()
Returns an integer containing the number of times a user may try to log on. |
String |
clientClassName()
Retrieves a String containing the name of the AccessClient class that is loaded for the accessing the AccessServer. |
int |
connectionRetries()
Returns an integer containing the number of times to try connecting to the Access Server before returning a connection failure. |
String |
getAnotherIniFile()
Returns a String containing the name of the additional ini file |
String |
getLogin()
Returns a String containing the login for connecting to the remote server. |
String |
getPassword()
Returns a String containing the password for connecting to the remote server. |
String |
getProtocol()
Returns a String containing the protocol for connecting to the remote server. |
ServerLocation |
getServerLocation(OpsClient opsClient,
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 |
getSystemName()
Returns a String containing the system name for this access server. |
String |
getURLString()
Returns a String containing the URL for connecting to the remote server. |
String |
hostName()
Returns a String containing the host name for the access server. |
void |
init(String name,
IniFile ini)
Initialzes the Access Server by name using the configuration information contained in the IniFile object. |
int |
readTimeout()
Returns an integer containing the number of seconds to wait for the AccessServer to return a response. |
String |
serverName()
Returns a String containing the name of the access server. |
int |
serverPort()
Returns an integer containing the server port for connecting to the access server. |
String |
serverType()
Returns a String containing the type classification of the server. |
String |
toString()
Generates a String representation of the object. |
boolean |
useLowerCase()
Returns a boolean indicating whether to change autho and password to all lower case. |
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 String protocol
protected String URLString
protected String login
protected String password
protected String opsConfigDir
protected boolean authorizationRequired
protected boolean iPFlag
protected boolean dNSFlag
protected boolean nameFlag
protected int timeoutValue
protected int authorizationRetries
protected int connectionRetries
protected boolean useLowerCase
protected String clientClassName
protected String systemName
protected String anotherIniFile
Constructor Detail |
public AccessConnectInfo()
public AccessConnectInfo(String name, String host, int port)
name
- the name of the Access Serverhost
- the hostname to connect toport
- the port to connect topublic AccessConnectInfo(String name, IniFile ini)
name
- the name of the Serverini
- the configuration ini filepublic AccessConnectInfo(String name, String host, int port, String protocol, String URLString, String login, String password)
name
- the name of the Access Serverhost
- the hostname to connect toport
- the port to connect toprotocol
- for connecting to the remote serverURLString
- for connecting to the remote serverlogin
- for connecting to the remote serverpassword
- for connecting to the remote serverMethod Detail |
public void init(String name, IniFile ini)
name
- the name of the server.ini
- the IniFile object containing the server specific
configuration information.public ServerLocation getServerLocation(OpsClient opsClient, String sessionId)
opsClient
- sessionId
- public String getSystemName()
public String hostName()
public String serverName()
public int serverPort()
public String serverType()
public String getProtocol()
public String getURLString()
public String getLogin()
public String getPassword()
public boolean useLowerCase()
public boolean authorizationByNameRequired()
public boolean authorizationByIPRequired()
public boolean authorizationByDNSRequired()
public String clientClassName()
public int readTimeout()
public int authorizationRetries()
public int connectionRetries()
public String getAnotherIniFile()
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 |