public interface ListenerState
| Modifier and Type | Method and Description |
|---|---|
void |
handleAbruptChannelClosure(ServerConnectorFuture serverConnectorFuture)
Handle channel closure occurred due to abrupt connection failures.
|
io.netty.channel.ChannelFuture |
handleIdleTimeoutConnectionClosure(ServerConnectorFuture serverConnectorFuture,
io.netty.channel.ChannelHandlerContext ctx)
Handle channel closure occurred due to idle timeout.
|
void |
readInboundRequestBody(Object inboundRequestEntityBody)
Read entity body of inbound request.
|
void |
readInboundRequestHeaders(HttpCarbonMessage inboundRequestMsg,
io.netty.handler.codec.http.HttpRequest inboundRequestHeaders)
Read headers of inbound request.
|
void |
writeOutboundResponseBody(HttpOutboundRespListener outboundResponseListener,
HttpCarbonMessage outboundResponseMsg,
io.netty.handler.codec.http.HttpContent httpContent)
Write entity body of outbound response.
|
void |
writeOutboundResponseHeaders(HttpCarbonMessage outboundResponseMsg,
io.netty.handler.codec.http.HttpContent httpContent)
Write headers of outbound response.
|
void readInboundRequestHeaders(HttpCarbonMessage inboundRequestMsg, io.netty.handler.codec.http.HttpRequest inboundRequestHeaders)
inboundRequestMsg - HttpCarbonMessage which represents the inbound messageinboundRequestHeaders - HttpRequest which is received at source handlervoid readInboundRequestBody(Object inboundRequestEntityBody) throws ServerConnectorException
inboundRequestEntityBody - which represents the inbound Http contentServerConnectorException - if an error occurs while notifying to server connector futurevoid writeOutboundResponseHeaders(HttpCarbonMessage outboundResponseMsg, io.netty.handler.codec.http.HttpContent httpContent)
outboundResponseMsg - HttpCarbonMessage which represents the outbound messagehttpContent - the initial content of the entity bodyvoid writeOutboundResponseBody(HttpOutboundRespListener outboundResponseListener, HttpCarbonMessage outboundResponseMsg, io.netty.handler.codec.http.HttpContent httpContent)
outboundResponseListener - outbound response listener of response futureoutboundResponseMsg - HttpCarbonMessage which represents the outbound messagehttpContent - the content of the entity bodyvoid handleAbruptChannelClosure(ServerConnectorFuture serverConnectorFuture)
serverConnectorFuture - to notify the closureio.netty.channel.ChannelFuture handleIdleTimeoutConnectionClosure(ServerConnectorFuture serverConnectorFuture, io.netty.channel.ChannelHandlerContext ctx)
serverConnectorFuture - to notify the closurectx - the channel handler contextCopyright © 2022 WSO2. All rights reserved.