return innerRender;
}
@Override
public void render(Writer out, Window w) throws IOException {
WindowRender render = this.innerRender;
if (render == null) {
render = simpleRender;
}
if (w instanceof WindowForView) {
w = ((WindowForView) w).getInner();
}
WindowImpl window = (WindowImpl) w;
if (window.getContentLength() >= 0) {
if (logger.isDebugEnabled()) {
logger.debug("rendering window: " + window.getPath() + "; contentLength="
+ window.getContentLength());
}
render.render(out, window);
return;
}
if (logger.isInfoEnabled()) {
logger.info("rendering a unsuccess window: " + window.getPath() + "; contentLength="
+ window.getContentLength() + "; sc=" + window.getStatusCode());