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 validate) |
Modifier and Type | Method and Description |
---|---|
HttpVersion |
getProtocolVersion()
Returns the protocol version of this
HttpMessage |
HttpHeaders |
headers()
Returns the headers of this message.
|
HttpMessage |
setProtocolVersion(HttpVersion version)
Set the protocol version of this
HttpMessage |
getDecoderResult, setDecoderResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDecoderResult, setDecoderResult
protected DefaultHttpMessage(HttpVersion version)
protected DefaultHttpMessage(HttpVersion version, boolean validate)
public HttpHeaders headers()
HttpMessage
headers
in interface HttpMessage
public HttpVersion getProtocolVersion()
HttpMessage
HttpMessage
getProtocolVersion
in interface HttpMessage
public HttpMessage setProtocolVersion(HttpVersion version)
HttpMessage
HttpMessage
setProtocolVersion
in interface HttpMessage
Copyright © 2008–2018 The Netty Project. All rights reserved.