Returning a List of resources is correct. Then, use a HAPI server interceptor, like:
@Interceptor
public class BundleModificationInterceptor {
@Hook(value = Pointcut.SERVER_OUTGOING_RESPONSE)
public boolean outgoingResponse(RequestDetails requestDetails, IBaseResource response, HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws AuthenticationException {
if (response instanceof Bundle) {
Bundle bundle = (Bundle) response;
// .... check for iti67 response and then do whatever you want here
return true;
}
}
Don't forget to register it:
servlet.registerInterceptor(new
BundleModificationInterceptor
());
regards
Christian