Class FTPServerBean

java.lang.Object
org.springframework.extensions.surf.util.AbstractLifecycleBean
org.alfresco.filesys.FTPServerBean
All Implemented Interfaces:
EventListener, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class FTPServerBean extends org.springframework.extensions.surf.util.AbstractLifecycleBean
FTP Server Class

Create and start the server components required to run the FTP server.

Author:
GKSpencer
  • Field Summary

    Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean

    log
  • Constructor Summary

    Constructors
    Constructor
    Description
    FTPServerBean(org.alfresco.jlan.server.config.ServerConfiguration serverConfig)
    Class constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    final org.alfresco.jlan.server.config.ServerConfiguration
    Return the server configuration
    boolean
     
    static void
    main(String[] args)
    Runs the FTP server directly
    protected void
    onBootstrap(org.springframework.context.ApplicationEvent event)
     
    protected void
    onShutdown(org.springframework.context.ApplicationEvent event)
     
    final void
    Start the FTP server components
    final void
    Stop the FTP server components

    Methods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean

    getApplicationContext, onApplicationEvent, setApplicationContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.context.ApplicationListener

    supportsAsyncExecution
  • Constructor Details

    • FTPServerBean

      public FTPServerBean(org.alfresco.jlan.server.config.ServerConfiguration serverConfig)
      Class constructor
      Parameters:
      serverConfig - ServerConfiguration
  • Method Details

    • getConfiguration

      public final org.alfresco.jlan.server.config.ServerConfiguration getConfiguration()
      Return the server configuration
      Returns:
      ServerConfiguration
    • isStarted

      public boolean isStarted()
      Returns:
      Returns true if the server started up without any errors
    • startServer

      public final void startServer() throws SocketException, IOException
      Start the FTP server components
      Throws:
      SocketException - If a network error occurs
      IOException - If an I/O error occurs
    • stopServer

      public final void stopServer()
      Stop the FTP server components
    • main

      public static void main(String[] args)
      Runs the FTP server directly
      Parameters:
      args - String[]
    • onBootstrap

      protected void onBootstrap(org.springframework.context.ApplicationEvent event)
      Specified by:
      onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBean
    • onShutdown

      protected void onShutdown(org.springframework.context.ApplicationEvent event)
      Specified by:
      onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBean