Search in sources :

Example 1 with StoredResponseStreamSinkConduit

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);
}
Also used : HttpServerExchange(io.undertow.server.HttpServerExchange) StoredResponseStreamSinkConduit(io.undertow.conduits.StoredResponseStreamSinkConduit) StoredResponseStreamSinkConduit(io.undertow.conduits.StoredResponseStreamSinkConduit) StreamSinkConduit(org.xnio.conduits.StreamSinkConduit)

Aggregations

StoredResponseStreamSinkConduit (io.undertow.conduits.StoredResponseStreamSinkConduit)1 HttpServerExchange (io.undertow.server.HttpServerExchange)1 StreamSinkConduit (org.xnio.conduits.StreamSinkConduit)1