public class HttpRequestEncoder extends HttpObjectEncoder<HttpRequest>
ChannelHandler.Sharable
Constructor and Description |
---|
HttpRequestEncoder() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptOutboundMessage(Object msg)
Returns
true if the given message should be handled. |
protected void |
encodeInitialLine(ByteBuf buf,
HttpRequest request) |
encode, encodeAscii, encodeHeaders, isContentAlwaysEmpty, sanitizeHeadersBeforeEncode, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exceptionCaught, handlerAdded, handlerRemoved
public boolean acceptOutboundMessage(Object msg) throws Exception
MessageToMessageEncoder
true
if the given message should be handled. If false
it will be passed to the next
ChannelOutboundHandler
in the ChannelPipeline
.acceptOutboundMessage
in class HttpObjectEncoder<HttpRequest>
Exception
protected void encodeInitialLine(ByteBuf buf, HttpRequest request) throws Exception
encodeInitialLine
in class HttpObjectEncoder<HttpRequest>
Exception
Copyright © 2008–2024 The Netty Project. All rights reserved.