|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface VirtualSession
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 |
|---|
void reset()
java.lang.String getTitle()
boolean isConnected()
void init(VirtualSessionManager virtualSessionManager)
virtualSessionManager - the virtual session manager session has been added toVirtualSessionManager getVirtualSessionManager()
null until init
has been called.
void disconnect(boolean doDisconnect)
true
is passed for the doDisconnect value, the the transport will also
be disconnected.
doDisconnect - disconnect the transportvoid 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 addvoid removeVirtualSessionListener(VirtualSessionListener listener)
VirtualSessionListener to the list receiving events
such as connection made, disconnected, resizes, data sent and received etc.
listener - listener to removevoid connect(ProfileTransport transport)
transport - transportProfileTransport getTransport()
connect()
has been called and will be null if not connected.
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 | ||||||||