public abstract class BrpcHttpObjectEncoder<H extends io.netty.handler.codec.http.HttpMessage> extends Object
HttpObjectEncoder| 构造器和说明 |
|---|
BrpcHttpObjectEncoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
acceptOutboundMessage(Object msg) |
protected void |
encode(Object msg,
List<Object> out) |
protected static void |
encodeAscii(String s,
io.netty.buffer.ByteBuf buf)
已过时。
|
protected void |
encodeHeaders(io.netty.handler.codec.http.HttpHeaders headers,
io.netty.buffer.ByteBuf buf)
Encode the
HttpHeaders into a ByteBuf. |
protected abstract void |
encodeInitialLine(io.netty.buffer.ByteBuf buf,
H message) |
protected boolean |
isContentAlwaysEmpty(H msg)
Determine whether a message has a content or not.
|
protected void |
sanitizeHeadersBeforeEncode(H msg,
boolean isAlwaysEmpty)
Allows to sanitize headers of the message before encoding these.
|
protected void encodeHeaders(io.netty.handler.codec.http.HttpHeaders headers,
io.netty.buffer.ByteBuf buf)
HttpHeaders into a ByteBuf.protected void sanitizeHeadersBeforeEncode(H msg, boolean isAlwaysEmpty)
protected boolean isContentAlwaysEmpty(H msg)
msg - the message to testtrue to signal the message has no contentpublic boolean acceptOutboundMessage(Object msg) throws Exception
Exception@Deprecated protected static void encodeAscii(String s, io.netty.buffer.ByteBuf buf)
Copyright © 2019 Baidu, Inc.. All rights reserved.