use of org.webpieces.router.impl.proxyout.filereaders.RequestInfo in project webpieces by deanhiller.
the class ResponseStaticProcessor method renderStaticResponse.
public RouterStreamRef renderStaticResponse(RenderStaticResponse renderStatic) {
if (log.isDebugEnabled())
log.debug("Sending render static html response. req=" + request);
RequestInfo requestInfo = new RequestInfo(routerRequest, request, pool, handler);
XFuture<StreamWriter> writer = futureUtil.catchBlockWrap(() -> reader.sendRenderStatic(requestInfo, renderStatic, handler), (t) -> convert(t));
// the file an pushing it back...
return new RouterStreamRef("staticRef", writer, null);
}
Aggregations