[ 
https://issues.apache.org/jira/browse/VFS-462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joerg Schaible resolved VFS-462.
--------------------------------

    Resolution: Fixed

Since the value type could not be changed without breaking backward 
compatibility, new getters and setters have been introduced along with the new 
enum. Old getter and setter have been decprecated.


$ svn ci -m "Deprecate FtpsFileSystemConfigBuilder.setFtpsType and 
FtpsFileSystemConfigBuilder.getFtpsType in favor of 
FtpsFileSystemConfigBuilder.setFtpsMode and 
FtpsFileSystemConfigBuilder.getFtpsMode which use new enum FtpsMode instead 
(VFS-462)."
Sending        
core/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileSystemConfigBuilder.java
Sending        
core/src/main/java/org/apache/commons/vfs2/provider/ftps/FtpsClientFactory.java
Sending        
core/src/main/java/org/apache/commons/vfs2/provider/ftps/FtpsFileSystemConfigBuilder.java
Adding         
core/src/main/java/org/apache/commons/vfs2/provider/ftps/FtpsMode.java
Sending        
core/src/test/java/org/apache/commons/vfs2/provider/ftps/test/FtpsProviderExplicitTestCase.java
Sending        
core/src/test/java/org/apache/commons/vfs2/provider/ftps/test/FtpsProviderImplicitTestCase_Disabled.java
Sending        src/changes/changes.xml
Transmitting file data .......
Committed revision 1448668.
                
> [FTPS] Use enum instead of String for FtpsType
> ----------------------------------------------
>
>                 Key: VFS-462
>                 URL: https://issues.apache.org/jira/browse/VFS-462
>             Project: Commons VFS
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Joerg Schaible
>            Assignee: Joerg Schaible
>            Priority: Trivial
>             Fix For: 2.1
>
>
> The connection mode for FTPS is configured with a string. Actually the 
> underlaying implementation uses a boolean to separate between "implicit" and 
> "explicit" mode, therefore it is somewhat strange to introduce two string 
> constants for this option and throw an exception (non-localized) if the 
> provided configuration value does not match.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to