public class FtpServiceDescriptor extends TransportServiceDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
FtpServiceDescriptor.ServiceType |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT |
static java.util.Map<java.lang.String,java.lang.Integer> |
DEFAULT_PORTS |
static java.lang.String |
DEFAULT_TYPE |
static java.lang.String |
EXPLICIT_SSL
Explicit SSL FTP service.
|
static java.lang.String |
FORCED_SSL
Forced explicit SSL FTP service.
|
static java.lang.String |
IMPLICIT_SSL
implicit SSL FTP service.
|
static java.util.Map<java.lang.String,java.lang.Boolean> |
KEY_USAGE |
static java.lang.String |
REGULAR
Regular FTP service.
|
static java.lang.String[] |
SUPPORTED_TYPES |
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration |
copy() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getHost()
Returns binding host/IP.
|
java.lang.String |
getKeyAlias()
Returns SSL key alias.
|
int |
getPort()
Returns binding port.
|
java.lang.String |
getType()
Returns service type.
|
int |
hashCode() |
void |
setHost(java.lang.String value)
Sets binding host/IP.
|
void |
setKeyAlias(java.lang.String value)
Sets SSL key alias.
|
void |
setPort(int value)
Sets binding port.
|
void |
setType(java.lang.String value)
Sets service type.
|
java.lang.String |
toString() |
getVersion, setVersionpublic static final int DEFAULT_PORT
public static final java.lang.String REGULAR
public static final java.lang.String EXPLICIT_SSL
public static final java.lang.String FORCED_SSL
public static final java.lang.String IMPLICIT_SSL
public static final java.lang.String DEFAULT_TYPE
public static final java.lang.String[] SUPPORTED_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 FtpServiceDescriptor(java.lang.String host,
int port,
java.lang.String type,
java.lang.String keyAlias)
host - binding host/IPport - binding porttype - service typekeyAlias - SSL key aliaspublic FtpServiceDescriptor(FtpServiceDescriptor that)
that - an instance to copypublic FtpServiceDescriptor()
public java.lang.String getHost()
public void setHost(java.lang.String value)
value - binding host/IPpublic int getPort()
public void setPort(int value)
value - binding portpublic java.lang.String getType()
public void setType(java.lang.String value)
value - service typepublic java.lang.String getKeyAlias()
public void setKeyAlias(java.lang.String value)
value - SSL key aliaspublic Configuration copy()
copy in class Configurationpublic 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.