|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.mft.resources.FtpResourceDescriptor
public class FtpResourceDescriptor
FTP resource descriptor. Contains information about remote FTP connection.
Field Summary | |
---|---|
static java.lang.String[] |
ALL_TYPES
|
static java.lang.String |
EXPLICIT_SSL
|
static java.lang.String |
IMPLICIT_SSL
|
static java.lang.String |
REGULAR
|
Constructor Summary | |
---|---|
FtpResourceDescriptor()
Creates a new descriptor instance. |
|
FtpResourceDescriptor(FtpResourceDescriptor that)
|
|
FtpResourceDescriptor(java.lang.String name,
java.lang.String host,
int port,
java.lang.String connectionType,
java.lang.String username,
java.lang.String password,
boolean passive,
boolean usingCredentials,
long timeout,
java.lang.String key,
java.lang.String logDirectory,
java.lang.Long timeToLive)
|
Method Summary | |
---|---|
com.jscape.inet.mft.resources.RemoteResourceDescriptor |
copy()
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getConnectionType()
Returns connection type name. |
java.lang.String |
getHost()
Returns server hostname/IP. |
java.lang.String |
getKey()
|
java.lang.String |
getLogDirectory()
|
java.lang.String |
getName()
Returns resource name. |
boolean |
getPassive()
Returns FTP passie connection flag. |
java.lang.String |
getPassword()
Returns connection password. |
int |
getPort()
Returns server port. |
long |
getTimeout()
|
java.lang.Long |
getTimeToLive()
|
java.lang.String |
getUsername()
Returns username. |
boolean |
getUsingCredentials()
Returns use user credentials indicator. |
int |
hashCode()
|
boolean |
isExplicitSSL()
Checks if current connection type is set to "explicit SSL". |
boolean |
isImplicitSSL()
Checks if current connection type is set to "implicit SSL". |
boolean |
isRegular()
Checks if current connection type is set to "regular". |
void |
setConnectionType(java.lang.String value)
Sets connection type name. |
void |
setHost(java.lang.String value)
Sets server hostname/IP. |
void |
setKey(java.lang.String value)
|
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 |
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public FtpResourceDescriptor(java.lang.String name, java.lang.String host, int port, java.lang.String connectionType, java.lang.String username, java.lang.String password, boolean passive, boolean usingCredentials, long timeout, java.lang.String key, java.lang.String logDirectory, java.lang.Long timeToLive)
public FtpResourceDescriptor(FtpResourceDescriptor that)
public FtpResourceDescriptor()
Method Detail |
---|
public java.lang.String getName()
getName
in interface ResourceDescriptor
public void setName(java.lang.String value)
value
- the resource namepublic java.lang.String getHost()
public void setHost(java.lang.String value)
value
- the server hostname/IPpublic int getPort()
public void setPort(int value)
value
- the server portpublic 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
public void setUsername(java.lang.String value)
setUsername
in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor
value
- the usernamepublic boolean getUsingCredentials()
getUsingCredentials
in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor
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 credentials
value
- Indicates use current user credentialspublic java.lang.String getPassword()
getPassword
in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor
public void setPassword(java.lang.String value)
setPassword
in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor
value
- the connection passwordpublic long getTimeout()
public void setTimeout(long value)
public boolean getPassive()
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 java.lang.String getKey()
public void setKey(java.lang.String value)
public boolean isRegular()
true
if current connection type is "regular";
false
otherwisepublic boolean isExplicitSSL()
true
if current connection type is "explicit SSL";
false
otherwisepublic boolean isImplicitSSL()
true
if current connection type is "implicit SSL";
false
otherwisepublic java.lang.String getLogDirectory()
public void setLogDirectory(java.lang.String value)
public java.lang.Long getTimeToLive()
getTimeToLive
in interface ResourceDescriptor
public void setTimeToLive(java.lang.Long value)
public com.jscape.inet.mft.resources.RemoteResourceDescriptor copy()
copy
in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |