@@ -98,15 +111,67 @@ public abstract class ProgressiveRendering {
status=ERROR;
}finally{
SecurityContextHolder.setContext(orig);
setCurrentRequest(null);
LOG.log(Level.FINE,"{0} finished in {1}msec with status {2}",newObject[]{uri,System.currentTimeMillis()-start,status});
}
}
});
}
/**
* Copies important fields from the current HTTP request and makes them available during {@link #compute}.
* This is necessary because some model methods such as {@link AbstractItem#getUrl} behave differently when called from a request.
*/
@java.lang.SuppressWarnings({"rawtypes","unchecked"})// public RequestImpl ctor requires List<AncestorImpl> yet AncestorImpl is not public! API design flaw