|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sshtools.terminal.schemes.exe.NativeTerminalProtocolTransport
public class NativeTerminalProtocolTransport
Title:
Description:
Copyright: Copyright (c) 2006
Company:
| Constructor Summary | |
|---|---|
NativeTerminalProtocolTransport()
|
|
| 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. |
int |
getDefaultEOL()
Return the default line edings type. |
java.io.InputStream |
getErrorInputStream()
Return an InputStream from which error data can be read from the host. |
java.lang.String |
getHostDescription()
If the host has provided some information about itself, this method will return it. |
java.io.InputStream |
getInputStream()
Return an InputStream from which data from the host can be read |
java.io.OutputStream |
getOutputStream()
Return an OutputStream on to which the emulation can write data back to the host |
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" |
VirtualSession |
getVirtualSession()
Get the virtual session for this connection |
void |
init(VirtualSession session)
Initialise the transport. |
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? |
void |
setScreenSize(int w,
int h)
Send a request to set the screen size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NativeTerminalProtocolTransport()
| Method Detail |
|---|
public ProfileTransport cloneVirtualSession(VirtualSession session)
throws java.lang.CloneNotSupportedException,
ProfileException
cloneVirtualSession in interface ProfileTransportsession - 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.
public boolean connect(ResourceProfile profile)
throws ProfileException,
AuthenticationException
connect in interface ProfileTransportprofile - profile
true if connected OK
ProfileException - on any connection error
AuthenticationException - if authentication fails
public void disconnect()
throws java.io.IOException
disconnect in interface ProfileTransportjava.io.IOException - on any disconnection errorpublic int getDefaultEOL()
Return the default line edings type.
getDefaultEOL in interface TerminalProtocolTranportpublic java.io.InputStream getErrorInputStream()
getErrorInputStream in interface TerminalProtocolTranportpublic java.lang.String getHostDescription()
getHostDescription in interface ProfileTransportpublic java.io.InputStream getInputStream()
TerminalProtocolTranport
getInputStream in interface TerminalProtocolTranportpublic java.io.OutputStream getOutputStream()
TerminalProtocolTranport
getOutputStream in interface TerminalProtocolTranportpublic ResourceProfile getProfile()
getProfile in interface ProfileTransportpublic java.lang.String getProtocolDescription()
ProfileTransport
getProtocolDescription in interface ProfileTransportpublic java.lang.Object getProvider()
getProvider in interface ProfileTransportpublic java.lang.String getTransportDescription()
ProfileTransport
getTransportDescription in interface ProfileTransportpublic VirtualSession getVirtualSession()
VirtualSessionTransport
getVirtualSession in interface VirtualSessionTransportpublic void init(VirtualSession session)
init in interface VirtualSessionTransportsession - virtual sessionpublic boolean isCloneVirtualSessionSupported()
isCloneVirtualSessionSupported in interface ProfileTransportpublic boolean isConnected()
ProfileTransport
isConnected in interface ProfileTransportisConnected in interface VirtualSessionTransportpublic boolean isConnectionPending()
ProfileTransport
isConnectionPending in interface ProfileTransportisConnectionPending in interface VirtualSessionTransportpublic boolean isProtocolSecure()
ProfileTransport
isProtocolSecure in interface ProfileTransportpublic boolean isTransportSecure()
ProfileTransport
isTransportSecure in interface ProfileTransport
public void setScreenSize(int w,
int h)
setScreenSize in interface TerminalProtocolTranportw - new widthh - new height
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||