public class FtpResourceDescriptor extends java.lang.Object implements com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>
| Modifier and Type | Class and Description |
|---|---|
static interface |
FtpResourceDescriptor.Handler |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
ALL_TYPES |
static java.util.Map<java.lang.String,java.lang.Integer> |
DEFAULT_PORTS |
static java.lang.String |
EXPLICIT_SSL |
static java.lang.String |
IMPLICIT_SSL |
static java.util.Map<java.lang.String,java.lang.Boolean> |
KEY_USAGE |
static java.lang.String |
REGULAR |
| Constructor and Description |
|---|
FtpResourceDescriptor()
Creates a new descriptor instance.
|
FtpResourceDescriptor(FtpResourceDescriptor that) |
FtpResourceDescriptor(java.lang.String name,
java.lang.String host,
int port,
long timeout,
boolean tcpNoDelayEnabled,
java.lang.String connectionType,
com.jscape.inet.vfs.KeyProvider keyProvider,
com.jscape.inet.vfs.KeyProvider hostKeyProvider,
java.lang.String username,
java.lang.String password,
boolean usingCredentials,
boolean passive,
com.jscape.inet.mft.RemoteDirectory remoteDirectory,
java.lang.String logDirectory,
java.lang.Long timeToLive,
java.lang.String[] tags,
long creationDate,
int version) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(FtpResourceDescriptor.Handler handler) |
FtpResourceDescriptor |
copy() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getConnectionType()
Returns connection type name.
|
long |
getCreationDate() |
java.lang.String |
getHost()
Returns server hostname/IP.
|
com.jscape.inet.vfs.KeyProvider |
getHostKeyProvider()
Returns a host key provider instance.
|
com.jscape.inet.vfs.KeyProvider |
getKeyProvider()
Returns a key provider instance.
|
java.lang.String |
getLogDirectory() |
java.lang.String |
getName()
Returns resource name.
|
java.lang.String |
getPassword()
Returns connection password.
|
int |
getPort()
Returns server port.
|
java.lang.String |
getProtocol() |
com.jscape.inet.mft.RemoteDirectory |
getRemoteDirectory() |
java.lang.String[] |
getTags() |
long |
getTimeout() |
java.lang.Long |
getTimeToLive() |
java.lang.String |
getUsername()
Returns username.
|
int |
getVersion() |
int |
hashCode() |
boolean |
isPassive()
Returns FTP passie connection flag.
|
boolean |
isTcpNoDelayEnabled() |
boolean |
isUsingCredentials()
Returns use user credentials indicator.
|
void |
setConnectionType(java.lang.String value)
Sets connection type name.
|
void |
setCreationDate(long value) |
void |
setHost(java.lang.String value)
Sets server hostname/IP.
|
void |
setHostKeyProvider(com.jscape.inet.vfs.KeyProvider value)
Sets a host key provider instance.
|
void |
setKey(java.lang.String value) |
void |
setKeyProvider(com.jscape.inet.vfs.KeyProvider value)
Sets a key provider instance.
|
void |
setLogDirectory(java.lang.String value) |
void |
setName(java.lang.String value)
Sets resource name.
|
void |
setPassive(boolean value)
Sets FTP passive connection flag.
|
void |
setPassword(java.lang.String value)
Sets connection password.
|
void |
setPort(int value)
Sets server port.
|
void |
setRemoteDirectory(com.jscape.inet.mft.RemoteDirectory value) |
void |
setTags(java.lang.String[] value) |
void |
setTcpNoDelayEnabled(boolean value) |
void |
setTimeout(long value) |
void |
setTimeToLive(java.lang.Long value) |
void |
setUsername(java.lang.String value)
Sets username.
|
void |
setUsingCredentials(boolean value)
Sets use user credentials.
|
void |
setVersion(int value) |
java.lang.String |
toString() |
public static final java.lang.String REGULAR
public static final java.lang.String EXPLICIT_SSL
public static final java.lang.String IMPLICIT_SSL
public static final java.lang.String[] ALL_TYPES
public static final java.util.Map<java.lang.String,java.lang.Integer> DEFAULT_PORTS
public static final java.util.Map<java.lang.String,java.lang.Boolean> KEY_USAGE
public FtpResourceDescriptor(java.lang.String name,
java.lang.String host,
int port,
long timeout,
boolean tcpNoDelayEnabled,
java.lang.String connectionType,
com.jscape.inet.vfs.KeyProvider keyProvider,
com.jscape.inet.vfs.KeyProvider hostKeyProvider,
java.lang.String username,
java.lang.String password,
boolean usingCredentials,
boolean passive,
com.jscape.inet.mft.RemoteDirectory remoteDirectory,
java.lang.String logDirectory,
java.lang.Long timeToLive,
java.lang.String[] tags,
long creationDate,
int version)
public FtpResourceDescriptor(FtpResourceDescriptor that)
public FtpResourceDescriptor()
public java.lang.String getName()
getName in interface ResourceDescriptorpublic void setName(java.lang.String value)
value - the resource namepublic java.lang.String getHost()
getHost in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>public java.lang.String getProtocol()
getProtocol in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>public void setHost(java.lang.String value)
value - the server hostname/IPpublic int getPort()
public void setPort(int value)
value - the server portpublic long getTimeout()
public void setTimeout(long value)
public boolean isTcpNoDelayEnabled()
public void setTcpNoDelayEnabled(boolean value)
public java.lang.String getConnectionType()
public void setConnectionType(java.lang.String value)
value - the connection type namepublic java.lang.String getUsername()
getUsername in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>public void setUsername(java.lang.String value)
setUsername in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>value - the usernamepublic java.lang.String getPassword()
getPassword in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>public void setPassword(java.lang.String value)
setPassword in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>value - the connection passwordpublic com.jscape.inet.vfs.KeyProvider getKeyProvider()
public void setKeyProvider(com.jscape.inet.vfs.KeyProvider value)
value - a key provider instancepublic void setKey(java.lang.String value)
public com.jscape.inet.vfs.KeyProvider getHostKeyProvider()
public void setHostKeyProvider(com.jscape.inet.vfs.KeyProvider value)
value - a host key provider instancepublic boolean isUsingCredentials()
isUsingCredentials in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>true user will authenticate to FTP resource using
current user credentials, false otherwisepublic void setUsingCredentials(boolean value)
true user will authenticate
to FTP resource with the current user credentialsvalue - Indicates use current user credentialspublic boolean isPassive()
true if data connection should be opened in FTP passive mode;
false otherwisepublic void setPassive(boolean value)
value - if true data connection will be opened in FTP passive modepublic com.jscape.inet.mft.RemoteDirectory getRemoteDirectory()
getRemoteDirectory in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>public void setRemoteDirectory(com.jscape.inet.mft.RemoteDirectory value)
setRemoteDirectory in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>public java.lang.String getLogDirectory()
public void setLogDirectory(java.lang.String value)
public java.lang.Long getTimeToLive()
getTimeToLive in interface ResourceDescriptorpublic void setTimeToLive(java.lang.Long value)
public java.lang.String[] getTags()
getTags in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>public void setTags(java.lang.String[] value)
setTags in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>public long getCreationDate()
getCreationDate in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>public void setCreationDate(long value)
setCreationDate in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>public int getVersion()
getVersion in interface com.jscape.util.db.IntVersionedpublic void setVersion(int value)
setVersion in interface com.jscape.util.db.IntVersionedpublic FtpResourceDescriptor copy()
copy in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>public void accept(FtpResourceDescriptor.Handler handler) throws java.lang.Exception
accept in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>java.lang.Exceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2023. Redwood Software Inc. All rights reserved.