On Mon, 2016-01-25 at 17:56 +0100, Bertrand Delacretaz wrote:
> Hi Robert,
> 
> On Mon, Jan 25, 2016 at 4:38 PM, Robert Munteanu <[email protected]>
> wrote:
> > ...Do we have a utility class somewhere that constructs paths out
> > of
> > strings?...
> 
> I don't think we have a comprehensive one, there are bits and pieces
> (jackrabbit-jcr-commons maybe?) but we can probably use a general
> path
> building / deconstruction utility. I'm hoping that your uncommitted
> stuff uses a fluent syntax ;-)

Yes, it does :-)

https://github.com/apache/sling/blob/def26ada2a6be3ac42e4f1ec19421a38d2
71f33a/bundles/resourceresolver/src/main/java/org/apache/sling/resource
resolver/impl/providers/stateful/CombinedResourceProvider.java#L657-
L683

However, it's not API right now, but I'll make it for the next release,
probably as part of org.apache.sling.api.resource .

Robert

Reply via email to