public class FTPServerBean
extends org.springframework.extensions.surf.util.AbstractLifecycleBean
Create and start the server components required to run the FTP server.
Constructor and Description |
---|
FTPServerBean(org.alfresco.jlan.server.config.ServerConfiguration serverConfig)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
org.alfresco.jlan.server.config.ServerConfiguration |
getConfiguration()
Return the server configuration
|
boolean |
isStarted() |
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) |
void |
startServer()
Start the FTP server components
|
void |
stopServer()
Stop the FTP server components
|
public FTPServerBean(org.alfresco.jlan.server.config.ServerConfiguration serverConfig)
serverConfig
- ServerConfigurationpublic final org.alfresco.jlan.server.config.ServerConfiguration getConfiguration()
public boolean isStarted()
public final void startServer() throws SocketException, IOException
SocketException
- If a network error occursIOException
- If an I/O error occurspublic final void stopServer()
public static void main(String[] args)
args
- String[]protected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
protected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
Copyright © 2005–2017 Alfresco Software. All rights reserved.