Java Doc for ConnectionContext.java in » Net » edtftpj » com » enterprisedt » net » ftp » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Get class that holds fragments of server messages that indicate a
directory is empty. New messages can be added.
The fragments are used when it is necessary to examine the message
returned by a server to see if it is saying a directory is empty.
If an FTP server is returning a different message that still clearly
indicates a directory is empty, use this property to add a new server
fragment to the repository via the add method. It would be helpful to
email support at enterprisedt dot com to inform us of the message so
it can be added to the next build.
messages class
Get class that holds fragments of server messages that indicate a file was
not found. New messages can be added.
The fragments are used when it is necessary to examine the message
returned by a server to see if it is saying a file was not found.
If an FTP server is returning a different message that still clearly
indicates a file was not found, use this property to add a new server
fragment to the repository via the add method. It would be helpful to
email support at enterprisedt dot com to inform us of the message so
it can be added to the next build.
messages class
getListenOnAllInterfaces
public synchronized boolean getListenOnAllInterfaces()(Code)
Are we listening on all interfaces in active mode, which is the default?
true if listening on all interfaces, false if listening just on the control interface
getParserLocales
public synchronized Locale[] getParserLocales()(Code)
Get class that holds fragments of server messages that indicate a transfer completed.
New messages can be added.
The fragments are used when it is necessary to examine the message
returned by a server to see if it is saying a transfer completed.
If an FTP server is returning a different message that still clearly
indicates a transfer failed, use this property to add a new server
fragment to the repository via the add method. It would be helpful to
email support at enterprisedt dot com to inform us of the message so
it can be added to the next build.
messages class
getTransferNotifyInterval
public synchronized int getTransferNotifyInterval()(Code)
Get the interval used for progress notification of transfers.
number of bytes between each notification.
Determine if auto login is switched on
true if auto login
isAutoPassiveIPSubstitution
public synchronized boolean isAutoPassiveIPSubstitution()(Code)
Is automatic substitution of the remote host IP set to
be on for passive mode connections?
true if set on, false otherwise
isDeleteOnFailure
public synchronized boolean isDeleteOnFailure()(Code)
If true, delete partially written files when exceptions are thrown
during a download
true if delete local file on error
isStrictReturnCodes
public synchronized boolean isStrictReturnCodes()(Code)
Determine if strict checking of return codes is switched on. If it is
(the default), all return codes must exactly match the expected code.
If strict checking is off, only the first digit must match.
true if strict return code checking, false if non-strict.
setActiveIPAddress
public synchronized void setActiveIPAddress(String activeIP)(Code)
We can force PORT to send a fixed IP address, which can be useful with certain
NAT configurations.
Parameters: activeIP - IP address to force, in 192.168.1.0 form or in IPV6 form, e.g.1080::8:800:200C:417A
setActivePortRange
public synchronized void setActivePortRange(int lowest, int highest)(Code)
Force a certain range of ports to be used in active mode. This is
generally so that a port range can be configured in a firewall. Note
that if lowest == highest, a single port will be used. This works well
for uploads, but downloads generally require multiple ports, as most
servers fail to create a connection repeatedly for the same port.
Parameters: lowest - Lower limit of range. Parameters: highest - Upper limit of range.
public synchronized void setControlEncoding(String controlEncoding)(Code)
Set the encoding used for control channel messages
Parameters: controlEncoding - The controlEncoding to set, which is the name of a Charset
setDeleteOnFailure
public synchronized void setDeleteOnFailure(boolean deleteOnFailure)(Code)
Switch on or off the automatic deletion of partially written files
that are left when an exception is thrown during a download
Parameters: deleteOnFailure - true if delete when a failure occurs
setDetectContentType
public synchronized void setDetectContentType(boolean detectContentType)(Code)
Set autodetect of filetypes on or off. If on, the transfer mode is
switched from ASCII to binary and vice versa depending on the extension
of the file. After the transfer, the mode is always returned to what it
was before the transfer was performed. The default is off.
If the filetype is unknown, the transfer mode is unchanged
Parameters: detectContentType - true if detecting transfer mode, false if not
setListenOnAllInterfaces
public synchronized void setListenOnAllInterfaces(boolean listenOnAll)(Code)
Listen on all interfaces for active mode transfers (the default).
Parameters: listenOnAll - true if listen on all interfaces, false to listen on the control interface
setParserLocales
public synchronized void setParserLocales(Locale[] locales)(Code)
Set the list of locales to be tried for date parsing of dir listings
Parameters: locales - locales to use
setPassword
public synchronized void setPassword(String password)(Code)
setRemoteHost
public synchronized void setRemoteHost(String remoteHost)(Code)
setRemotePort
public synchronized void setRemotePort(int remotePort)(Code)
setStrictReturnCodes
public synchronized void setStrictReturnCodes(boolean strict)(Code)
Set strict checking of FTP return codes. If strict
checking is on (the default) code must exactly match the expected
code. If strict checking is off, only the first digit must match.
Parameters: strict - true for strict checking, false for loose checking
setTimeout
public synchronized void setTimeout(int timeout)(Code)