com.sshtools.common.ui

Class SshToolsApplicationClientPanel


public abstract class SshToolsApplicationClientPanel
extends SshToolsApplicationPanel

Version:
$Revision: 1.24 $
Author:
$author$

Nested Class Summary

static class
SshToolsApplicationClientPanel.ActionMenu

Nested classes/interfaces inherited from class com.sshtools.common.ui.SshToolsApplicationPanel

SshToolsApplicationPanel.ActionMenu

Field Summary

static int
BANNER_TIMEOUT
static String
PREF_CONNECTION_FILE_DIRECTORY
protected FileFilter
connectionFileFilter
protected File
currentConnectionFile
protected SshToolsConnectionProfile
currentConnectionProfile
protected HostKeyVerification
hostKeyVerification
protected Log
log
protected boolean
needSave
protected SshClient
ssh
protected static AbstractKnownHostsKeyVerification
ver

Fields inherited from class com.sshtools.common.ui.SshToolsApplicationPanel

actionMenus, actions, actionsVisible, application, container, contextMenu, log, menuBar, toolBar, toolsVisible

Constructor Summary

SshToolsApplicationClientPanel()
Creates a new SshToolsApplicationClientPanel object.
SshToolsApplicationClientPanel(LayoutManager mgr)
Creates a new SshToolsApplicationClientPanel object.

Method Summary

protected boolean
allowConnectionSettingsEditing()
protected boolean
authenticateUser(boolean newProfile)
abstract void
authenticationComplete(boolean newProfile)
void
closeConnection(boolean disconnect)
void
connect()
void
connect(SshToolsConnectionProfile profile, boolean newProfile)
void
connect(SshClient ssh, SshToolsConnectionProfile profile)
void
editConnection()
boolean
editConnection(SshToolsConnectionProfile profile)
abstract SshToolsConnectionTab[]
getAdditionalConnectionTabs()
File
getCurrentConnectionFile()
SshToolsConnectionProfile
getCurrentConnectionProfile()
HostKeyVerification
getHostKeyVerification()
void
init(SshToolsApplication application)
boolean
isConnected()
boolean
isNeedSave()
SshToolsConnectionProfile
newConnectionProfile(SshToolsConnectionProfile profile)
void
open()
void
open(File f)
abstract boolean
postConnection()
File
saveConnection(boolean saveAs, File file, SshToolsConnectionProfile profile)
void
setContainerTitle(File file)
void
setCurrentConnectionFile(File file)
void
setCurrentConnectionProfile(SshToolsConnectionProfile profile)
void
setHostHostVerification(HostKeyVerification hostKeyVerification)
void
setNeedSave(boolean needSave)
protected int
showAuthenticationPrompt(SshAuthenticationClient instance)

Methods inherited from class com.sshtools.common.ui.SshToolsApplicationPanel

addFavorite, canClose, close, deregisterAction, getAction, getActionMenu, getApplication, getContainer, getContextMenu, getIcon, getJMenuBar, getStatusBar, getToolBar, init, isConnected, isToolsVisible, rebuildActionComponents, registerAction, registerActionMenu, setActionVisible, setAvailableActions, setContainer, setContainerTitle, setMenuBarVisible, setStatusBarVisible, setToolBarVisible, setToolsVisible, showErrorMessage, showErrorMessage, showExceptionMessage, showOptions

Field Details

PREF_CONNECTION_FILE_DIRECTORY

public static final String PREF_CONNECTION_FILE_DIRECTORY

connectionFileFilter

protected FileFilter connectionFileFilter

currentConnectionFile

protected File currentConnectionFile

currentConnectionProfile

protected SshToolsConnectionProfile currentConnectionProfile

hostKeyVerification

protected HostKeyVerification hostKeyVerification

log

protected Log log

needSave

protected boolean needSave

ssh

protected SshClient ssh

ver

protected static AbstractKnownHostsKeyVerification ver

Constructor Details

SshToolsApplicationClientPanel

public SshToolsApplicationClientPanel()
Creates a new SshToolsApplicationClientPanel object.

SshToolsApplicationClientPanel

public SshToolsApplicationClientPanel(LayoutManager mgr)
Creates a new SshToolsApplicationClientPanel object.
Parameters:
mgr -

Method Details

allowConnectionSettingsEditing

protected boolean allowConnectionSettingsEditing()
Returns:

authenticateUser

protected boolean authenticateUser(boolean newProfile)
            throws IOException
Parameters:
newProfile -
Returns:

authenticationComplete

public abstract void authenticationComplete(boolean newProfile)
            throws SshException,
                   IOException
Parameters:
newProfile -
Throws:
SshException -

closeConnection

public void closeConnection(boolean disconnect)
Parameters:
disconnect -

connect

public void connect()
            throws SshException
Throws:
SshException -

connect

public void connect(SshToolsConnectionProfile profile,
                    boolean newProfile)
Parameters:
profile -
newProfile -

connect

public void connect(SshClient ssh,
                    SshToolsConnectionProfile profile)
            throws IOException
Parameters:
ssh -
profile -

editConnection

public void editConnection()

editConnection

public boolean editConnection(SshToolsConnectionProfile profile)
Parameters:
profile -
Returns:

getAdditionalConnectionTabs

public abstract SshToolsConnectionTab[] getAdditionalConnectionTabs()
Returns:

getCurrentConnectionFile

public File getCurrentConnectionFile()
Returns:

getCurrentConnectionProfile

public SshToolsConnectionProfile getCurrentConnectionProfile()
Returns:

getHostKeyVerification

public HostKeyVerification getHostKeyVerification()
Returns:

init

public void init(SshToolsApplication application)
            throws SshToolsApplicationException
Overrides:
init in interface SshToolsApplicationPanel
Parameters:
application -

isConnected

public boolean isConnected()
Overrides:
isConnected in interface SshToolsApplicationPanel
Returns:

isNeedSave

public boolean isNeedSave()
Returns:

newConnectionProfile

public SshToolsConnectionProfile newConnectionProfile(SshToolsConnectionProfile profile)
Parameters:
profile -
Returns:

open

public void open()

open

public void open(File f)
Parameters:
f -

postConnection

public abstract boolean postConnection()
Returns:

saveConnection

public File saveConnection(boolean saveAs,
                           File file,
                           SshToolsConnectionProfile profile)
Parameters:
saveAs -
file -
profile -
Returns:

setContainerTitle

public void setContainerTitle(File file)
Overrides:
setContainerTitle in interface SshToolsApplicationPanel
Parameters:
file -

setCurrentConnectionFile

public void setCurrentConnectionFile(File file)
Parameters:
file -

setCurrentConnectionProfile

public void setCurrentConnectionProfile(SshToolsConnectionProfile profile)
Parameters:
profile -

setHostHostVerification

public void setHostHostVerification(HostKeyVerification hostKeyVerification)
Parameters:
hostKeyVerification -

setNeedSave

public void setNeedSave(boolean needSave)
Parameters:
needSave -

showAuthenticationPrompt

protected int showAuthenticationPrompt(SshAuthenticationClient instance)
            throws IOException
Parameters:
instance -
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.