public class StateUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTOR_NOTIFYING_ERROR |
static String |
ILLEGAL_STATE_ERROR |
| Modifier and Type | Method and Description |
|---|---|
static void |
addTrailerHeaderIfPresent(HttpCarbonMessage outboundResponseMsg) |
static boolean |
checkChunkingCompatibility(String httpVersion,
ChunkConfig chunkConfig) |
static void |
handleIncompleteInboundMessage(HttpCarbonMessage inboundRequestMsg,
String errorMessage) |
static void |
notifyIfHeaderWriteFailure(HttpResponseFuture httpResponseStatusFuture,
io.netty.channel.ChannelFuture outboundHeaderFuture,
String errorMsg) |
static void |
respondToIncompleteRequest(io.netty.channel.Channel channel,
HttpOutboundRespListener outboundResponseListener,
ListenerReqRespStateManager listenerReqRespStateManager,
HttpCarbonMessage outboundResponseMsg,
io.netty.handler.codec.http.HttpContent httpContent,
String errorMsg) |
static io.netty.channel.ChannelFuture |
sendRequestTimeoutResponse(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpResponseStatus status,
io.netty.buffer.ByteBuf content,
int length,
float httpVersion,
String serverName) |
static void |
setInboundTrailersToNewMessage(io.netty.handler.codec.http.HttpHeaders trailers,
HttpCarbonMessage responseMsg)
Populate inboound trailer of the response content to the HttpCarbonMessage and clear the trailer from the
HttpContent.
|
public static final String ILLEGAL_STATE_ERROR
public static final String CONNECTOR_NOTIFYING_ERROR
public static boolean checkChunkingCompatibility(String httpVersion, ChunkConfig chunkConfig)
public static void notifyIfHeaderWriteFailure(HttpResponseFuture httpResponseStatusFuture, io.netty.channel.ChannelFuture outboundHeaderFuture, String errorMsg)
public static io.netty.channel.ChannelFuture sendRequestTimeoutResponse(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpResponseStatus status,
io.netty.buffer.ByteBuf content,
int length,
float httpVersion,
String serverName)
public static void handleIncompleteInboundMessage(HttpCarbonMessage inboundRequestMsg, String errorMessage)
public static void respondToIncompleteRequest(io.netty.channel.Channel channel,
HttpOutboundRespListener outboundResponseListener,
ListenerReqRespStateManager listenerReqRespStateManager,
HttpCarbonMessage outboundResponseMsg,
io.netty.handler.codec.http.HttpContent httpContent,
String errorMsg)
public static void addTrailerHeaderIfPresent(HttpCarbonMessage outboundResponseMsg)
public static void setInboundTrailersToNewMessage(io.netty.handler.codec.http.HttpHeaders trailers,
HttpCarbonMessage responseMsg)
trailers - Represent the inbound trailing headerresponseMsg - Represent the newly created response messageCopyright © 2021 WSO2. All rights reserved.