Constructor and Description |
---|
FtpChannelUtils(FtpConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
static void |
addCommandChannel(io.netty.channel.Channel channel,
FtpConfiguration configuration)
Add a command channel into the list
|
static void |
addDataChannel(io.netty.channel.Channel channel,
FtpConfiguration configuration)
Add a data channel into the list
|
protected static void |
exit(FtpConfiguration configuration)
Exit global ChannelFactory
|
static String |
get2428Address(InetSocketAddress address)
Return the (RFC2428) Address in the format compatible with FTP (RFC2428)
|
static InetSocketAddress |
get2428InetSocketAddress(String arg)
Get the (RFC2428) InetSocketAddress corresponding to the FTP format of address (RFC2428)
|
static String |
getAddress(InetSocketAddress address)
Return the Address in the format compatible with FTP argument
|
static String |
getAddress(String address,
int port)
Return the Address in the format compatible with FTP argument
|
static InetSocketAddress |
getInetSocketAddress(String arg)
Get the InetSocketAddress corresponding to the FTP format of address
|
static InetAddress |
getLocalInetAddress(io.netty.channel.Channel channel)
Get the Local InetAddress
|
static InetSocketAddress |
getLocalInetSocketAddress(io.netty.channel.Channel channel)
Get the Local InetSocketAddress
|
static InetAddress |
getRemoteInetAddress(io.netty.channel.Channel channel)
Get the Remote InetAddress
|
static InetSocketAddress |
getRemoteInetSocketAddress(io.netty.channel.Channel channel)
Get the Remote InetSocketAddress
|
static int |
nbCommandChannels(FtpConfiguration configuration)
Return the current number of command connections
|
static int |
nbDataChannels(FtpConfiguration configuration)
Return the current number of data connections
|
void |
run() |
static void |
stopLogger() |
static void |
teminateServer(FtpConfiguration configuration)
This function is the top function to be called when the server is to be shutdown.
|
static int |
validCommandChannels(FtpConfiguration configuration)
Return the number of still positive command connections
|
public FtpChannelUtils(FtpConfiguration configuration)
public static InetAddress getRemoteInetAddress(io.netty.channel.Channel channel)
channel
- public static InetAddress getLocalInetAddress(io.netty.channel.Channel channel)
channel
- public static InetSocketAddress getRemoteInetSocketAddress(io.netty.channel.Channel channel)
channel
- public static InetSocketAddress getLocalInetSocketAddress(io.netty.channel.Channel channel)
channel
- public static InetSocketAddress getInetSocketAddress(String arg)
arg
- public static String getAddress(String address, int port)
address
- port
- public static String getAddress(InetSocketAddress address)
address
- public static InetSocketAddress get2428InetSocketAddress(String arg)
arg
- public static String get2428Address(InetSocketAddress address)
address
- public static int nbCommandChannels(FtpConfiguration configuration)
configuration
- public static int nbDataChannels(FtpConfiguration configuration)
configuration
- public static int validCommandChannels(FtpConfiguration configuration)
configuration
- protected static void exit(FtpConfiguration configuration)
configuration
- public static void teminateServer(FtpConfiguration configuration)
configuration
- public static void addCommandChannel(io.netty.channel.Channel channel, FtpConfiguration configuration)
channel
- configuration
- public static void addDataChannel(io.netty.channel.Channel channel, FtpConfiguration configuration)
channel
- configuration
- public static void stopLogger()
Copyright © 2009–2019 Waarp. All rights reserved.