public class ReceivingHeaders extends Object implements ListenerState
| Constructor and Description |
|---|
ReceivingHeaders(Http2SourceHandler http2SourceHandler,
Http2MessageStateContext http2MessageStateContext) |
| 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 ReceivingHeaders(Http2SourceHandler http2SourceHandler, Http2MessageStateContext http2MessageStateContext)
public void readInboundRequestHeaders(io.netty.channel.ChannelHandlerContext ctx,
Http2HeadersFrame headersFrame)
throws io.netty.handler.codec.http2.Http2Exception
ListenerStatereadInboundRequestHeaders in interface ListenerStatectx - channel handler contextheadersFrame - inbound header frameio.netty.handler.codec.http2.Http2Exception - if an error occurs while readingpublic 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)
ListenerStatewriteOutboundResponseBody in interface ListenerStatehttp2OutboundRespListener - outbound response listener of response futureoutboundResponseMsg - outbound response messagehttpContent - the content of the entity bodystreamId - the current stream idpublic void writeOutboundPromise(Http2OutboundRespListener http2OutboundRespListener, Http2PushPromise pushPromise)
ListenerStatewriteOutboundPromise in interface ListenerStatehttp2OutboundRespListener - outbound response listener of response futurepushPromise - outbound promise messagepublic 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 © 2021 WSO2. All rights reserved.