com.sshtools.virtualsession
Interface VirtualSessionManager

All Known Subinterfaces:
VirtualSessionManagerUI
All Known Implementing Classes:
AWTVirtualSessionManager, SwingVirtualSessionManager

public interface VirtualSessionManager

Manages any number of VirtualSession's and governs how they are displayed. For example this interface could be implemented by a panel with an embedded tab component that displays each session in an individual tab or a panel containing left sided view of all the available sessions in a tree and a right handed view of the selected session.

Author:
Brett

Method Summary
 void addVirtualSession(VirtualSession vs)
          Add a new VirtualSession to this manager.
 void addVirtualSessionManagerListener(VirtualSessionManagerListener listener)
          Add a VirtualSessionManagerListener to the list that should receive events about changes in the state of the virtual sessions managed by this virtual session manager.
 URI getEmbeddedClientTicketURI()
          The applet container may have supplied an SSL Explorer embedded client ticket URI that may be used to initialise and authenticate a secure proxied connection.
 VirtualSession getSelectedVirtualSession()
          Return the currently selected virtual session
 int getSelectedVirtualSessionIndex()
          Return the currently selected virtual index
 VirtualSession getVirtualSession(int i)
          Return the virtual session at the specified index
 int getVirtualSessionCount()
          Return the number of virtual sessions.
 void removeVirtualSession(VirtualSession vs)
          Remove a VirtualSession from this terminal
 void removeVirtualSessionManagerListener(VirtualSessionManagerListener listener)
          Removes a VirtualSessionManagerListener from the list that should receive events about changes in the state of the virtual sessions managed by this virtual session manager.
 void setSelectedVirtualSession(VirtualSession vs)
          Make the provided virtual session the selected one
 java.util.Enumeration virtualSessions()
          Return an enumeration of virtual sessions
 

Method Detail

addVirtualSession

void addVirtualSession(VirtualSession vs)
Add a new VirtualSession to this manager.

Parameters:
vs - virtual session to add

removeVirtualSession

void removeVirtualSession(VirtualSession vs)
Remove a VirtualSession from this terminal

Parameters:
vs - virtual session to remove

getVirtualSessionCount

int getVirtualSessionCount()
Return the number of virtual sessions.

Returns:
virtual sessions

getSelectedVirtualSession

VirtualSession getSelectedVirtualSession()
Return the currently selected virtual session

Returns:
selected session

getSelectedVirtualSessionIndex

int getSelectedVirtualSessionIndex()
Return the currently selected virtual index

Returns:
selected terminal index

getVirtualSession

VirtualSession getVirtualSession(int i)
Return the virtual session at the specified index

Parameters:
i - index
Returns:
virtual terminal

setSelectedVirtualSession

void setSelectedVirtualSession(VirtualSession vs)
Make the provided virtual session the selected one

Parameters:
vs - virtual session to select

addVirtualSessionManagerListener

void addVirtualSessionManagerListener(VirtualSessionManagerListener listener)
Add a VirtualSessionManagerListener to the list that should receive events about changes in the state of the virtual sessions managed by this virtual session manager.

Parameters:
listener - listener to add

removeVirtualSessionManagerListener

void removeVirtualSessionManagerListener(VirtualSessionManagerListener listener)
Removes a VirtualSessionManagerListener from the list that should receive events about changes in the state of the virtual sessions managed by this virtual session manager.

Parameters:
listener - listener to remove

virtualSessions

java.util.Enumeration virtualSessions()
Return an enumeration of virtual sessions

Returns:
enumeration of virtual session

getEmbeddedClientTicketURI

URI getEmbeddedClientTicketURI()
The applet container may have supplied an SSL Explorer embedded client ticket URI that may be used to initialise and authenticate a secure proxied connection. null will be returned if no such ticket has been provided.

Returns:
ticket URI


Copyright © 2003-2009 SSHTOOLS LTD. All Rights Reserved.