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 SPECCHIOServerDescriptorSPECCHIOClientException - could not create the clientpublic java.lang.String getAccountConfigurationString()
public java.lang.String getDataSourceName()
getDataSourceName in interface SPECCHIOServerDescriptorpublic java.lang.String getDisplayName(boolean showUser,
                                       boolean show_datasource_name)
getDisplayName in interface SPECCHIOServerDescriptorshowUser - 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 SPECCHIOServerDescriptorpublic void setUser(User user)
setUser in interface SPECCHIOServerDescriptoruser - the user informationpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getPreferenceNodeName()
SPECCHIOServerDescriptorgetPreferenceNodeName in interface SPECCHIOServerDescriptorpublic void setPreferenceNodeName(java.lang.String preferenceNodeName)
public java.lang.Boolean usesDefaultTrustStore()
SPECCHIOServerDescriptorusesDefaultTrustStore in interface SPECCHIOServerDescriptorpublic java.lang.Boolean isEncrypted()
SPECCHIOServerDescriptorisEncrypted in interface SPECCHIOServerDescriptorpublic int getList_index()
SPECCHIOServerDescriptorgetList_index in interface SPECCHIOServerDescriptorpublic void setList_index(int list_index)
SPECCHIOServerDescriptorsetList_index in interface SPECCHIOServerDescriptor