|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ssh.sft.SftLib
com.ssh.sft.SftBase
com.ssh.sft.ObjectBase
com.ssh.sft.Session
An ongoing SFTP session in a remote or local host. Each Session object represents a connection to an SFTP server or to a virtual server that can be used to access the local filesystem. There may be several sessions to a single server, and each session supports multiple concurrent operations.
| Field Summary | |
static int |
SSH_SFT_DIR_RECURSIVE
|
static int |
SSH_SFT_HASH_MAX_BLOCK_SIZE
|
static int |
SSH_SFT_HASH_MAX_ITERATIONS
|
static int |
SSH_SFT_HASH_MIN_BLOCK_SIZE
|
static int |
SSH_SFT_REQUEST_MAX_NUM
|
static int |
SSH_SFT_REQUEST_MAX_SIZE
|
| Method Summary | |
void |
abort()
Aborts the session. |
void |
close()
Releases the resources used by this object. |
byte[] |
getExtensionData(String type)
Returns SFTP protocol extension data that the server has sent. |
File |
getFile(String path)
Returns a File object representing the file at the named path. |
Location |
getLocation(String path)
Returns a Location representing the named path. |
long |
getProtocolVersion()
Returns the version of the SFTP protocol that is used in this session for communicating with the SFTP server. |
URI |
getURI()
Returns the URI for this session's SFTP server. |
boolean |
isClosed()
Tests if this object has been closed. |
boolean |
isConnected()
|
void |
resume()
Resumes the session. |
void |
setFileCopyPrefix(String prefix)
|
void |
setForceLowerCase(boolean force)
|
void |
setIncrementalChecksums()
|
void |
suspend()
Suspends the session. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SSH_SFT_REQUEST_MAX_SIZE
public static final int SSH_SFT_REQUEST_MAX_NUM
public static final int SSH_SFT_HASH_MAX_ITERATIONS
public static final int SSH_SFT_HASH_MIN_BLOCK_SIZE
public static final int SSH_SFT_HASH_MAX_BLOCK_SIZE
public static final int SSH_SFT_DIR_RECURSIVE
| Method Detail |
public long getProtocolVersion()
public byte[] getExtensionData(String type)
throws SftException
type - the type of the data to get
SftExceptionpublic Location getLocation(String path)
path - the path to access
public File getFile(String path)
throws NoSuchFileException,
SftException
path - the path to access
NoSuchFileException - if no file exists at the named path
SftExceptionpublic void suspend()
suspend() is called. If
the session is already suspended, invoking this method has no
effect.
public void resume()
public void abort()
AbortedException.
public void setForceLowerCase(boolean force)
public void setFileCopyPrefix(String prefix)
public void setIncrementalChecksums()
public URI getURI()
public boolean isConnected()
public void close()
throws SftException
IllegalStateException.
SftExceptionpublic boolean isClosed()
ObjectBase.close() has been called on this object,
false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||