public interface FtpTarget extends DeployTarget
Modifier and Type | Interface and Description |
---|---|
static class |
FtpTarget.FtpProxyType
Definition of several ftp proxy types.
|
static class |
FtpTarget.FtpServerType
Definition of several ftp server types.
|
Modifier and Type | Field and Description |
---|---|
static String |
SYST_MVS
Deprecated.
since 4.2.34 - replaced by
FtpTarget.FtpServerType.MVS .getId() |
static String |
SYST_NT
Deprecated.
since 4.2.34 - replaced by
FtpTarget.FtpServerType.WIN .getId() |
static String |
SYST_OS400
Deprecated.
since 4.2.34 - replaced by
FtpTarget.FtpServerType.OS400 .getId() |
static String |
SYST_UNIX
Deprecated.
since 4.2.34 - replaced by
FtpTarget.FtpServerType.UNIX .getId() |
static String |
SYST_VMS
Deprecated.
since 4.2.34 - replaced by
FtpTarget.FtpServerType.VMS .getId() |
Modifier and Type | Method and Description |
---|---|
long |
getConnectionTimeout()
Get ftp connection timeout parameter in seconds. -1 means no timeout.
|
long |
getDataTimeout()
Get ftp data transfer timeout parameter in seconds. -1 means no timeout.
|
String |
getDefaultTimeFormat()
The default time format used to parse the directory listings provided by the ftp server.
|
String |
getFallbackTimeFormat()
The fallback time format used to parse the directory listings provided by the ftp server, if this cannot be
parsed with the
default time format
A null value means that a server type dependent default fallback will be used. |
String |
getFtpServerType()
There are some predefined types which may be returned:
SYST_UNIX
SYST_NT
SYST_OS400
SYST_MVS
SYST_VMS
A null value signals auto detection. |
String |
getHost()
The host of the ftp server
|
boolean |
getLocalActiveMode()
The client to server communication may be performed in local active or passive mode.
|
String |
getLogin()
The login name, used to log on the ftp server
|
String |
getPassword()
The password, used for login
|
String |
getProxyHost()
The host for ftp proxy.
|
String |
getProxyLogin()
The login used for ftp proxy.
|
String |
getProxyPassword()
The password used for ftp proxy login.
|
int |
getProxyPort()
The port for ftp proxy.
|
FtpTarget.FtpProxyType |
getProxyType()
The protocol used for ftp proxy.
|
Locale |
getServerLanguageLocale()
If the ftp server uses alphabetic month names in it's timestamps the short month names of this locale is
used for date parsing.
|
TimeZone |
getServerTimeZone()
This property is used to interpret file dates, for the format see
TimeZone . |
String |
getSourceDirectory()
The relative source directory, typically empty.
|
boolean |
getUseAsciiMode()
true if text files should be transfered in ASCII mode (default). |
boolean |
getUseProxy()
true if ftp proxy should be used, false otherwise (default). |
void |
setConnectionTimeout(Long value)
Set ftp connection timeout parameter in seconds. -1 means no timeout,
null means "use default
value". |
void |
setDataTimeout(Long value)
Set ftp data transfer timeout parameter in seconds. -1 means no timeout,
null means "use default
value". |
void |
setDefaultTimeFormat(String value)
Set the default time format used to parse the directory listings provided by the ftp server.
|
void |
setFallbackTimeFormat(String value)
Set the fallback time format used to parse the directory listings provided by the ftp server, if this cannot be
parsed with the
default time format . |
void |
setFtpServerType(String value)
Provide the ftp server type.
|
void |
setHost(String value)
Provide the host of the ftp server
|
void |
setLocalActiveMode(boolean value)
The client to server communication may be performed in local active (default) or passive mode.
|
void |
setLogin(String value)
Set the login name which is used to log on the ftp server
|
void |
setPassword(String value)
Set the password which is used for login
|
void |
setProxyHost(String value)
Set the host for ftp proxy.
|
void |
setProxyLogin(String value)
Set the login used for ftp proxy.
|
void |
setProxyPassword(String value)
Set the password used for ftp proxy login.
|
void |
setProxyPort(int value)
Set the port for ftp proxy.
|
void |
setProxyType(FtpTarget.FtpProxyType value)
Set the protocol used for ftp proxy.
|
void |
setServerLanguageLocale(Locale value)
If the ftp server uses alphabetic month names in it's timestamps the short month names of this locale is
used for date parsing.
|
void |
setServerTimeZone(TimeZone value)
This property is used to interpret file dates, for a list of valid id's see
TimeZone . |
void |
setSourceDirectory(String value)
Provide the source directory, relative to the schedule directory.
|
void |
setUseAsciiMode(boolean value)
Provide
true if text files should be transfered in ASCII mode (default). |
void |
setUseBlockTransferMode(boolean value)
Toggle between block transfer mode and stream mode (default).
|
void |
setUseProxy(boolean value)
Provide
true if ftp proxy should be used, false otherwise (default). |
boolean |
useBlockTransferMode()
Is block or stream mode (default) used?
|
checkParams, createWebServerConfiguration, getPath, getTargetType, getWebServerConfiguration, setPath
@Deprecated static final String SYST_UNIX
@Deprecated static final String SYST_NT
@Deprecated static final String SYST_OS400
@Deprecated static final String SYST_VMS
@Deprecated static final String SYST_MVS
String getHost()
void setHost(String value)
value
- the host of the ftp serverString getLogin()
void setLogin(String value)
value
- the login name which is used to log on the ftp serverString getPassword()
void setPassword(String value)
value
- the password which is used for login@Nullable String getFtpServerType()
null
value signals auto detection.org.apache.commons.net.ftp.FTPFileEntryParser
and
org.apache.commons.net.ftp.Configurable
null
for auto detection of ftp server type, a predifined type constant (SYST_*) or a
full qualified class namesetFtpServerType(String)
void setFtpServerType(@Nullable String value)
value
- null
for auto detection of ftp server type or a
FtpServerType
using getId()
.FtpTarget.FtpServerType.getId()
,
getFtpServerType()
boolean getLocalActiveMode()
true
for local active mode (default), false
for local passive modesetLocalActiveMode(boolean)
void setLocalActiveMode(boolean value)
value
- use true
for local active mode, false
for local passive modegetLocalActiveMode()
String getSourceDirectory()
void setSourceDirectory(String value)
value
- a directory relative to the schedule directory@Nullable TimeZone getServerTimeZone()
TimeZone
.null
value means that the time zone of the FirstSpirit server is used.setServerTimeZone(java.util.TimeZone)
void setServerTimeZone(TimeZone value)
TimeZone
.null
value means that the time zone of the FirstSpirit server is used.getServerTimeZone()
Locale getServerLanguageLocale()
setServerLanguageLocale(java.util.Locale)
void setServerLanguageLocale(Locale value)
getServerLanguageLocale()
String getDefaultTimeFormat()
null
value means that a default date format of the locale en_US is used.setDefaultTimeFormat(String)
void setDefaultTimeFormat(String value)
null
value means that a default date format of the locale en_US is used.getDefaultTimeFormat()
String getFallbackTimeFormat()
default time format
A null
value means that a server type dependent default fallback will be used.setFallbackTimeFormat(String)
void setFallbackTimeFormat(String value)
default time format
. This is usally the case for 'recent dates',
which omit the year, e.g. "Mar 1 12:04"."MMM d hh24:mm|Jan|Feb|Mär|Apr|Mai|Jun|Jul|Aug|Sep|Okt|Nov|Dez"
null
value means that no fallback will be usedgetFallbackTimeFormat()
boolean getUseAsciiMode()
true
if text files should be transfered in ASCII mode (default).setUseAsciiMode(boolean)
void setUseAsciiMode(boolean value)
true
if text files should be transfered in ASCII mode (default).value
- true
if text files should be transfered in ASCII mode (default)getUseAsciiMode()
boolean getUseProxy()
true
if ftp proxy should be used, false
otherwise (default).void setUseProxy(boolean value)
true
if ftp proxy should be used, false
otherwise (default).value
- true
if ftp proxy should be used, false
otherwise (default)String getProxyHost()
void setProxyHost(String value)
value
- the host for ftp proxyint getProxyPort()
void setProxyPort(int value)
value
- the port for ftp proxyFtpTarget.FtpProxyType getProxyType()
void setProxyType(FtpTarget.FtpProxyType value)
value
- the protocol used for ftp proxyString getProxyLogin()
void setProxyLogin(String value)
value
- the login used for ftp proxyString getProxyPassword()
void setProxyPassword(String value)
value
- the password used for ftp proxy loginvoid setConnectionTimeout(@Nullable Long value)
null
means "use default
value". Default value is set via fs-server.conf entry FTP_CONNECT_TIMEOUT.getConnectionTimeout()
long getConnectionTimeout()
setConnectionTimeout(Long)
void setDataTimeout(@Nullable Long value)
null
means "use default
value". Default value is set via fs-server.conf entry FTP_DATA_TIMEOUT.getDataTimeout()
long getDataTimeout()
setDataTimeout(Long)
boolean useBlockTransferMode()
true
for block transfer mode, false
for stream mode (default).setUseBlockTransferMode(boolean)
void setUseBlockTransferMode(boolean value)
value
- true
to switch to block transfer mode, false
for stream mode (default).useBlockTransferMode()
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500