public abstract class DefaultHttpMessage extends DefaultHttpObject implements HttpMessage
HttpMessage
implementation.Modifier | Constructor and Description |
---|---|
protected |
DefaultHttpMessage(HttpVersion version)
Creates a new instance.
|
protected |
DefaultHttpMessage(HttpVersion version,
boolean validateHeaders,
boolean singleFieldHeaders)
Deprecated.
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
HttpVersion |
getProtocolVersion()
Deprecated.
|
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
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
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
in interface HttpMessage
@Deprecated public HttpVersion getProtocolVersion()
getProtocolVersion
in interface HttpMessage
public HttpVersion protocolVersion()
HttpMessage
HttpMessage
protocolVersion
in interface HttpMessage
public int hashCode()
hashCode
in class DefaultHttpObject
public boolean equals(Object o)
equals
in class DefaultHttpObject
public HttpMessage setProtocolVersion(HttpVersion version)
HttpMessage
HttpMessage
setProtocolVersion
in interface HttpMessage
Copyright © 2008–2024 The Netty Project. All rights reserved.