You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2007/12/30 11:56:43 UTC

[jira] Updated: (SLING-146) Replace Resource.getURI() by Resource.getPath()

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

Felix Meschberger updated SLING-146:
------------------------------------

    Description: 
Once upon a time while developping the Resource interface we found that the resource "path" would not necessairily be just a path but may be a URI. In the meantime the Resource interface evolved into the current state with the adaptTo method allowing different views of a resource. On the other hand, the ResourceResolver interface has getter methods for
resources based on just a path.

So, I think, it would probably be better and cleaner to rename the getURI() method to getPath() because this is what this method actually returns.

Will be implemented as discussed on the list at http://www.mail-archive.com/sling-dev@incubator.apache.org/msg01277.html

        Summary: Replace Resource.getURI() by Resource.getPath()  (was: Replace Resource.getURI by)

Complete the issue description (have hit the return button in the wrong place ...)

> Replace Resource.getURI() by Resource.getPath()
> -----------------------------------------------
>
>                 Key: SLING-146
>                 URL: https://issues.apache.org/jira/browse/SLING-146
>             Project: Sling
>          Issue Type: Bug
>          Components: API
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: 2.0.0
>
>
> Once upon a time while developping the Resource interface we found that the resource "path" would not necessairily be just a path but may be a URI. In the meantime the Resource interface evolved into the current state with the adaptTo method allowing different views of a resource. On the other hand, the ResourceResolver interface has getter methods for
> resources based on just a path.
> So, I think, it would probably be better and cleaner to rename the getURI() method to getPath() because this is what this method actually returns.
> Will be implemented as discussed on the list at http://www.mail-archive.com/sling-dev@incubator.apache.org/msg01277.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.