public class SPECCHIOWebAppDescriptor extends java.lang.Object implements SPECCHIOServerDescriptor
Constructor and Description |
---|
SPECCHIOWebAppDescriptor(java.lang.String[] tokens)
Constructor for SPECCHIOClientFactory.process_line().
|
SPECCHIOWebAppDescriptor(java.lang.String protocol,
java.lang.String server,
int port,
java.lang.String path,
java.lang.String dataSourceName,
java.lang.Boolean default_trust_store)
Construct an anonymous descriptor.
|
SPECCHIOWebAppDescriptor(java.lang.String protocol,
java.lang.String server,
int port,
java.lang.String path,
java.lang.String user,
java.lang.String password,
java.lang.String dataSourceName,
boolean uses_default_trust_store,
java.lang.String preferenceNodeName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SPECCHIOClient |
createClient()
Create a web client that can connect to the server represented by
this descriptor.
|
java.lang.String |
getAccountConfigurationString()
Get the string describing the account configuration for db_config.txt
|
java.lang.String |
getDataSourceName()
Get the current data source name.
|
java.lang.String |
getDisplayName(boolean showUser,
boolean show_datasource_name)
Get the display name of this server.
|
java.lang.String |
getDisplayUser()
Get the user name.
|
int |
getList_index()
index at which this descriptor is found in the list of known connections
|
java.lang.String |
getPassword()
Get the password.
|
java.lang.String |
getPath()
Get the application path.
|
int |
getPort()
Get the port number.
|
java.lang.String |
getPreferenceNodeName()
Get the node name in preferences or line number in legacy file
|
java.lang.String |
getProtocol()
Get the protocol used to connect to the server.
|
java.lang.String |
getServer()
Get the web application server name.
|
java.net.URL |
getUrl()
Get the URL of the application server.
|
java.lang.Boolean |
isEncrypted()
Defines if this connection is encrypted
|
void |
setList_index(int list_index)
set index at which this descriptor is found in the list of known connections
|
void |
setPreferenceNodeName(java.lang.String preferenceNodeName) |
void |
setUser(User user)
Set the user information associated with this account.
|
java.lang.String |
toString()
Get a string representation of the server.
|
java.lang.Boolean |
usesDefaultTrustStore()
Defines if this connection relies on the default JVM trust store
|
public SPECCHIOWebAppDescriptor(java.lang.String protocol, java.lang.String server, int port, java.lang.String path, java.lang.String user, java.lang.String password, java.lang.String dataSourceName, boolean uses_default_trust_store, java.lang.String preferenceNodeName)
protocol
- "http" or "https"server
- the server host namepath
- the path to the web applicationport
- the port numberuser
- the usernamepassword
- the passworddefault_trust_store
- public SPECCHIOWebAppDescriptor(java.lang.String protocol, java.lang.String server, int port, java.lang.String path, java.lang.String dataSourceName, java.lang.Boolean default_trust_store)
protocol
- "http" or "https"server
- the server host namepath
- the path to the web applicationport
- the port numberboolean
- public SPECCHIOWebAppDescriptor(java.lang.String[] tokens) throws SPECCHIOWebClientException
tokens
- the array of strings read from the input fileSPECCHIOWebClientException
- the tokens are not correctly formattedpublic SPECCHIOClient createClient() throws SPECCHIOClientException
createClient
in interface SPECCHIOServerDescriptor
SPECCHIOClientException
- could not create the clientpublic java.lang.String getAccountConfigurationString()
public java.lang.String getDataSourceName()
getDataSourceName
in interface SPECCHIOServerDescriptor
public java.lang.String getDisplayName(boolean showUser, boolean show_datasource_name)
getDisplayName
in interface SPECCHIOServerDescriptor
showUser
- include the user account details in the display?show_datasource_name
- include the JNDI details in the display?public java.lang.String getPassword()
public java.lang.String getPath()
public int getPort()
public java.lang.String getProtocol()
public java.lang.String getServer()
public java.net.URL getUrl()
public java.lang.String getDisplayUser()
getDisplayUser
in interface SPECCHIOServerDescriptor
public void setUser(User user)
setUser
in interface SPECCHIOServerDescriptor
user
- the user informationpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getPreferenceNodeName()
SPECCHIOServerDescriptor
getPreferenceNodeName
in interface SPECCHIOServerDescriptor
public void setPreferenceNodeName(java.lang.String preferenceNodeName)
public java.lang.Boolean usesDefaultTrustStore()
SPECCHIOServerDescriptor
usesDefaultTrustStore
in interface SPECCHIOServerDescriptor
public java.lang.Boolean isEncrypted()
SPECCHIOServerDescriptor
isEncrypted
in interface SPECCHIOServerDescriptor
public int getList_index()
SPECCHIOServerDescriptor
getList_index
in interface SPECCHIOServerDescriptor
public void setList_index(int list_index)
SPECCHIOServerDescriptor
setList_index
in interface SPECCHIOServerDescriptor