Search in sources :

Example 1 with HttpConnectorListener

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();
}
Also used : HttpConnectorListener(org.wso2.transport.http.netty.contract.HttpConnectorListener) HttpMessageDataStreamer(org.wso2.transport.http.netty.message.HttpMessageDataStreamer)

Aggregations

HttpConnectorListener (org.wso2.transport.http.netty.contract.HttpConnectorListener)1 HttpMessageDataStreamer (org.wso2.transport.http.netty.message.HttpMessageDataStreamer)1