Class HttpRequestEncoder
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelOutboundHandlerAdapter
io.netty.handler.codec.MessageToMessageEncoder<Object>
io.netty.handler.codec.http.HttpObjectEncoder<HttpRequest>
io.netty.handler.codec.http.HttpRequestEncoder
- All Implemented Interfaces:
ChannelHandler, ChannelOutboundHandler
- Direct Known Subclasses:
HttpClientCodec.Encoder
-
Nested Class Summary
Nested classes/interfaces inherited from interface ChannelHandler
ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final charprivate static final charprivate static final intprivate static final intFields inherited from class HttpObjectEncoder
CRLF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif the given message should be handled.protected voidencodeInitialLine(ByteBuf buf, HttpRequest request) Methods inherited from class HttpObjectEncoder
encode, encodeAscii, encodeHeaders, isContentAlwaysEmpty, sanitizeHeadersBeforeEncode, writeMethods inherited from class ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
Field Details
-
SLASH
private static final char SLASH- See Also:
-
QUESTION_MARK
private static final char QUESTION_MARK- See Also:
-
SLASH_AND_SPACE_SHORT
private static final int SLASH_AND_SPACE_SHORT- See Also:
-
SPACE_SLASH_AND_SPACE_MEDIUM
private static final int SPACE_SLASH_AND_SPACE_MEDIUM- See Also:
-
-
Constructor Details
-
HttpRequestEncoder
public HttpRequestEncoder()
-
-
Method Details
-
acceptOutboundMessage
Description copied from class:MessageToMessageEncoderReturnstrueif the given message should be handled. Iffalseit will be passed to the nextChannelOutboundHandlerin theChannelPipeline.- Overrides:
acceptOutboundMessagein classHttpObjectEncoder<HttpRequest>- Throws:
Exception
-
encodeInitialLine
- Specified by:
encodeInitialLinein classHttpObjectEncoder<HttpRequest>- Throws:
Exception
-