|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgoldengate.ftp.core.session.FtpSessionReference
public class FtpSessionReference
Class that allows to retrieve a session when a connection occurs on the Data
network based on the InetAddress
of the remote client and the
InetSocketAddress
of the server for Passive and reverse for Active
connections. This is particularly useful for Passive mode connection since
there is no way to pass the session to the connected channel without this
reference.
Nested Class Summary | |
---|---|
class |
FtpSessionReference.P2PAddress
Index of FtpSession References |
Constructor Summary | |
---|---|
FtpSessionReference()
Constructor |
Method Summary | |
---|---|
boolean |
contains(InetAddress ipOnly,
InetSocketAddress fullIp)
Test if the couple of addresses is already in the hashmap (only for Active) |
void |
delFtpSession(InetAddress ipOnly,
InetSocketAddress fullIp)
Remove the FtpSession from couple of addresses |
FtpSession |
getActiveFtpSession(org.jboss.netty.channel.Channel channel)
Return and remove the FtpSession |
FtpSession |
getPassiveFtpSession(org.jboss.netty.channel.Channel channel)
Return and remove the FtpSession |
int |
sessionsNumber()
|
void |
setNewFtpSession(InetAddress ipOnly,
InetSocketAddress fullIp,
FtpSession session)
Add a session from a couple of addresses |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FtpSessionReference()
Method Detail |
---|
public void setNewFtpSession(InetAddress ipOnly, InetSocketAddress fullIp, FtpSession session)
ipOnly
- fullIp
- session
- public FtpSession getActiveFtpSession(org.jboss.netty.channel.Channel channel)
channel
-
public FtpSession getPassiveFtpSession(org.jboss.netty.channel.Channel channel)
channel
-
public void delFtpSession(InetAddress ipOnly, InetSocketAddress fullIp)
ipOnly
- fullIp
- public boolean contains(InetAddress ipOnly, InetSocketAddress fullIp)
ipOnly
- fullIp
-
public int sessionsNumber()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |