public class ReceivingEntityBody extends Object implements SenderState
| Modifier and Type | Method and Description |
|---|---|
void |
handleAbruptChannelClosure(TargetHandler targetHandler,
HttpResponseFuture httpResponseFuture)
Handle channel closure occurred due to abrupt connection failures.
|
void |
handleIdleTimeoutConnectionClosure(TargetHandler targetHandler,
HttpResponseFuture httpResponseFuture,
String channelID)
Handle channel closure occurred due to idle timeout.
|
void |
readInboundResponseEntityBody(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpContent httpContent,
HttpCarbonMessage inboundResponseMsg)
Write headers of outbound request.
|
void |
readInboundResponseHeaders(TargetHandler targetHandler,
io.netty.handler.codec.http.HttpResponse httpInboundResponse)
Read headers of inbound response.
|
void |
writeOutboundRequestEntity(HttpCarbonMessage httpOutboundRequest,
io.netty.handler.codec.http.HttpContent httpContent)
Write entity body of outbound request.
|
void |
writeOutboundRequestHeaders(HttpCarbonMessage httpOutboundRequest)
Write headers of outbound request.
|
public void writeOutboundRequestHeaders(HttpCarbonMessage httpOutboundRequest)
SenderStatewriteOutboundRequestHeaders in interface SenderStatehttpOutboundRequest - HttpCarbonMessage which represents the outbound messagepublic void writeOutboundRequestEntity(HttpCarbonMessage httpOutboundRequest, io.netty.handler.codec.http.HttpContent httpContent)
SenderStatewriteOutboundRequestEntity in interface SenderStatehttpOutboundRequest - HttpCarbonMessage which represents the outbound messagehttpContent - the content of the entity bodypublic void readInboundResponseHeaders(TargetHandler targetHandler, io.netty.handler.codec.http.HttpResponse httpInboundResponse)
SenderStatereadInboundResponseHeaders in interface SenderStatetargetHandler - the target handlerhttpInboundResponse - HttpResponse which is received at target handlerpublic void readInboundResponseEntityBody(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpContent httpContent,
HttpCarbonMessage inboundResponseMsg)
throws Exception
SenderStatereadInboundResponseEntityBody in interface SenderStatectx - the channel handler contexthttpContent - the initial content of the entity bodyinboundResponseMsg - HttpCarbonMessage which represents the inbound messageException - if an error occurs while reading responsepublic void handleAbruptChannelClosure(TargetHandler targetHandler, HttpResponseFuture httpResponseFuture)
SenderStatehandleAbruptChannelClosure in interface SenderStatetargetHandler - the target handlerhttpResponseFuture - to notify the closurepublic void handleIdleTimeoutConnectionClosure(TargetHandler targetHandler, HttpResponseFuture httpResponseFuture, String channelID)
SenderStatehandleIdleTimeoutConnectionClosure in interface SenderStatetargetHandler - the target handlerhttpResponseFuture - to notify the closurechannelID - the channel idCopyright © 2022 WSO2. All rights reserved.