Package com.consol.citrus.ftp.server
Class FtpServerBuilder
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpointBuilder<T>
-
- com.consol.citrus.server.AbstractServerBuilder<FtpServer,FtpServerBuilder>
-
- com.consol.citrus.ftp.server.FtpServerBuilder
-
- All Implemented Interfaces:
com.consol.citrus.endpoint.EndpointBuilder<FtpServer>
public class FtpServerBuilder extends com.consol.citrus.server.AbstractServerBuilder<FtpServer,FtpServerBuilder>
- Since:
- 2.5
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description FtpServerBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FtpServerBuilderautoConnect(boolean autoConnect)Sets the autoConnect property.FtpServerBuilderautoHandleCommands(String autoHandleCommands)Sets the autoHandleCommands property.FtpServerBuilderautoLogin(boolean autoLogin)Sets the autoLogin property.FtpServerBuilderautoReadFiles(boolean autoReadFiles)Sets the autoReadFiles property.FtpServerBuildercorrelator(com.consol.citrus.message.MessageCorrelator correlator)Sets the correlator.FtpServerBuildererrorHandlingStrategy(com.consol.citrus.message.ErrorHandlingStrategy errorHandlingStrategy)Sets the error handling strategy.protected FtpServergetEndpoint()FtpServerBuilderhost(String host)Sets the host property.FtpServerBuilderlistenerFactory(org.apache.ftpserver.listener.ListenerFactory factory)Sets the listener factory property.FtpServerBuilderlocalPassiveMode(boolean localPassiveMode)Sets the localPassiveMode property.FtpServerBuildermarshaller(FtpMarshaller marshaller)Sets the marshaller.FtpServerBuilderpassword(String password)Sets the password property.FtpServerBuilderport(int port)Sets the port property.FtpServerBuilderserver(org.apache.ftpserver.FtpServer server)Sets the ftp server.FtpServerBuilderuser(String user)Sets the user property.FtpServerBuilderuserManager(org.apache.ftpserver.ftplet.UserManager userManager)Sets the userManager property.FtpServerBuilderuserManagerProperties(org.springframework.core.io.Resource userManagerProperties)Sets the userManager properties.-
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 FtpServer getEndpoint()
- Specified by:
getEndpointin classcom.consol.citrus.endpoint.AbstractEndpointBuilder<FtpServer>
-
port
public FtpServerBuilder port(int port)
Sets the port property.- Parameters:
port-- Returns:
-
autoConnect
public FtpServerBuilder autoConnect(boolean autoConnect)
Sets the autoConnect property.- Parameters:
autoConnect-- Returns:
-
autoLogin
public FtpServerBuilder autoLogin(boolean autoLogin)
Sets the autoLogin property.- Parameters:
autoLogin-- Returns:
-
host
public FtpServerBuilder host(String host)
Sets the host property.- Parameters:
host-- Returns:
-
user
public FtpServerBuilder user(String user)
Sets the user property.- Parameters:
user-- Returns:
-
password
public FtpServerBuilder password(String password)
Sets the password property.- Parameters:
password-- Returns:
-
autoHandleCommands
public FtpServerBuilder autoHandleCommands(String autoHandleCommands)
Sets the autoHandleCommands property.- Parameters:
autoHandleCommands-- Returns:
-
autoReadFiles
public FtpServerBuilder autoReadFiles(boolean autoReadFiles)
Sets the autoReadFiles property.- Parameters:
autoReadFiles-- Returns:
-
localPassiveMode
public FtpServerBuilder localPassiveMode(boolean localPassiveMode)
Sets the localPassiveMode property.- Parameters:
localPassiveMode-- Returns:
-
server
public FtpServerBuilder server(org.apache.ftpserver.FtpServer server)
Sets the ftp server.- Parameters:
server-- Returns:
-
userManager
public FtpServerBuilder userManager(org.apache.ftpserver.ftplet.UserManager userManager)
Sets the userManager property.- Parameters:
userManager-- Returns:
-
listenerFactory
public FtpServerBuilder listenerFactory(org.apache.ftpserver.listener.ListenerFactory factory)
Sets the listener factory property.- Parameters:
factory-- Returns:
-
userManagerProperties
public FtpServerBuilder userManagerProperties(org.springframework.core.io.Resource userManagerProperties)
Sets the userManager properties.- Parameters:
userManagerProperties-- Returns:
-
marshaller
public FtpServerBuilder marshaller(FtpMarshaller marshaller)
Sets the marshaller.- Parameters:
marshaller-- Returns:
-
correlator
public FtpServerBuilder correlator(com.consol.citrus.message.MessageCorrelator correlator)
Sets the correlator.- Parameters:
correlator-- Returns:
-
errorHandlingStrategy
public FtpServerBuilder errorHandlingStrategy(com.consol.citrus.message.ErrorHandlingStrategy errorHandlingStrategy)
Sets the error handling strategy.- Parameters:
errorHandlingStrategy-- Returns:
-
-