[Resteasy-users] Intercept Object after being unmarshalled but before handed over to method

2012-10-15 Thread Felipe Sere
Hi, I have been looking for a way to execute code after RESTeasy unmarshalled my XML/JSON to a POJO but before it is handed over to the selected method. I'd like to do this to add hibernate-validation to my POJOs and avoid my methods getting invalid objects. What kind of interceptor gets me

Re: [Resteasy-users] PreProcessInterceptor - HttpResponse / HttpServletResponse object

2012-10-15 Thread Bill Burke
Does @Context HttpServletResposne not work? On 10/15/2012 8:21 AM, Zebeljan, Nebojsa wrote: Hi, I'm doing some authorizationin a PreProcessInterceptor. The auth framework needs the HttpServletResponse object passed by. At the moment I'm seeing no possibilities to get the HttpServletResponse

Re: [Resteasy-users] Intercept Object after being unmarshalled but before handed over to method

2012-10-15 Thread Bill Burke
MessageBodyReaderInterceptor (or ReaderInterceptor in JAX-RS 2.0). Do things after proceed() and you can access the Java object after its been unmarshalled. On 10/15/2012 5:12 AM, Felipe Sere wrote: Hi, I have been looking for a way to execute code after RESTeasy unmarshalled my XML/JSON to