|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.ftp.Session
Represents parameters of an FTP session between a client and a server. For
instance, a third party transfer will be represented by two sessions: one
between the client and the server A, and the other between the client and the
server B.
Public static variables are interpreted as follows:
Field Summary | |
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 Summary | |
Session()
|
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
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
Constructor Detail |
public Session()
Method Detail |
public void matches(Session other) throws ClientException
ClientException
- if sessions do not matchprotected void compareTransferParams(Session other) throws ClientException
ClientException
protected void compareServerMode(Session other) throws ClientException
ClientException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |