GridFTPSessionpublic class Session extends Object
| Modifier and Type | Field | Description |
|---|---|---|
boolean |
authorized |
|
static int |
DEFAULT_MAX_WAIT |
|
static int |
DEFAULT_WAIT_DELAY |
|
FeatureList |
featureList |
|
int |
maxWait |
This variable directly affects only the client.
|
static int |
MODE_BLOCK |
|
static int |
MODE_STREAM |
|
int |
protectionBufferSize |
|
static int |
SERVER_ACTIVE |
|
static int |
SERVER_DEFAULT |
|
static int |
SERVER_PASSIVE |
|
HostPort |
serverAddress |
|
int |
serverMode |
Can be SERVER_PASSIVE, SERVER_ACTIVE, or SERVER_DEFAULT.
|
int |
transferMode |
|
int |
transferType |
|
static int |
TYPE_ASCII |
|
static int |
TYPE_EBCDIC |
|
static int |
TYPE_IMAGE |
|
static int |
TYPE_LOCAL |
|
int |
waitDelay |
This variable directly affects only the client.
|
| Constructor | Description |
|---|---|
Session() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
compareServerMode(Session other) |
checks that active / passive sides are correctly set
|
protected void |
compareTransferParams(Session other) |
defines how to compare parameters: authorized, PBSZ, MODE, TYPE
|
void |
matches(Session other) |
Ensures that settings of 2 servers match each other so that the servers
are capable of performing a transfer between themselves.
|
public static final int TYPE_IMAGE
public static final int TYPE_ASCII
public static final int TYPE_LOCAL
public static final int TYPE_EBCDIC
public static final int MODE_STREAM
public static final int MODE_BLOCK
public static final int SERVER_PASSIVE
public static final int SERVER_ACTIVE
public static final int SERVER_DEFAULT
public int transferMode
public int transferType
public int serverMode
public int protectionBufferSize
public boolean authorized
public FeatureList featureList
public HostPort serverAddress
public static final int DEFAULT_MAX_WAIT
public static final int DEFAULT_WAIT_DELAY
public int maxWait
public int waitDelay
public void matches(Session other) throws ClientException
ClientException - if sessions do not matchprotected void compareTransferParams(Session other) throws ClientException
ClientExceptionprotected void compareServerMode(Session other) throws ClientException
ClientExceptionCopyright © 2018. All rights reserved.