public abstract class DefaultHttpMessage extends DefaultHttpObject implements HttpMessage
HttpMessage
实现。
Modifier | Constructor and Description |
---|---|
protected |
DefaultHttpMessage(HttpVersion version)
创建一个新的实例。
|
protected |
DefaultHttpMessage(HttpVersion version, boolean validateHeaders, boolean singleFieldHeaders)
创建一个新的实例。
|
protected |
DefaultHttpMessage(HttpVersion version, HttpHeaders headers)
创建一个新的实例。
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
HttpVersion |
getProtocolVersion()
已过时。
|
int |
hashCode() |
HttpHeaders |
headers()
返回此消息的标题。
|
HttpVersion |
protocolVersion()
返回此 HttpMessage 的协议版本
|
HttpMessage |
setProtocolVersion(HttpVersion version)
设置此 HttpMessage 的协议版本
|
decoderResult, getDecoderResult, setDecoderResult
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getDecoderResult
decoderResult, setDecoderResult
protected DefaultHttpMessage(HttpVersion version)
protected DefaultHttpMessage(HttpVersion version, boolean validateHeaders, boolean singleFieldHeaders)
protected DefaultHttpMessage(HttpVersion version, HttpHeaders headers)
public HttpHeaders headers()
HttpMessage
headers
在界面
HttpMessage
@Deprecated public HttpVersion getProtocolVersion()
getProtocolVersion
在界面
HttpMessage
public HttpVersion protocolVersion()
HttpMessage
HttpMessage
的协议版本
protocolVersion
,界面
HttpMessage
public int hashCode()
hashCode
在课堂
DefaultHttpObject
public boolean equals(java.lang.Object o)
equals
在课堂上
DefaultHttpObject
public HttpMessage setProtocolVersion(HttpVersion version)
HttpMessage
HttpMessage
的协议版本
setProtocolVersion
在界面
HttpMessage
Copyright © 2008–2018 The Netty Project. All rights reserved.