|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.hermesftp.cmd.PassiveModeSocketProvider
public class PassiveModeSocketProvider
Provides the data transfer socket for transfer passive mode.
| Constructor Summary | |
|---|---|
PassiveModeSocketProvider(FtpSessionContext ctx,
int preferredProtocol)
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 PassiveModeSocketProvider(FtpSessionContext ctx,
int preferredProtocol)
ctx - Session context.preferredProtocol - Preferred protocol (IPv4 or IPv6)| Method Detail |
|---|
public DataChannelInfo init()
throws java.io.IOException
init in interface SocketProviderjava.io.IOException - Error on initializing the data channel.public void closeSocket()
closeSocket in interface SocketProvider
public java.net.Socket provideSocket()
throws java.io.IOException
provideSocket in interface SocketProviderjava.io.IOException - Error on creating the data channel.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||