public interface 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.
|
void writeOutboundRequestHeaders(HttpCarbonMessage httpOutboundRequest)
httpOutboundRequest - HttpCarbonMessage which represents the outbound messagevoid writeOutboundRequestEntity(HttpCarbonMessage httpOutboundRequest, io.netty.handler.codec.http.HttpContent httpContent)
httpOutboundRequest - HttpCarbonMessage which represents the outbound messagehttpContent - the content of the entity bodyvoid readInboundResponseHeaders(TargetHandler targetHandler, io.netty.handler.codec.http.HttpResponse httpInboundResponse)
targetHandler - the target handlerhttpInboundResponse - HttpResponse which is received at target handlervoid readInboundResponseEntityBody(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpContent httpContent,
HttpCarbonMessage inboundResponseMsg)
throws Exception
ctx - the channel handler contexthttpContent - the initial content of the entity bodyinboundResponseMsg - HttpCarbonMessage which represents the inbound messageException - if an error occurs while reading responsevoid handleAbruptChannelClosure(TargetHandler targetHandler, HttpResponseFuture httpResponseFuture)
targetHandler - the target handlerhttpResponseFuture - to notify the closurevoid handleIdleTimeoutConnectionClosure(TargetHandler targetHandler, HttpResponseFuture httpResponseFuture, String channelID)
targetHandler - the target handlerhttpResponseFuture - to notify the closurechannelID - the channel idCopyright © 2022 WSO2. All rights reserved.