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
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
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
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
4 matches
Mail list logo