- java.lang.Object
-
- io.netty5.channel.ChannelHandlerAdapter
-
- io.netty5.handler.codec.MessageToMessageEncoder<Object>
-
- io.netty5.handler.codec.http.HttpObjectEncoder<HttpRequest>
-
- io.netty5.handler.codec.http.HttpRequestEncoder
-
- All Implemented Interfaces:
ChannelHandler
public class HttpRequestEncoder extends HttpObjectEncoder<HttpRequest>
-
-
Constructor Summary
Constructors Constructor Description HttpRequestEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptOutboundMessage(Object msg)
Returnstrue
if the given message should be handled.protected void
encodeInitialLine(Buffer buf, HttpRequest request)
-
Methods inherited from class io.netty5.handler.codec.http.HttpObjectEncoder
crlfBuffer, encodeAndClose, encodeHeaders, isContentAlwaysEmpty, sanitizeHeadersBeforeEncode, zeroCrlfCrlfBuffer
-
Methods inherited from class io.netty5.handler.codec.MessageToMessageEncoder
encode, write
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty5.channel.ChannelHandler
bind, channelActive, channelExceptionCaught, channelInactive, channelInboundEvent, channelRead, channelReadComplete, channelRegistered, channelShutdown, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, flush, handlerAdded, handlerRemoved, isSharable, pendingOutboundBytes, read, register, sendOutboundEvent, shutdown
-
-
-
-
Method Detail
-
acceptOutboundMessage
public boolean acceptOutboundMessage(Object msg) throws Exception
Description copied from class:MessageToMessageEncoder
Returnstrue
if the given message should be handled. Iffalse
it will be passed to the nextChannelHandler
in theChannelPipeline
.- Overrides:
acceptOutboundMessage
in classHttpObjectEncoder<HttpRequest>
- Throws:
Exception
-
encodeInitialLine
protected void encodeInitialLine(Buffer buf, HttpRequest request) throws Exception
- Specified by:
encodeInitialLine
in classHttpObjectEncoder<HttpRequest>
- Throws:
Exception
-
-