public abstract class DefaultHttpMessage extends DefaultHttpObject implements HttpMessage
HttpMessage
implementation.限定符 | 构造器和说明 |
---|---|
protected |
DefaultHttpMessage(HttpVersion version)
Creates a new instance.
|
protected |
DefaultHttpMessage(HttpVersion version,
boolean validateHeaders,
boolean singleFieldHeaders)
已过时。
Use the
DefaultHttpMessage(HttpVersion, HttpHeadersFactory) constructor instead,
ideally using the DefaultHttpHeadersFactory.headersFactory() ,
or a factory that otherwise has validation enabled. |
protected |
DefaultHttpMessage(HttpVersion version,
HttpHeaders headers)
Creates a new instance.
|
protected |
DefaultHttpMessage(HttpVersion version,
HttpHeadersFactory headersFactory)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object o) |
HttpVersion |
getProtocolVersion()
已过时。
|
int |
hashCode() |
HttpHeaders |
headers()
Returns the headers of this message.
|
HttpVersion |
protocolVersion()
Returns the protocol version of this
HttpMessage |
HttpMessage |
setProtocolVersion(HttpVersion version)
Set the protocol version of this
HttpMessage |
decoderResult, getDecoderResult, setDecoderResult
getDecoderResult
decoderResult, setDecoderResult
protected DefaultHttpMessage(HttpVersion version)
@Deprecated protected DefaultHttpMessage(HttpVersion version, boolean validateHeaders, boolean singleFieldHeaders)
DefaultHttpMessage(HttpVersion, HttpHeadersFactory)
constructor instead,
ideally using the DefaultHttpHeadersFactory.headersFactory()
,
or a factory that otherwise has validation enabled.protected DefaultHttpMessage(HttpVersion version, HttpHeadersFactory headersFactory)
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