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)
Creates a new instance.
|
protected |
DefaultHttpMessage(HttpVersion version,
HttpHeaders headers)
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)
protected DefaultHttpMessage(HttpVersion version, boolean validateHeaders, boolean singleFieldHeaders)
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–2017 The Netty Project. All rights reserved.