commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bogdan Drozdowski (JIRA)" <>
Subject [jira] Commented: (NET-273) FEAT response parsing
Date Fri, 18 Mar 2011 15:10:29 GMT


Bogdan Drozdowski commented on NET-273:

Since new features can be added at any moment, I'd see the tests as client.supportsFeature("something"),
with a list of currently-known features in a separate class (, so client.supportsFeature(FTPFeature.FOO)
could also be used. Not all commands are features and not all feature names are commands,
so a separate class would be better.

I'd use a java.util.Map<String, String> to hold the features. The number of entries
(keys) in the Map would be the number of features the server reported. The first String in
an entry would be the first word on a line from the feature list (which should be the feature's
name), the second String would be the feature's options - everything after the feature's name
(like for MLST).

> FEAT response parsing
> ---------------------
>                 Key: NET-273
>                 URL:
>             Project: Commons Net
>          Issue Type: Improvement
>          Components: FTP
>    Affects Versions: 2.0
>            Reporter: Shikhar Bhushan
>            Priority: Minor
> Would be nice if response to FEAT could be parsed, and a simple method provided like

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message