|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ProfileTransport implementations are responsible for creating and
maintaing a connection to a resource. The resource URI is
determined from the ResourceProfile provided when
connect() is called.
| Method Summary | |
ProfileTransport |
cloneVirtualSession(VirtualSession session)
Clone the current virtual session. |
boolean |
connect(ResourceProfile profile)
Connect to a host (or resource) using the URI provided in the ResourceProfile}. |
void |
disconnect()
Disconnect from the currently connected resource. |
java.lang.String |
getHostDescription()
If the host has provided some information about itself, this method will return it. |
ResourceProfile |
getProfile()
Get the profile that was used to connect this transport. |
java.lang.String |
getProtocolDescription()
Return a short description of the protocol, for example "Telnet" or "SSH2" |
java.lang.Object |
getProvider()
Return the underlying provider of the terminal. |
java.lang.String |
getTransportDescription()
Return a short description of the transport, for example "Socket" or "SOCKS5" |
boolean |
isCloneVirtualSessionSupported()
Some transports may be capable of cloning the current virtual session (SSH for example). |
boolean |
isConnected()
Get if a connection is currently being maintained. |
boolean |
isConnectionPending()
Get if a connection is currently pending, e.g. |
| Method Detail |
public boolean connect(ResourceProfile profile)
throws ProfileException,
AuthenticationException
profile - profile
true if connected OK
ProfileException - on any connection error
AuthenticationException - if authentication fails
public void disconnect()
throws java.io.IOException
IOException will
be thrown.
java.io.IOException - on any disconnection errorpublic boolean isConnected()
public boolean isConnectionPending()
public java.lang.Object getProvider()
public boolean isCloneVirtualSessionSupported()
true for this
method.
public ResourceProfile getProfile()
null if disconnected.
public java.lang.String getHostDescription()
null will be returned.
public java.lang.String getProtocolDescription()
public java.lang.String getTransportDescription()
public ProfileTransport cloneVirtualSession(VirtualSession session)
throws java.lang.CloneNotSupportedException,
ProfileException
session - the virtual session that is going to manage this newly cloned connection
java.lang.CloneNotSupportedException - if cloning cannot take place
ProfileException - on any errors that may occur during cloning.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||