public class ReceivingEntityBody extends Object implements ListenerState
| Modifier and Type | Method and Description |
|---|---|
void |
handleAbruptChannelClosure(ServerConnectorFuture serverConnectorFuture,
io.netty.channel.ChannelHandlerContext ctx,
Http2OutboundRespListener http2OutboundRespListener,
int streamId)
Handles the abrupt channel closure.
|
void |
handleStreamTimeout(ServerConnectorFuture serverConnectorFuture,
io.netty.channel.ChannelHandlerContext ctx,
Http2OutboundRespListener http2OutboundRespListener,
int streamId)
Handles the stream timeout.
|
void |
readInboundRequestBody(Http2SourceHandler http2SourceHandler,
Http2DataFrame dataFrame)
Reads entity body of inbound request.
|
void |
readInboundRequestHeaders(io.netty.channel.ChannelHandlerContext ctx,
Http2HeadersFrame headersFrame)
Reads headers of inbound request.
|
void |
writeOutboundPromise(Http2OutboundRespListener http2OutboundRespListener,
Http2PushPromise pushPromise)
Writes the outbound promise message.
|
void |
writeOutboundResponseBody(Http2OutboundRespListener http2OutboundRespListener,
HttpCarbonMessage outboundResponseMsg,
io.netty.handler.codec.http.HttpContent httpContent,
int streamId)
Writes entity body of outbound response.
|
void |
writeOutboundResponseHeaders(Http2OutboundRespListener http2OutboundRespListener,
HttpCarbonMessage outboundResponseMsg,
io.netty.handler.codec.http.HttpContent httpContent,
int streamId)
Writes headers of outbound response.
|
public void readInboundRequestHeaders(io.netty.channel.ChannelHandlerContext ctx,
Http2HeadersFrame headersFrame)
ListenerStatereadInboundRequestHeaders in interface ListenerStatectx - channel handler contextheadersFrame - inbound header framepublic void readInboundRequestBody(Http2SourceHandler http2SourceHandler, Http2DataFrame dataFrame)
ListenerStatereadInboundRequestBody in interface ListenerStatehttp2SourceHandler - HTTP2 source handlerdataFrame - inbound data framepublic void writeOutboundResponseHeaders(Http2OutboundRespListener http2OutboundRespListener, HttpCarbonMessage outboundResponseMsg, io.netty.handler.codec.http.HttpContent httpContent, int streamId)
ListenerStatewriteOutboundResponseHeaders in interface ListenerStatehttp2OutboundRespListener - outbound response listener of response futureoutboundResponseMsg - outbound response messagehttpContent - the initial content of the entity bodystreamId - the current stream idpublic void writeOutboundResponseBody(Http2OutboundRespListener http2OutboundRespListener, HttpCarbonMessage outboundResponseMsg, io.netty.handler.codec.http.HttpContent httpContent, int streamId) throws io.netty.handler.codec.http2.Http2Exception
ListenerStatewriteOutboundResponseBody in interface ListenerStatehttp2OutboundRespListener - outbound response listener of response futureoutboundResponseMsg - outbound response messagehttpContent - the content of the entity bodystreamId - the current stream idio.netty.handler.codec.http2.Http2Exception - if an error occurs while writingpublic void writeOutboundPromise(Http2OutboundRespListener http2OutboundRespListener, Http2PushPromise pushPromise) throws io.netty.handler.codec.http2.Http2Exception
ListenerStatewriteOutboundPromise in interface ListenerStatehttp2OutboundRespListener - outbound response listener of response futurepushPromise - outbound promise messageio.netty.handler.codec.http2.Http2Exception - if an error occurs while writingpublic void handleStreamTimeout(ServerConnectorFuture serverConnectorFuture, io.netty.channel.ChannelHandlerContext ctx, Http2OutboundRespListener http2OutboundRespListener, int streamId)
ListenerStatehandleStreamTimeout in interface ListenerStateserverConnectorFuture - the sever connector futurectx - the channel handler contexthttp2OutboundRespListener - the http/2 outbound response listenerstreamId - the stream idpublic void handleAbruptChannelClosure(ServerConnectorFuture serverConnectorFuture, io.netty.channel.ChannelHandlerContext ctx, Http2OutboundRespListener http2OutboundRespListener, int streamId)
ListenerStatehandleAbruptChannelClosure in interface ListenerStateserverConnectorFuture - the sever connector futurectx - the channel handler contexthttp2OutboundRespListener - the http/2 outbound response listenerstreamId - the stream idCopyright © 2023 WSO2. All rights reserved.