Class FtpServer

  • All Implemented Interfaces:
    com.consol.citrus.common.InitializingPhase, com.consol.citrus.common.Named, com.consol.citrus.common.ShutdownPhase, com.consol.citrus.endpoint.Endpoint, com.consol.citrus.server.Server, com.consol.citrus.spi.ReferenceResolverAware, Runnable

    public class FtpServer
    extends com.consol.citrus.server.AbstractServer
    Since:
    2.0
    Author:
    Christoph Deppisch
    • Field Summary

      • Fields inherited from class com.consol.citrus.server.AbstractServer

        DEFAULT_CHANNEL_ID_SUFFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      FtpServer()
      Default constructor using default endpoint configuration.
      FtpServer​(FtpEndpointConfiguration endpointConfiguration)
      Constructor using endpoint configuration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      FtpEndpointConfiguration getEndpointConfiguration()  
      org.apache.ftpserver.FtpServer getFtpServer()
      Gets ftp server instance.
      org.apache.ftpserver.listener.ListenerFactory getListenerFactory()
      Gets the listener factory.
      org.apache.ftpserver.ftplet.UserManager getUserManager()
      Gets the user manager.
      org.springframework.core.io.Resource getUserManagerProperties()
      Gets the user manager properties.
      void initialize()  
      void setFtpServer​(org.apache.ftpserver.FtpServer ftpServer)
      Sets custom ftp server instance.
      void setListenerFactory​(org.apache.ftpserver.listener.ListenerFactory listenerFactory)
      Sets custom listener factory.
      void setUserManager​(org.apache.ftpserver.ftplet.UserManager userManager)
      Sets custom user manager.
      void setUserManagerProperties​(org.springframework.core.io.Resource userManagerProperties)
      Sets the user manager properties.
      protected void shutdown()  
      protected void startup()  
      • Methods inherited from class com.consol.citrus.server.AbstractServer

        createConsumer, createProducer, destroy, getDefaultTimeout, getEndpointAdapter, getInterceptors, getReferenceResolver, isAutoStart, isDebugLogging, isRunning, join, run, setAutoStart, setDebugLogging, setDefaultTimeout, setEndpointAdapter, setInterceptors, setReferenceResolver, setRunning, start, stop
      • Methods inherited from class com.consol.citrus.endpoint.AbstractEndpoint

        getActor, getConsumerName, getName, getProducerName, setActor, setName
      • Methods inherited from interface com.consol.citrus.endpoint.Endpoint

        getActor, getName, setActor
      • Methods inherited from interface com.consol.citrus.common.Named

        setName
    • Constructor Detail

      • FtpServer

        public FtpServer()
        Default constructor using default endpoint configuration.
      • FtpServer

        public FtpServer​(FtpEndpointConfiguration endpointConfiguration)
        Constructor using endpoint configuration.
        Parameters:
        endpointConfiguration -
    • Method Detail

      • startup

        protected void startup()
        Specified by:
        startup in class com.consol.citrus.server.AbstractServer
      • shutdown

        protected void shutdown()
        Specified by:
        shutdown in class com.consol.citrus.server.AbstractServer
      • getEndpointConfiguration

        public FtpEndpointConfiguration getEndpointConfiguration()
        Specified by:
        getEndpointConfiguration in interface com.consol.citrus.endpoint.Endpoint
        Overrides:
        getEndpointConfiguration in class com.consol.citrus.server.AbstractServer
      • initialize

        public void initialize()
        Specified by:
        initialize in interface com.consol.citrus.common.InitializingPhase
        Overrides:
        initialize in class com.consol.citrus.server.AbstractServer
      • setFtpServer

        public void setFtpServer​(org.apache.ftpserver.FtpServer ftpServer)
        Sets custom ftp server instance.
        Parameters:
        ftpServer -
      • getFtpServer

        public org.apache.ftpserver.FtpServer getFtpServer()
        Gets ftp server instance.
        Returns:
      • setUserManager

        public void setUserManager​(org.apache.ftpserver.ftplet.UserManager userManager)
        Sets custom user manager.
        Parameters:
        userManager -
      • getUserManager

        public org.apache.ftpserver.ftplet.UserManager getUserManager()
        Gets the user manager.
        Returns:
      • setUserManagerProperties

        public void setUserManagerProperties​(org.springframework.core.io.Resource userManagerProperties)
        Sets the user manager properties.
        Parameters:
        userManagerProperties -
      • getUserManagerProperties

        public org.springframework.core.io.Resource getUserManagerProperties()
        Gets the user manager properties.
        Returns:
      • setListenerFactory

        public void setListenerFactory​(org.apache.ftpserver.listener.ListenerFactory listenerFactory)
        Sets custom listener factory.
        Parameters:
        listenerFactory -
      • getListenerFactory

        public org.apache.ftpserver.listener.ListenerFactory getListenerFactory()
        Gets the listener factory.
        Returns: