[Resteasy-users] Issue with using RegEx and Escaping in the @Param
Hi, I trying to integrate OData4J (http://code.google.com/p/odata4j) with Resteasy, so that I can provide OData services with in Teiid. OData4J uses @Paths like @Path({count: [$]count})= {uri}/$count @Path({first: \\$}value)= {uri}/$value to define OData spec. Where in the above '$' is part of URI, and at the same time it has special meaning in the regex with jax-rs. Once, I wired these classes in a Resteasy application, during the start up, deployment fails with Illegal Group Name exception, as regex compilation failed. I debugged through that part of the code, looks like somewhere with implicit escaping of string in Resteasy is causing the issue. Is above type of paths supported in Resteasy? I am using Resteasy version in JBoss AS 7.1.1. Thanks. Ramesh.. -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users
Re: [Resteasy-users] Issue with using RegEx and Escaping in the @Param
On 11/16/2012 4:30 PM, Ramesh Reddy wrote: Hi, I trying to integrate OData4J (http://code.google.com/p/odata4j) with Resteasy, so that I can provide OData services with in Teiid. OData4J uses @Paths like @Path({count: [$]count})= {uri}/$count @Path({first: \\$}value)= {uri}/$value Yeah, i can reproduce. Try moving the '$' character outside the expression, i.e. @Path(${count : \\d+}) or @Path({before}${after}) That seemed to work for me. Bill -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users
[Resteasy-users] Automatic Cookie Passing
Hello All, I am using the RESTEasy client framework for testing my web services. I have a login API that accepts user credentials and creates a session cookie. Subsequent to the call to this API, I can call other APIs in my system which will expect the session cookie to be passed back. I have two questions. 1) Is there are way to set a configuration in RESTEasy client classes have all the cookies received in the first call to be pased back in subsequent calls. 2) If #1 is not possible, is there a way to read a cookie from ClientResponse or using some other mechanism. I can then pass the cookie value using @CookieParam. Any help is highly appreciated. -- regards, Saravanabavagugan Senior Software Engineer -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users