|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.hermesftp.cmd.ActiveModeSocketProvider
public class ActiveModeSocketProvider
Provider for the client socket (active transfer). The creation of the socket is deferred until it is needed.
| Constructor Summary | |
|---|---|
ActiveModeSocketProvider(FtpSessionContext ctx,
DataChannelInfo info)
Constructor. |
|
| Method Summary | |
|---|---|
void |
closeSocket()
Closes the socket, if necessary. |
DataChannelInfo |
init()
Initializes the provider. |
java.net.Socket |
provideSocket()
Provides the socket for data transfer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActiveModeSocketProvider(FtpSessionContext ctx,
DataChannelInfo info)
ctx - Session context.info - Channel about the data channel to open.| Method Detail |
|---|
public DataChannelInfo init()
throws java.io.IOException
init in interface SocketProviderjava.io.IOException - Error on initializing the data channel.
public java.net.Socket provideSocket()
throws java.io.IOException
provideSocket in interface SocketProviderjava.io.IOException - Error on creating the data channel.public void closeSocket()
closeSocket in interface SocketProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||