Package org.globus.ftp
Class GridFTPSession
java.lang.Object
org.globus.ftp.Session
org.globus.ftp.GridFTPSession
- Direct Known Subclasses:
TransferParams
Represents parameters of an FTP session between a client and a server.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
static final int
Indicates Extended Block Mode for data transfer.int
static final int
Indicates that the data channel will carry the raw data of the file transfer, with no security applied.static final int
Indicates that the data will be confidentiality protected (Currently, not support by GridFTP servers).static final int
Indicates that the data will be integrity and confidentiality protected.static final int
Indicates that the data will be integrity protected.static final int
server in extended active modestatic final int
server in extended passive modeThis concerns local server.int
Fields inherited from class org.globus.ftp.Session
authorized, DEFAULT_MAX_WAIT, DEFAULT_WAIT_DELAY, featureList, maxWait, MODE_BLOCK, MODE_STREAM, protectionBufferSize, SERVER_ACTIVE, SERVER_DEFAULT, SERVER_PASSIVE, serverAddress, serverMode, transferMode, transferType, TYPE_ASCII, TYPE_EBCDIC, TYPE_IMAGE, TYPE_LOCAL, waitDelay
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
compareServerMode
(Session other) checks that active / passive sides are correctly setvoid
In addition to the inherited functionality, this method also (1) checks if extended active / passive server modes are set correctly, (2) checks if Mode E is needed, and if so, checks whether it has been set.boolean
Methods inherited from class org.globus.ftp.Session
compareTransferParams
-
Field Details
-
MODE_EBLOCK
public static final int MODE_EBLOCKIndicates Extended Block Mode for data transfer. Used withGridFTPClient.setMode()
.- See Also:
-
SERVER_EPAS
public static final int SERVER_EPASserver in extended passive mode- See Also:
-
SERVER_EACT
public static final int SERVER_EACTserver in extended active mode- See Also:
-
PROTECTION_CLEAR
public static final int PROTECTION_CLEARIndicates that the data channel will carry the raw data of the file transfer, with no security applied. Used withsetDataChannelProtection()
.- See Also:
-
PROTECTION_SAFE
public static final int PROTECTION_SAFEIndicates that the data will be integrity protected. Used withsetDataChannelProtection()
.- See Also:
-
PROTECTION_CONFIDENTIAL
public static final int PROTECTION_CONFIDENTIALIndicates that the data will be confidentiality protected (Currently, not support by GridFTP servers). Used withsetDataChannelProtection()
.- See Also:
-
PROTECTION_PRIVATE
public static final int PROTECTION_PRIVATEIndicates that the data will be integrity and confidentiality protected. Used withsetDataChannelProtection()
.- See Also:
-
dataChannelAuthentication
-
dataChannelProtection
public int dataChannelProtection -
credential
-
parallel
public int parallel -
TCPBufferSize
public int TCPBufferSize -
serverAddressList
This concerns local server. if in SERVER_EPAS mode, the server listener socket list is stored here. If in SERVER_PASV mode, the server listener sockets is stored in serverAddress variable.
-
-
Constructor Details
-
GridFTPSession
public GridFTPSession()Sets maxWait to twice the time of DEFAULT_MAX_WAIT
-
-
Method Details
-
matches
In addition to the inherited functionality, this method also (1) checks if extended active / passive server modes are set correctly, (2) checks if Mode E is needed, and if so, checks whether it has been set. If not, ClientException is thrown.- Overrides:
matches
in classSession
- Throws:
ClientException
- if sessions do not match
-
compareServerMode
Description copied from class:Session
checks that active / passive sides are correctly set- Overrides:
compareServerMode
in classSession
- Throws:
ClientException
-
needsGridFTP
public boolean needsGridFTP()- Returns:
- true if this session requires GridFTP extensions; false if it only requires vanilla FTP.
-