Java Doc for AdvancedFTPSettings.java in  » Net » edtftpj » com » enterprisedt » net » ftp » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » edtftpj » com.enterprisedt.net.ftp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.enterprisedt.net.ftp.AdvancedSettings
      com.enterprisedt.net.ftp.AdvancedFTPSettings

AdvancedFTPSettings
public class AdvancedFTPSettings extends AdvancedSettings (Code)
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.
author:
   Bruce Blackshaw
version:
   $Revision: 1.1 $



Constructor Summary
 AdvancedFTPSettings(ConnectionContext context)
    

Method Summary
public  intgetActiveHighPort()
     Get the upper limit of the port range for active mode.
public  StringgetActiveIPAddress()
    
public  intgetActiveLowPort()
     Get the lower limit of the port range for active mode.
public  FTPConnectModegetConnectMode()
     Get the data transfer mode.
public  DirectoryEmptyStringsgetDirectoryEmptyMessages()
     Get class that holds fragments of server messages that indicate a directory is empty.
public  FileNotFoundStringsgetFileNotFoundMessages()
     Get class that holds fragments of server messages that indicate a file was not found.
public  Locale[]getParserLocales()
    
public  TransferCompleteStringsgetTransferCompleteMessages()
     Get class that holds fragments of server messages that indicate a transfer completed.
public  booleanisAutoPassiveIPSubstitution()
    
public  booleanisStrictReturnCodes()
     Determine if strict checking of return codes is switched on.
public  voidsetActiveIPAddress(String activeIP)
     We can force PORT to send a fixed IP address, which can be useful with certain NAT configurations.
public  voidsetActivePortRange(int lowest, int highest)
     Force a certain range of ports to be used in active mode.
public  voidsetAutoPassiveIPSubstitution(boolean autoPassiveIPSubstitution)
    
public  voidsetConnectMode(FTPConnectMode mode)
     Set the data transfer mode to either active (PORT) or passive (PASV). Only applicable to FTP/S.
public  voidsetParserLocales(Locale[] locales)
    
public  voidsetStrictReturnCodes(boolean strict)
     Set strict checking of FTP return codes.


Constructor Detail
AdvancedFTPSettings
AdvancedFTPSettings(ConnectionContext context)(Code)
Constructor
Parameters:
  context - context that settings are kept in




Method Detail
getActiveHighPort
public int getActiveHighPort()(Code)
Get the upper limit of the port range for active mode. upper limit, or -1 if not set



getActiveIPAddress
public String getActiveIPAddress()(Code)
The active IP address being used, or null if not used IP address as a string or null



getActiveLowPort
public int getActiveLowPort()(Code)
Get the lower limit of the port range for active mode. lower limit, or -1 if not set



getConnectMode
public FTPConnectMode getConnectMode()(Code)
Get the data transfer mode. This only applies to the FTP and FTPS protocols. the data transfer mode of the master context



getDirectoryEmptyMessages
public DirectoryEmptyStrings getDirectoryEmptyMessages()(Code)
Get class that holds fragments of server messages that indicate a directory is empty. New messages can be added.

The fragments are used when it is necessary to examine the message returned by a server to see if it is saying a directory is empty. If an FTP server is returning a different message that still clearly indicates a directory is empty, use this property to add a new server fragment to the repository via the add method. It would be helpful to email support at enterprisedt dot com to inform us of the message so it can be added to the next build. messages class




getFileNotFoundMessages
public FileNotFoundStrings getFileNotFoundMessages()(Code)
Get class that holds fragments of server messages that indicate a file was not found. New messages can be added.

The fragments are used when it is necessary to examine the message returned by a server to see if it is saying a file was not found. If an FTP server is returning a different message that still clearly indicates a file was not found, use this property to add a new server fragment to the repository via the add method. It would be helpful to email support at enterprisedt dot com to inform us of the message so it can be added to the next build. messages class




