Class FtpServiceDescriptor
- java.lang.Object
-
- com.jscape.inet.mft.management.descriptors.Configuration
-
- com.jscape.inet.mft.management.descriptors.ServiceDescriptor
-
- com.jscape.inet.mft.management.descriptors.TransportServiceDescriptor
-
- com.jscape.inet.mft.management.descriptors.FtpServiceDescriptor
-
- All Implemented Interfaces:
com.jscape.util.db.IntVersioned,java.io.Serializable
public class FtpServiceDescriptor extends TransportServiceDescriptor
FTP service descriptor. The service described by this descriptor takes responsibility for providing FTP server access.- Author:
- Alex Usun
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFtpServiceDescriptor.ServiceType
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_PORTstatic java.util.Map<java.lang.String,java.lang.Integer>DEFAULT_PORTSstatic java.lang.StringDEFAULT_TYPEstatic java.lang.StringEXPLICIT_SSLExplicit SSL FTP service.static java.lang.StringFORCED_SSLForced explicit SSL FTP service.static java.lang.StringIMPLICIT_SSLimplicit SSL FTP service.static java.util.Map<java.lang.String,java.lang.Boolean>KEY_USAGEstatic java.lang.StringREGULARRegular FTP service.static java.lang.String[]SUPPORTED_TYPES
-
Constructor Summary
Constructors Constructor Description FtpServiceDescriptor()This constructor is used by serialization sub-system and is not intended to use directly in client code.FtpServiceDescriptor(FtpServiceDescriptor that)Copy constructor.FtpServiceDescriptor(java.lang.String host, int port, java.lang.String type, java.lang.String keyAlias)Creates a new descriptor instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Configurationcopy()booleanequals(java.lang.Object o)booleanexactEquals(TransportServiceDescriptor o)java.lang.StringgetHost()Returns binding host/IP.java.lang.StringgetKeyAlias()Returns SSL key alias.intgetPort()Returns binding port.java.lang.StringgetType()Returns service type.inthashCode()voidsetHost(java.lang.String value)Sets binding host/IP.voidsetKeyAlias(java.lang.String value)Sets SSL key alias.voidsetPort(int value)Sets binding port.voidsetType(java.lang.String value)Sets service type.java.lang.StringtoString()-
Methods inherited from class com.jscape.inet.mft.management.descriptors.Configuration
getVersion, setVersion
-
-
-
-
Field Detail
-
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
-
REGULAR
public static final java.lang.String REGULAR
Regular FTP service.- See Also:
- Constant Field Values
-
EXPLICIT_SSL
public static final java.lang.String EXPLICIT_SSL
Explicit SSL FTP service.- See Also:
- Constant Field Values
-
FORCED_SSL
public static final java.lang.String FORCED_SSL
Forced explicit SSL FTP service.- See Also:
- Constant Field Values
-
IMPLICIT_SSL
public static final java.lang.String IMPLICIT_SSL
implicit SSL FTP service.- See Also:
- Constant Field Values
-
DEFAULT_TYPE
public static final java.lang.String DEFAULT_TYPE
- See Also:
- Constant Field Values
-
SUPPORTED_TYPES
public static final java.lang.String[] SUPPORTED_TYPES
-
DEFAULT_PORTS
public static final java.util.Map<java.lang.String,java.lang.Integer> DEFAULT_PORTS
-
KEY_USAGE
public static final java.util.Map<java.lang.String,java.lang.Boolean> KEY_USAGE
-
-
Constructor Detail
-
FtpServiceDescriptor
public FtpServiceDescriptor(java.lang.String host, int port, java.lang.String type, java.lang.String keyAlias)Creates a new descriptor instance.- Parameters:
host- binding host/IPport- binding porttype- service typekeyAlias- SSL key alias
-
FtpServiceDescriptor
public FtpServiceDescriptor(FtpServiceDescriptor that)
Copy constructor.- Parameters:
that- an instance to copy
-
FtpServiceDescriptor
public FtpServiceDescriptor()
This constructor is used by serialization sub-system and is not intended to use directly in client code.
-
-
Method Detail
-
getHost
public java.lang.String getHost()
Returns binding host/IP.- Returns:
- binding host/IP
-
setHost
public void setHost(java.lang.String value)
Sets binding host/IP.- Parameters:
value- binding host/IP
-
getPort
public int getPort()
Returns binding port.- Returns:
- binding port
-
setPort
public void setPort(int value)
Sets binding port.- Parameters:
value- binding port
-
getType
public java.lang.String getType()
Returns service type.- Returns:
- service type
-
setType
public void setType(java.lang.String value)
Sets service type.- Parameters:
value- service type
-
getKeyAlias
public java.lang.String getKeyAlias()
Returns SSL key alias.- Returns:
- SSL key alias
-
setKeyAlias
public void setKeyAlias(java.lang.String value)
Sets SSL key alias.- Parameters:
value- SSL key alias
-
copy
public Configuration copy()
- Specified by:
copyin classConfiguration
-
exactEquals
public boolean exactEquals(TransportServiceDescriptor o)
- Overrides:
exactEqualsin classTransportServiceDescriptor
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-