public class HttpRequestEncoder extends HttpObjectEncoder<HttpRequest>
ChannelHandler.Sharable
Modifier and Type | Field and Description |
---|---|
private static char |
QUESTION_MARK |
private static char |
SLASH |
CRLF
Constructor and Description |
---|
HttpRequestEncoder() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptOutboundMessage(java.lang.Object msg)
Returns
true if the given message should be handled. |
protected void |
encodeInitialLine(ByteBuf buf,
HttpRequest request) |
encode, encodeAscii, encodeHeaders
write
bind, close, connect, deregister, disconnect, flush, read
exceptionCaught, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exceptionCaught, handlerAdded, handlerRemoved
private static final char SLASH
private static final char QUESTION_MARK
public boolean acceptOutboundMessage(java.lang.Object msg) throws java.lang.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>
java.lang.Exception
protected void encodeInitialLine(ByteBuf buf, HttpRequest request) throws java.lang.Exception
encodeInitialLine
in class HttpObjectEncoder<HttpRequest>
java.lang.Exception