I want to write the Resource that will handle the following URL pattern:
openstorage/{version}/{prefix}/{user}/{collection}/{resource}

I wish to use the same Resource even if {resource} is complex. For example to 
server  both 
openstorage/0.1/test/john/bookmarks/cars  (resource=cars, collection=bookmarks)
and 
openstorage/0.1/test/john/bookmarks/cars/lexus (resource=cars/lexus, 
collection=bookmarks)



I'll try to implement this using 
@RestResource
@Path(value="openstorage/{version}/{prefix}/{user}/{collection}/{resource}", 
limited=false)
public class WeaveBasicObjectResource {
         
        public WeaveBasicObjectResource(                        
@PathParam("resource") String resource,                 
@PathParam("collection") String collection,                     
@PathParam("user") String user,         @PathParam("prefix") String prefix,     
@PathParam("version") String version
                        ) {
                System.err.println("WBO for resource " + resource + ", 
collection " + collection + ", user " + user +
                                ", prefix " + prefix + ", version " + version); 
        
        }       

.....


but it constantly add / symbol to anything except resourc, means it reports 
version="0.1/test" and so on (collection=bookmarks/cars). 

I wish to get in resource the "cars/lexus" only. 

Am i right with uses of limited=false? or how to process this with JAX-RX 
support.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1055349

Reply via email to