[ http://issues.apache.org/jira/browse/VFS-42?page=all ]
Mario Ivankovits resolved VFS-42.
---------------------------------
Resolution: Fixed
added getFriendlyURI() to FileName
Hope it'll do the trick
> [vfs] Display safe and user friendly VFS URLs
> ---------------------------------------------
>
> Key: VFS-42
> URL: http://issues.apache.org/jira/browse/VFS-42
> Project: Commons VFS
> Issue Type: Improvement
> Environment: Operating System: All
> Platform: All
> Reporter: Robert Enyedi
> Priority: Minor
>
> In JCommander we need to display VFS URLs at many places in the GUI. We have
> two
> requirements: hide any password and display user friendly paths where
> possible.
> By user friendly paths we mean not displaying the file:// schema for local
> files
> and showing the path with the platform specific path separator.
> So for instance the ftp://user:[EMAIL PROTECTED]/ is displayed as
> ftp://[EMAIL PROTECTED] Also, under Windows, the file://c:/ URL is displayed
> as c:\
> We have a partially working implementation for this feature request which
> approaches things in reverse by using regular expression match and replace.
> This
> however is not the preferred way.
> I think that such a feature should be part of VFS itself. I would like to
> propose two API changes:
> 1. add the getFriendlyName() to the FileName interface - this method should
> work
> as specified above, except that the string should be internally built rather
> than regular expression based
> 2. change the toString() implementation of FileObject and FileName
> implementers
> in a way that by default no password to be displayed so that no passwords show
> up accidentally in log files
> Please let me know what do you think about this feature request. The
> JCommander
> team would be glad to provide a patch with the implementation if we can agree
> on
> how to change the interfaces.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]