[Resteasy-users] Intercept Object after being unmarshalled but before handed over to method
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 access to the unmarshalled POJO? If there is no way to solve this in RESTeasy I'll have to add some AOP magic… Cheers, Felipe -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users
Re: [Resteasy-users] PreProcessInterceptor - HttpResponse / HttpServletResponse object
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 object – is there a way to retrieve it in the PreProcessInterceptor? Thanks in advance! Regards, Nebo -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users
Re: [Resteasy-users] Intercept Object after being unmarshalled but before handed over to method
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 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 access to the unmarshalled POJO? If there is no way to solve this in RESTeasy I'll have to add some AOP magic… Cheers, Felipe -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users