use of io.undertow.conduits.StoredResponseStreamSinkConduit in project undertow by undertow-io.
the class StoredResponseHandler method handleRequest.
@Override
public void handleRequest(HttpServerExchange exchange) throws Exception {
exchange.addResponseWrapper(new ConduitWrapper<StreamSinkConduit>() {
@Override
public StreamSinkConduit wrap(ConduitFactory<StreamSinkConduit> factory, HttpServerExchange exchange) {
return new StoredResponseStreamSinkConduit(factory.create(), exchange);
}
});
next.handleRequest(exchange);
}
Aggregations