|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A single virtual session provides some kind of display or 'screen' for a
single connection to a host. and will usually be added to a VirtualSessionManager implementation that manages
all of the virtual terminals.
| Method Summary | |
void |
addVirtualSessionListener(VirtualSessionListener listener)
Add a VirtualSessionListener to the list that should receive events
such as connection made, disconnected, resizes, data sent and received etc. |
void |
connect(ProfileTransport transport)
Connect the session to the streams provided by the transport. |
void |
disconnect(boolean doDisconnect)
Disconnect this session from the host it is connected to. |
java.lang.String |
getTitle()
Return the title of this virtual session. |
ProfileTransport |
getTransport()
Get the transport currently in use. |
VirtualSessionManager |
getVirtualSessionManager()
Get the virtual session manager. |
void |
init(VirtualSessionManager virtualSessionManager)
Initialise the virtual session. |
boolean |
isConnected()
Get if this virtual session is currently connected |
void |
removeVirtualSessionListener(VirtualSessionListener listener)
Remove a VirtualSessionListener to the list receiving events
such as connection made, disconnected, resizes, data sent and received etc. |
void |
reset()
Reset the session back to its initial state (e.g. |
void |
setVirtualSessionProperties(ResourceProfile profile)
Prior to connection, and when the user applies connection profiles, this method will be called. |
| Method Detail |
public void reset()
public java.lang.String getTitle()
public boolean isConnected()
public void init(VirtualSessionManager virtualSessionManager)
virtualSessionManager - the virtual session manager session has been added topublic VirtualSessionManager getVirtualSessionManager()
null until init
has been called.
public void disconnect(boolean doDisconnect)
true
is passed for the doDisconnect value, the the transport will also
be disconnected.
doDisconnect - disconnect the transportpublic void addVirtualSessionListener(VirtualSessionListener listener)
VirtualSessionListener to the list that should receive events
such as connection made, disconnected, resizes, data sent and received etc.
listener - listener to addpublic void removeVirtualSessionListener(VirtualSessionListener listener)
VirtualSessionListener to the list receiving events
such as connection made, disconnected, resizes, data sent and received etc.
listener - listener to removepublic void connect(ProfileTransport transport)
transport - transportpublic ProfileTransport getTransport()
connect()
has been called and will be null if not connected.
public void setVirtualSessionProperties(ResourceProfile profile)
profile - profile to configure virtual session from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||