getParserLocales
public Locale[] getParserLocales()(Code)
Get the current parser locales used for directory listing parsing Locale[]



getTransferCompleteMessages
public TransferCompleteStrings getTransferCompleteMessages()(Code)
Get class that holds fragments of server messages that indicate a transfer completed. New messages can be added.

The fragments are used when it is necessary to examine the message returned by a server to see if it is saying a transfer completed. If an FTP server is returning a different message that still clearly indicates a transfer failed, use this property to add a new server fragment to the repository via the add method. It would be helpful to email support at enterprisedt dot com to inform us of the message so it can be added to the next build. messages class




isAutoPassiveIPSubstitution
public boolean isAutoPassiveIPSubstitution()(Code)
Is automatic substitution of the remote host IP set to be on for passive mode connections? true if set on, false otherwise



isStrictReturnCodes
public boolean isStrictReturnCodes()(Code)
Determine if strict checking of return codes is switched on. If it is (the default), all return codes must exactly match the expected code. If strict checking is off, only the first digit must match. true if strict return code checking, false if non-strict.



setActiveIPAddress
public void setActiveIPAddress(String activeIP)(Code)
We can force PORT to send a fixed IP address, which can be useful with certain NAT configurations.
Parameters:
  activeIP - IP address to force, in 192.168.1.0 form or in IPV6 form, e.g.1080::8:800:200C:417A



setActivePortRange
public void setActivePortRange(int lowest, int highest)(Code)
Force a certain range of ports to be used in active mode. This is generally so that a port range can be configured in a firewall. Note that if lowest == highest, a single port will be used. This works well for uploads, but downloads generally require multiple ports, as most servers fail to create a connection repeatedly for the same port.
Parameters:
  lowest - Lower limit of range (should be >= 1024).
Parameters:
  highest - Upper limit of range.(should be <= 65535)



setAutoPassiveIPSubstitution
public void setAutoPassiveIPSubstitution(boolean autoPassiveIPSubstitution)(Code)
Set automatic substitution of the remote host IP on if in passive mode
Parameters:
  autoPassiveIPSubstitution - true if set to on, false otherwise



setConnectMode
public void setConnectMode(FTPConnectMode mode) throws FTPException(Code)
Set the data transfer mode to either active (PORT) or passive (PASV). Only applicable to FTP/S. Setting applies to all subsequent transfers that are initiated.
Parameters:
  mode - data transfer mode to set
throws:
  FTPException -



setParserLocales
public void setParserLocales(Locale[] locales)(Code)
Set the list of locales to be tried for date parsing of directory listings
Parameters:
  locales - locales to use



setStrictReturnCodes
public void setStrictReturnCodes(boolean strict)(Code)
Set strict checking of FTP return codes. If strict checking is on (the default) code must exactly match the expected code. If strict checking is off, only the first digit must match.
Parameters:
  strict - true for strict checking, false for loose checking



Fields inherited from com.enterprisedt.net.ftp.AdvancedSettings
protected ConnectionContext context(Code)(Java Doc)

Methods inherited from com.enterprisedt.net.ftp.AdvancedSettings
public String getControlEncoding()(Code)(Java Doc)
public boolean getListenOnAllInterfaces()(Code)(Java Doc)
public int getTransferBufferSize()(Code)(Java Doc)
public int getTransferNotifyInterval()(Code)(Java Doc)
public boolean isAutoLogin()(Code)(Java Doc)
public boolean isDeleteOnFailure()(Code)(Java Doc)
public void setAutoLogin(boolean autoLogin)(Code)(Java Doc)
public void setControlEncoding(String controlEncoding)(Code)(Java Doc)
public void setDeleteOnFailure(boolean deleteOnFailure)(Code)(Java Doc)
public void setListenOnAllInterfaces(boolean listenOnAll)(Code)(Java Doc)
public void setTransferBufferSize(int size)(Code)(Java Doc)
public void setTransferNotifyInterval(int notifyInterval)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.