Package com.consol.citrus.ftp.server
Class SftpServerBuilder
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpointBuilder<T>
-
- com.consol.citrus.server.AbstractServerBuilder<SftpServer,SftpServerBuilder>
-
- com.consol.citrus.ftp.server.SftpServerBuilder
-
- All Implemented Interfaces:
com.consol.citrus.endpoint.EndpointBuilder<SftpServer>
public class SftpServerBuilder extends com.consol.citrus.server.AbstractServerBuilder<SftpServer,SftpServerBuilder>
- Since:
- 2.5
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description SftpServerBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SftpServerBuilderallowedKeyPath(String allowedKeyPath)Sets the allowedKeyPath property.SftpServerBuilderautoConnect(boolean autoConnect)Sets the autoConnect property.SftpServerBuilderautoLogin(boolean autoLogin)Sets the autoLogin property.protected SftpServergetEndpoint()SftpServerBuilderhostKeyPath(String hostKeyPath)Sets the hostKeyPath property.SftpServerBuilderknownHosts(String knownHosts)Sets the knownHosts property.SftpServerBuilderpassword(String password)Sets the client password.SftpServerBuilderpollingInterval(int pollingInterval)Sets the polling interval.SftpServerBuilderport(int port)Sets the port property.SftpServerBuilderpreferredAuthentications(String preferredAuthentications)Sets the preferredAuthentications property.SftpServerBuilderprivateKeyPassword(String privateKeyPassword)Sets the privateKeyPassword property.SftpServerBuilderprivateKeyPath(String privateKeyPath)Sets the privateKeyPath property.SftpServerBuildersessionConfigs(Map<String,String> sessionConfigs)Sets the sessionConfigs property.SftpServerBuilderstrictHostChecking(boolean strictHostChecking)Sets the strictHostChecking property.SftpServerBuilderuser(String user)Sets the user property.SftpServerBuilderuserHomePath(String userHomePath)Sets the userHomePath property.-
Methods inherited from class com.consol.citrus.server.AbstractServerBuilder
autoStart, debugLogging, endpointAdapter, timeout
-
Methods inherited from class com.consol.citrus.endpoint.AbstractEndpointBuilder
actor, build, initialize, name, referenceResolver, supports
-
-
-
-
Method Detail
-
getEndpoint
protected SftpServer getEndpoint()
- Specified by:
getEndpointin classcom.consol.citrus.endpoint.AbstractEndpointBuilder<SftpServer>
-
port
public SftpServerBuilder port(int port)
Sets the port property.- Parameters:
port-- Returns:
-
autoConnect
public SftpServerBuilder autoConnect(boolean autoConnect)
Sets the autoConnect property.- Parameters:
autoConnect-- Returns:
-
autoLogin
public SftpServerBuilder autoLogin(boolean autoLogin)
Sets the autoLogin property.- Parameters:
autoLogin-- Returns:
-
user
public SftpServerBuilder user(String user)
Sets the user property.- Parameters:
user-- Returns:
-
password
public SftpServerBuilder password(String password)
Sets the client password.- Parameters:
password-- Returns:
-
hostKeyPath
public SftpServerBuilder hostKeyPath(String hostKeyPath)
Sets the hostKeyPath property.- Parameters:
hostKeyPath-- Returns:
-
userHomePath
public SftpServerBuilder userHomePath(String userHomePath)
Sets the userHomePath property.- Parameters:
userHomePath-- Returns:
-
allowedKeyPath
public SftpServerBuilder allowedKeyPath(String allowedKeyPath)
Sets the allowedKeyPath property.- Parameters:
allowedKeyPath-- Returns:
-
pollingInterval
public SftpServerBuilder pollingInterval(int pollingInterval)
Sets the polling interval.- Parameters:
pollingInterval-- Returns:
-
strictHostChecking
public SftpServerBuilder strictHostChecking(boolean strictHostChecking)
Sets the strictHostChecking property.- Parameters:
strictHostChecking-- Returns:
-
knownHosts
public SftpServerBuilder knownHosts(String knownHosts)
Sets the knownHosts property.- Parameters:
knownHosts-- Returns:
-
privateKeyPath
public SftpServerBuilder privateKeyPath(String privateKeyPath)
Sets the privateKeyPath property.- Parameters:
privateKeyPath-- Returns:
-
privateKeyPassword
public SftpServerBuilder privateKeyPassword(String privateKeyPassword)
Sets the privateKeyPassword property.- Parameters:
privateKeyPassword-- Returns:
-
preferredAuthentications
public SftpServerBuilder preferredAuthentications(String preferredAuthentications)
Sets the preferredAuthentications property.- Parameters:
preferredAuthentications-- Returns:
-
sessionConfigs
public SftpServerBuilder sessionConfigs(Map<String,String> sessionConfigs)
Sets the sessionConfigs property.- Parameters:
sessionConfigs-- Returns:
-
-