Package jenkins.plugins.publish_over_ftp
Class BapFtpHostConfiguration
- java.lang.Object
-
- jenkins.plugins.publish_over.BPHostConfiguration<BapFtpClient,Object>
-
- jenkins.plugins.publish_over_ftp.BapFtpHostConfiguration
-
- All Implemented Interfaces:
Describable<BapFtpHostConfiguration>
,Serializable
public class BapFtpHostConfiguration extends jenkins.plugins.publish_over.BPHostConfiguration<BapFtpClient,Object> implements Describable<BapFtpHostConfiguration>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_PORT
static int
DEFAULT_TIMEOUT
-
Constructor Summary
Constructors Constructor Description BapFtpHostConfiguration(String name, String hostname, String username, String encryptedPassword, String remoteRootDir, int port, int timeout, boolean useActiveData, String controlEncoding, boolean disableMakeNestedDirs, boolean disableRemoteVerification)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.commons.lang.builder.EqualsBuilder
addToEquals(org.apache.commons.lang.builder.EqualsBuilder builder, BapFtpHostConfiguration that)
protected org.apache.commons.lang.builder.HashCodeBuilder
addToHashCode(org.apache.commons.lang.builder.HashCodeBuilder builder)
protected org.apache.commons.lang.builder.ToStringBuilder
addToToString(org.apache.commons.lang.builder.ToStringBuilder builder)
BapFtpClient
createClient(jenkins.plugins.publish_over.BPBuildInfo buildInfo)
org.apache.commons.net.ftp.FTPClient
createFTPClient()
boolean
equals(Object that)
String
getControlEncoding()
BapFtpHostConfigurationDescriptor
getDescriptor()
protected String
getPassword()
int
getTimeout()
String
getTrustedCertificate()
int
hashCode()
boolean
isDisableMakeNestedDirs()
boolean
isDisableRemoteVerification()
boolean
isUseActiveData()
boolean
isUseFtpOverTls()
boolean
isUseImplicitTls()
Object
readResolve()
void
setTimeout(int timeout)
void
setTrustedCertificate(String trustedCertificate)
void
setUseActiveData(boolean useActiveData)
void
setUseFtpOverTls(boolean useFtpOverTls)
void
setUseImplicitTls(boolean useImplicitTls)
String
toString()
-
Methods inherited from class jenkins.plugins.publish_over.BPHostConfiguration
addToEquals, changeToRootDirectory, createClient, exception, getCommonConfig, getEncryptedPassword, getHostname, getHostnameTrimmed, getName, getPort, getRemoteRootDir, getUsername, isDirectoryAbsolute, setCommonConfig, setHostname, setName, setPassword, setPort, setRemoteRootDir, setUsername
-
-
-
-
Field Detail
-
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BapFtpHostConfiguration
@DataBoundConstructor public BapFtpHostConfiguration(String name, String hostname, String username, String encryptedPassword, String remoteRootDir, int port, int timeout, boolean useActiveData, String controlEncoding, boolean disableMakeNestedDirs, boolean disableRemoteVerification)
-
-
Method Detail
-
setUseFtpOverTls
@DataBoundSetter public void setUseFtpOverTls(boolean useFtpOverTls)
-
setUseImplicitTls
@DataBoundSetter public void setUseImplicitTls(boolean useImplicitTls)
-
setTrustedCertificate
@DataBoundSetter public void setTrustedCertificate(String trustedCertificate)
-
getPassword
protected final String getPassword()
- Overrides:
getPassword
in classjenkins.plugins.publish_over.BPHostConfiguration<BapFtpClient,Object>
-
getTimeout
public int getTimeout()
-
setTimeout
public void setTimeout(int timeout)
-
isUseActiveData
public boolean isUseActiveData()
-
setUseActiveData
public void setUseActiveData(boolean useActiveData)
-
getControlEncoding
public String getControlEncoding()
-
isDisableMakeNestedDirs
public boolean isDisableMakeNestedDirs()
-
isDisableRemoteVerification
public boolean isDisableRemoteVerification()
-
isUseFtpOverTls
public boolean isUseFtpOverTls()
-
isUseImplicitTls
public boolean isUseImplicitTls()
-
getTrustedCertificate
public String getTrustedCertificate()
-
createClient
public BapFtpClient createClient(jenkins.plugins.publish_over.BPBuildInfo buildInfo)
- Specified by:
createClient
in classjenkins.plugins.publish_over.BPHostConfiguration<BapFtpClient,Object>
-
createFTPClient
public org.apache.commons.net.ftp.FTPClient createFTPClient() throws GeneralSecurityException, FileNotFoundException, IOException
-
getDescriptor
public BapFtpHostConfigurationDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<BapFtpHostConfiguration>
-
addToHashCode
protected org.apache.commons.lang.builder.HashCodeBuilder addToHashCode(org.apache.commons.lang.builder.HashCodeBuilder builder)
- Overrides:
addToHashCode
in classjenkins.plugins.publish_over.BPHostConfiguration<BapFtpClient,Object>
-
addToEquals
protected org.apache.commons.lang.builder.EqualsBuilder addToEquals(org.apache.commons.lang.builder.EqualsBuilder builder, BapFtpHostConfiguration that)
-
addToToString
protected org.apache.commons.lang.builder.ToStringBuilder addToToString(org.apache.commons.lang.builder.ToStringBuilder builder)
- Overrides:
addToToString
in classjenkins.plugins.publish_over.BPHostConfiguration<BapFtpClient,Object>
-
equals
public boolean equals(Object that)
- Overrides:
equals
in classjenkins.plugins.publish_over.BPHostConfiguration<BapFtpClient,Object>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjenkins.plugins.publish_over.BPHostConfiguration<BapFtpClient,Object>
-
toString
public String toString()
- Overrides:
toString
in classjenkins.plugins.publish_over.BPHostConfiguration<BapFtpClient,Object>
-
readResolve
public Object readResolve()
- Overrides:
readResolve
in classjenkins.plugins.publish_over.BPHostConfiguration<BapFtpClient,Object>
-
-