|
JSCAPE MFT Server | |||||||||
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.
Nested Class Summary | |
---|---|
static interface |
FtpResourceDescriptor.Handler
|
Nested classes/interfaces inherited from interface com.jscape.inet.mft.resources.RemoteResourceDescriptor |
---|
com.jscape.inet.mft.resources.RemoteResourceDescriptor.HandlerBase |
Field Summary | |
---|---|
static java.lang.String[] |
ALL_TYPES
|
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 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,
com.jscape.inet.mft.KeyProvider keyProvider,
java.lang.String logDirectory,
java.lang.Long timeToLive,
com.jscape.inet.mft.RemoteDirectory remoteDirectory)
|
Method Summary | |
---|---|
void |
accept(FtpResourceDescriptor.Handler handler)
|
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. |
com.jscape.inet.mft.KeyProvider |
getKeyProvider()
|
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. |
com.jscape.inet.mft.RemoteDirectory |
getRemoteDirectory()
|
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 |
setKeyProvider(com.jscape.inet.mft.KeyProvider 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 |
setRemoteDirectory(com.jscape.inet.mft.RemoteDirectory 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. |
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
public static final java.util.Map<java.lang.String,java.lang.Boolean> KEY_USAGE
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, com.jscape.inet.mft.KeyProvider keyProvider, java.lang.String logDirectory, java.lang.Long timeToLive, com.jscape.inet.mft.RemoteDirectory remoteDirectory)
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 boolean getUsingCredentials()
getUsingCredentials
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 credentials
value
- Indicates use current user credentialspublic 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 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 void setKey(java.lang.String value)
public com.jscape.inet.mft.KeyProvider getKeyProvider()
public void setKeyProvider(com.jscape.inet.mft.KeyProvider value)
public 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.RemoteDirectory getRemoteDirectory()
getRemoteDirectory
in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>
public void setRemoteDirectory(com.jscape.inet.mft.RemoteDirectory value)
public com.jscape.inet.mft.resources.RemoteResourceDescriptor copy()
copy
in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>
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 void accept(FtpResourceDescriptor.Handler handler) throws java.lang.Exception
accept
in interface com.jscape.inet.mft.resources.RemoteResourceDescriptor<FtpResourceDescriptor.Handler>
java.lang.Exception
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
|
JSCAPE MFT Server | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |