Search in sources :

Example 1 with RequestInfo

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);
}
Also used : StreamWriter(com.webpieces.http2.api.streaming.StreamWriter) RequestInfo(org.webpieces.router.impl.proxyout.filereaders.RequestInfo)

Aggregations

StreamWriter (com.webpieces.http2.api.streaming.StreamWriter)1 RequestInfo (org.webpieces.router.impl.proxyout.filereaders.RequestInfo)1