use of org.wso2.transport.http.netty.contract.HttpConnectorListener in project ballerina by ballerina-lang.
the class ConnectionAction method getOutputStream.
private OutputStream getOutputStream(HTTPCarbonMessage responseMessage, HttpResponseFuture outboundResponseStatusFuture) {
HttpMessageDataStreamer outboundMsgDataStreamer = new HttpMessageDataStreamer(responseMessage);
HttpConnectorListener outboundResStatusConnectorListener = new HttpResponseConnectorListener(outboundMsgDataStreamer);
outboundResponseStatusFuture.setHttpConnectorListener(outboundResStatusConnectorListener);
return outboundMsgDataStreamer.getOutputStream();
}
Aggregations