Jackson Integration with JAXRS

2011-04-18 Thread jwalzer
I have recently switched over a restlet resource to use JAXRS. Everything seems to be going as planned but I came upon an issue that I can't seem to resolve. I have a method annotated with @POST that accepts "application/json". application/json requests seem to resolve to the correct method, how

Response headers in redirect

2011-04-18 Thread Dustin Jenkins
I'm using Restlet 2.1m3 in Tomcat 6.0.32 with JDK 1.6.0_24 on Linux. I'm trying to pass along the X-Forwarded-For header in my redirectSeeOther(String) call. Is this possible? getResponse().getAttributes().put("org.restlet.http.headers", new Form("X-Forwarded-For=192.168.1.1")) followed by ge

Exception Handling Question

2011-04-18 Thread Tim Christensen
We have a problem getting the original exception out of the ResourceException. If there is an exception thrown in the @Get method, we do something like this: @get method { catch(Throwable t) { throw new ResourceException(t); } } Through a variety of different efforts, this one the final on

Re: fine grained authorization

2011-04-18 Thread Ishaaq Chandy
Thanks, but role-based authorization was not exactly what I was after. When I said instance-specific authorization I meant authorization based on particular resource instances. So, as a crude example, if I have a Resource type called House and I have a role called HouseOwner - not every HouseOwner