public class EntityBodyReceived extends Object implements SenderState
| Modifier and Type | Method and Description |
|---|---|
void |
handleConnectionClose(OutboundMsgHolder outboundMsgHolder)
Handles the connection close event.
|
void |
handleStreamTimeout(OutboundMsgHolder outboundMsgHolder,
boolean serverPush,
io.netty.channel.ChannelHandlerContext ctx,
int streamId)
Handles stream timeout.
|
void |
readInboundPromise(io.netty.channel.ChannelHandlerContext ctx,
Http2PushPromise http2PushPromise,
OutboundMsgHolder outboundMsgHolder)
Reads inbound promise.
|
void |
readInboundResponseBody(io.netty.channel.ChannelHandlerContext ctx,
Http2DataFrame http2DataFrame,
OutboundMsgHolder outboundMsgHolder,
boolean serverPush,
Http2MessageStateContext http2MessageStateContext)
Writes headers of outbound request.
|
void |
readInboundResponseHeaders(io.netty.channel.ChannelHandlerContext ctx,
Http2HeadersFrame http2HeadersFrame,
OutboundMsgHolder outboundMsgHolder,
boolean serverPush,
Http2MessageStateContext http2MessageStateContext)
Reads headers of inbound response.
|
void |
writeOutboundRequestBody(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpContent httpContent,
Http2MessageStateContext http2MessageStateContext)
Writes entity body of outbound request.
|
void |
writeOutboundRequestHeaders(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpContent httpContent)
Writes headers of outbound request.
|
public void writeOutboundRequestHeaders(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpContent httpContent)
SenderStatewriteOutboundRequestHeaders in interface SenderStatectx - the channel handler contexthttpContent - the initial content of the entity bodypublic void writeOutboundRequestBody(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpContent httpContent,
Http2MessageStateContext http2MessageStateContext)
throws io.netty.handler.codec.http2.Http2Exception
SenderStatewriteOutboundRequestBody in interface SenderStatectx - the channel handler contexthttpContent - the content of the entity bodyhttp2MessageStateContext - the message state contextio.netty.handler.codec.http2.Http2Exception - if a protocol or connection related error occurredpublic void readInboundResponseHeaders(io.netty.channel.ChannelHandlerContext ctx,
Http2HeadersFrame http2HeadersFrame,
OutboundMsgHolder outboundMsgHolder,
boolean serverPush,
Http2MessageStateContext http2MessageStateContext)
throws io.netty.handler.codec.http2.Http2Exception
SenderStatereadInboundResponseHeaders in interface SenderStatectx - the channel handler contexthttp2HeadersFrame - the HTTP/2 header frameoutboundMsgHolder - the outbound message holderserverPush - is this a server push response or nothttp2MessageStateContext - the message state contextio.netty.handler.codec.http2.Http2Exceptionpublic void readInboundResponseBody(io.netty.channel.ChannelHandlerContext ctx,
Http2DataFrame http2DataFrame,
OutboundMsgHolder outboundMsgHolder,
boolean serverPush,
Http2MessageStateContext http2MessageStateContext)
SenderStatereadInboundResponseBody in interface SenderStatectx - the channel handler contexthttp2DataFrame - the HTTP/2 data frameoutboundMsgHolder - the outbound message holderserverPush - is this a server push response or nothttp2MessageStateContext - the message state contextpublic void readInboundPromise(io.netty.channel.ChannelHandlerContext ctx,
Http2PushPromise http2PushPromise,
OutboundMsgHolder outboundMsgHolder)
SenderStatereadInboundPromise in interface SenderStatectx - the channel handler contexthttp2PushPromise - the HTTP/2 promise frameoutboundMsgHolder - the outbound message holderpublic void handleStreamTimeout(OutboundMsgHolder outboundMsgHolder, boolean serverPush, io.netty.channel.ChannelHandlerContext ctx, int streamId)
SenderStatehandleStreamTimeout in interface SenderStateoutboundMsgHolder - the outbound message holderserverPush - indicates the response typepublic void handleConnectionClose(OutboundMsgHolder outboundMsgHolder)
SenderStatehandleConnectionClose in interface SenderStateCopyright © 2021 WSO2. All rights reserved.