|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.enterprisedt.net.ftp.AdvancedSettings
public class AdvancedSettings
Holds advanced configuration options not likely to be used for basic FTP operations. These options must be set prior to establishing connections, otherwise they have no effect until a new connection is made.
| Field Summary | |
|---|---|
protected ConnectionContext |
context
|
| Constructor Summary | |
|---|---|
protected |
AdvancedSettings(ConnectionContext context)
Constructor |
| Method Summary | |
|---|---|
java.lang.String |
getControlEncoding()
Get the encoding used for the control channel |
boolean |
getListenOnAllInterfaces()
Are we listening on all interfaces in active mode, which is the default? |
int |
getTransferBufferSize()
Get the size of the data buffers used in reading and writing to the server |
int |
getTransferNotifyInterval()
Get the interval used for progress notification of transfers. |
boolean |
isAutoLogin()
Determine if auto login is switched on |
boolean |
isDeleteOnFailure()
If true, delete partially written files when exceptions are thrown during a download |
void |
setAutoLogin(boolean autoLogin)
Set the autoLogin flag |
void |
setControlEncoding(java.lang.String controlEncoding)
Set the control channel encoding. |
void |
setDeleteOnFailure(boolean deleteOnFailure)
Switch on or off the automatic deletion of partially written files that are left when an exception is thrown during a download |
void |
setListenOnAllInterfaces(boolean listenOnAll)
Listen on all interfaces for active mode transfers (the default). |
void |
setTransferBufferSize(int size)
Set the size of the data buffers used in reading and writing to the server |
void |
setTransferNotifyInterval(int notifyInterval)
Set the interval used for progress notification of transfers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ConnectionContext context
| Constructor Detail |
|---|
protected AdvancedSettings(ConnectionContext context)
context - context that settings are kept in| Method Detail |
|---|
public boolean isAutoLogin()
public void setAutoLogin(boolean autoLogin)
autoLogin - true if logging in automaticallypublic void setListenOnAllInterfaces(boolean listenOnAll)
listenOnAll - true if listen on all interfaces, false to listen on the control interfacepublic boolean getListenOnAllInterfaces()
public boolean isDeleteOnFailure()
public void setDeleteOnFailure(boolean deleteOnFailure)
deleteOnFailure - true if delete when a failure occurspublic java.lang.String getControlEncoding()
public void setControlEncoding(java.lang.String controlEncoding)
controlEncoding - The controlEncoding to set, which is the name of a Charsetpublic void setTransferBufferSize(int size)
size - new size of buffer in bytespublic int getTransferBufferSize()
public int getTransferNotifyInterval()
public void setTransferNotifyInterval(int notifyInterval)
notifyInterval - number of bytes between each notification
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||