it.eng.spagobi.rest.interceptors
Class AuditRestPostInterceptor

java.lang.Object
  extended by it.eng.spagobi.rest.interceptors.AuditRestPostInterceptor
All Implemented Interfaces:
org.jboss.resteasy.spi.interception.PostProcessInterceptor

@Provider
public class AuditRestPostInterceptor
extends java.lang.Object
implements org.jboss.resteasy.spi.interception.PostProcessInterceptor

Author:
Alberto Ghedin (alberto.ghedin@eng.it) Updates the audit log for the successful requests. For the services that throw exceptions look at RestExceptionMapper

Constructor Summary
AuditRestPostInterceptor()
           
 
Method Summary
 void postProcess(org.jboss.resteasy.core.ServerResponse response)
          Postprocess all the REST requests..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditRestPostInterceptor

public AuditRestPostInterceptor()
Method Detail

postProcess

public void postProcess(org.jboss.resteasy.core.ServerResponse response)
Postprocess all the REST requests.. Add an entry into the audit log for every rest service

Specified by:
postProcess in interface org.jboss.resteasy.spi.interception.PostProcessInterceptor