On Fri, Mar 8, 2013 at 10:43 AM, Kasun Weranga <[email protected]> wrote:
> > > On Thu, Mar 7, 2013 at 6:54 PM, Ruchira Wageesha <[email protected]> wrote: > >> Hi Kasun, >> >> You can prefix 'restOfURI' with '+' sign and get what you want. >> >> uriMatcher.match('/helloapp/{+restOfURI}') >> > > Great. Thanks. > It is better to have this documented in here [1], because I can see we supports some other operators like '#', '.' etc[2]. But these are not documented. [1] http://jaggeryjs.org/apidocs/urimatcher.jag [2] https://svn.wso2.org/repos/wso2/trunk/commons/uri-templates/1.0.0/src/main/java/org/wso2/uri/template/parser/URITemplateParser.java Thanks, KasunW. > >> >> then, >> >> uriMatcher.elements().restOfURI >> >> >> On Fri, Mar 8, 2013 at 3:17 AM, Kasun Weranga <[email protected]> wrote: >> >>> Hi, >>> >>> We have a requirement for extracting uri value after some pattern. ex:- >>> uri pattern is something like this - /helloapp/* (/helloapp/aa/bb/c.jag, >>> /helloapp/aa/bbb/cc/d.jag) >>> Is there a way to get the value directly after the '/helloapp/' ? >>> something like uriMatcher.match('/helloapp/{restOfURI}'), so we can get >>> this as uriMatcher.elements().restOfURI >>> >>> I found a workaround by dynamically creating the match expression and >>> get values and combine, but I want to know is there any direct way to >>> achieve this without using that workaround? >>> >>> Thanks, >>> KasunW. >>> >>> >>> -- >>> *Kasun Weranga* >>> ** >>> Member, Management Committee - Data Technologies >>> Software Engineer >>> *WSO2, Inc. >>> *lean.enterprise.middleware. >>> mobile : +94 772314602 >>> <http://sanjeewamalalgoda.blogspot.com/>blog : >>> http://kasunweranga.blogspot.com/ >>> >> >> >> >> -- >> *Ruchira Wageesha >> Senior Software Engineer & Member, Management Committee, Development >> Technologies* >> *WSO2 Inc. - lean . enterprise . middleware | wso2.com* >> * >> email: [email protected], blog: ruchirawageesha.blogspot.com, mobile: +94 >> 77 5493444* >> > > > > -- > *Kasun Weranga* > ** > Member, Management Committee - Data Technologies > Software Engineer > *WSO2, Inc. > *lean.enterprise.middleware. > mobile : +94 772314602 > <http://sanjeewamalalgoda.blogspot.com/>blog : > http://kasunweranga.blogspot.com/ > -- *Kasun Weranga* ** Member, Management Committee - Data Technologies Software Engineer *WSO2, Inc. *lean.enterprise.middleware. mobile : +94 772314602 <http://sanjeewamalalgoda.blogspot.com/>blog : http://kasunweranga.blogspot.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
