Felix Meschberger wrote:
The RequestPathInfo interface is currently defined to return empty strings (or empty array for one method) if no extension, selectors, suffix exists in the request URL. This makes checking for existence of any of the parts somewhat complicated. On the other hand to build a string, you just print the respective method result and don't worry for null values.
an empty string for selectorString is probably ambiguous. what's the selectorString for the following URI: /foo/bar..html ? I think this is the only case where it should return an empty string.
I would like to quickly poll on the list, what the general impression is on the question: Should null or an empty instance (String, array) be returned in the absence of the respective path part ?
I'd return an empty array, and in all other cases null if a URI part is absent. regards marcel
