public class Http2OutboundRespListener extends Object implements HttpConnectorListener
Http2OutboundRespListener is responsible for listening for outbound response messages
and delivering them to the client.| Modifier and Type | Class and Description |
|---|---|
class |
Http2OutboundRespListener.ResponseWriter
Responsible for writing HTTP/2 outbound response to the caller.
|
| Constructor and Description |
|---|
Http2OutboundRespListener(HttpServerChannelInitializer serverChannelInitializer,
HttpCarbonMessage inboundRequestMsg,
io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http2.Http2Connection conn,
io.netty.handler.codec.http2.Http2ConnectionEncoder encoder,
int streamId,
String serverName,
String remoteAddress,
ServerRemoteFlowControlListener remoteFlowControlListener,
Http2ServerChannel http2ServerChannel) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.channel.ChannelHandlerContext |
getChannelHandlerContext() |
io.netty.handler.codec.http2.Http2Connection |
getConnection() |
io.netty.handler.codec.http2.Http2ConnectionEncoder |
getEncoder() |
Http2ServerChannel |
getHttp2ServerChannel() |
Calendar |
getInboundRequestArrivalTime() |
HttpCarbonMessage |
getInboundRequestMsg() |
int |
getOriginalStreamId() |
HttpCarbonMessage |
getOutboundResponseMsg() |
HttpResponseFuture |
getOutboundRespStatusFuture() |
String |
getRemoteAddress() |
HttpServerChannelInitializer |
getServerChannelInitializer() |
String |
getServerName() |
void |
onError(Throwable throwable)
Each error event triggered by connector ends up here.
|
void |
onMessage(HttpCarbonMessage outboundResponseMsg)
Gets notified for events on a http message.
|
void |
onPushPromise(Http2PushPromise pushPromise)
Gets notified for an event on a
Http2PushPromise. |
void |
onPushResponse(int promiseId,
HttpCarbonMessage outboundResponseMsg)
Gets notified for events on Push responses.
|
void |
removeBackPressureListener() |
void |
removeDefaultResponseWriter() |
void |
resetStream(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http2.Http2Error http2Error) |
public Http2OutboundRespListener(HttpServerChannelInitializer serverChannelInitializer, HttpCarbonMessage inboundRequestMsg, io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http2.Http2Connection conn, io.netty.handler.codec.http2.Http2ConnectionEncoder encoder, int streamId, String serverName, String remoteAddress, ServerRemoteFlowControlListener remoteFlowControlListener, Http2ServerChannel http2ServerChannel)
public void onMessage(HttpCarbonMessage outboundResponseMsg)
HttpConnectorListeneronMessage in interface HttpConnectorListeneroutboundResponseMsg - contains the state change information of the event.public void onError(Throwable throwable)
HttpConnectorListeneronError in interface HttpConnectorListenerthrowable - contains the error details of the event.public void onPushPromise(Http2PushPromise pushPromise)
HttpConnectorListenerHttp2PushPromise.onPushPromise in interface HttpConnectorListenerpushPromise - the push promise messagepublic void onPushResponse(int promiseId,
HttpCarbonMessage outboundResponseMsg)
HttpConnectorListeneronPushResponse in interface HttpConnectorListenerpromiseId - the promise id of the push responseoutboundResponseMsg - the push response messagepublic void resetStream(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http2.Http2Error http2Error)
throws io.netty.handler.codec.http2.Http2Exception
io.netty.handler.codec.http2.Http2Exceptionpublic io.netty.channel.ChannelHandlerContext getChannelHandlerContext()
public io.netty.handler.codec.http2.Http2ConnectionEncoder getEncoder()
public HttpResponseFuture getOutboundRespStatusFuture()
public HttpServerChannelInitializer getServerChannelInitializer()
public HttpCarbonMessage getInboundRequestMsg()
public HttpCarbonMessage getOutboundResponseMsg()
public io.netty.handler.codec.http2.Http2Connection getConnection()
public Calendar getInboundRequestArrivalTime()
public int getOriginalStreamId()
public String getRemoteAddress()
public String getServerName()
public void removeDefaultResponseWriter()
public void removeBackPressureListener()
public Http2ServerChannel getHttp2ServerChannel()
Copyright © 2023 WSO2. All rights reserved.