Save This Page
Home » j2ssh-0.2.9-src » com.sshtools.common.ui » [javadoc | source]
com.sshtools.common.ui
public class: SessionProviderFactory [javadoc | source]
java.lang.Object
   com.sshtools.common.ui.SessionProviderFactory

This class is responsible for dynamically loading all the installed session providers. A session provider can be used with SessionProviderFrame to integrate an ssh service such as a terminal window or sftp window within another application.

To install a session provider you should provide a special properties file resource at the root of your source tree called 'session.provider'.

This properties file should have the following properties defined:

provider.id= [The unique name of the provider e.g 'sshterm']
provider.name= [The descriptive name of the provider e.g. 'Terminal Session']
provider.class= [Fully qualified classname of the provider implementation]
provider.shortdesc= [A short description of the provider]
provider.smallicon= [The providers small icon, must be filename only and be
placed in the same package as the provider class implementation]
provider.largeicon= [The providers large icon, must be filename only and be
placed in the same package as the provider class implementation]
provider.mnemonic= [The mnemonic character]
provider.options= [The options panel implementation, must implement
com.sshtools.common.ui.OptionsTab]
property.page.1= [An number of property page panels, must implement
com.sshtools.common.ui.SshToolsConnectionTab]
property.page.2= [More property pages added like this]
provider.weight= [Weight setting, used to order providers]

Field Summary
 HashMap providers     
Constructor:
 SessionProviderFactory() 
Method from com.sshtools.common.ui.SessionProviderFactory Summary:
getInstance,   getProvider,   getSessionProviders
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sshtools.common.ui.SessionProviderFactory Detail:
 public static SessionProviderFactory getInstance() 
    Get the one time instance of the factory.
 public SessionProvider getProvider(String id) 

    Get a SessionProvider by its id. The id is defined by the provider.id property in the providers 'session.provider' resource file.

    Session providers that are currently defined within the SSHTools source tree are:

    sshterm - Terminal session provider
    shift - SFTP session provider
    tunneling - Secure port forwarding provider
    sshvnc - VNC session provider
    
 public List getSessionProviders() 
    Get all the installed SessionProvider's.