Hello Vlatko,
you can have a look at this page of the wiki [1] (for restlet 2.0),
especially the paragraph "Matching of template variables".
It allows you define variables in the URI pattern that catch al kinds
of characters. By doing so you can define two kinds of routes:
/channels/{subscriptionPath}/subscriptions
/channels/{channel}
where "channel" and "subscriptionPath" are of type "TYPE_ALL".
You may also have to configure the routing of the router (using the
"first match" mode), in order that the "subscriptions" resources are not
being kept by the "catch-all pattern "/channels/{channel}".
Best regards,
Thierry Boileau
[1] http://wiki.restlet.org/docs_2.0/143-restlet.html
> I am implementing a RESTful publish subscribe protocol using Restlet. For
> this purpose, anything under the pattern /channels should be considered as a
> channel. For example:
> /channels/building
> /channels/building/floor1/room101
> are both channels.
>
> However, I would like to capture the pattern subscriptions under each channel
> as a different Restlet resource:
> /channels/building/subscriptions
> /channels/building/floor1/room101/subscriptions
>
> Any easy hint to achieve this in the most convenient way?
>
> Thanks!
> Vlatko
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2423087
>
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2423260