|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ProfileTransport
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. |
boolean |
isProtocolSecure()
Is the protocol secure? |
boolean |
isTransportSecure()
Is this transport secure? |
| Method Detail |
|---|
boolean connect(ResourceProfile profile)
throws ProfileException,
AuthenticationException
profile - profile
true if connected OK
ProfileException - on any connection error
AuthenticationException - if authentication fails
void disconnect()
throws java.io.IOException
IOException will
be thrown.
java.io.IOException - on any disconnection errorboolean isConnected()
boolean isConnectionPending()
java.lang.Object getProvider()
boolean isCloneVirtualSessionSupported()
true for this
method.
ResourceProfile getProfile()
null if disconnected.
java.lang.String getHostDescription()
null will be returned.
java.lang.String getProtocolDescription()
boolean isProtocolSecure()
java.lang.String getTransportDescription()
boolean isTransportSecure()
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 | ||||||||