- java.lang.Object
-
- io.netty5.handler.codec.http.DefaultHttpObject
-
- io.netty5.handler.codec.http.DefaultHttpMessage
-
- All Implemented Interfaces:
DecoderResultProvider
,HttpMessage
,HttpObject
- Direct Known Subclasses:
DefaultHttpRequest
,DefaultHttpResponse
public abstract class DefaultHttpMessage extends DefaultHttpObject implements HttpMessage
The defaultHttpMessage
implementation.
-
-
Constructor Summary
Constructors Modifier Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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 thisHttpMessage
HttpMessage
setProtocolVersion(HttpVersion version)
Set the protocol version of thisHttpMessage
-
Methods inherited from class io.netty5.handler.codec.http.DefaultHttpObject
decoderResult, setDecoderResult
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty5.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
-
-
-
-
Constructor Detail
-
DefaultHttpMessage
protected DefaultHttpMessage(HttpVersion version)
Creates a new instance.
-
DefaultHttpMessage
protected DefaultHttpMessage(HttpVersion version, boolean validateHeaders, boolean singleFieldHeaders)
Creates a new instance.
-
DefaultHttpMessage
protected DefaultHttpMessage(HttpVersion version, HttpHeaders headers)
Creates a new instance.
-
-
Method Detail
-
headers
public HttpHeaders headers()
Description copied from interface:HttpMessage
Returns the headers of this message.- Specified by:
headers
in interfaceHttpMessage
-
getProtocolVersion
@Deprecated public HttpVersion getProtocolVersion()
Deprecated.- Specified by:
getProtocolVersion
in interfaceHttpMessage
-
protocolVersion
public HttpVersion protocolVersion()
Description copied from interface:HttpMessage
Returns the protocol version of thisHttpMessage
- Specified by:
protocolVersion
in interfaceHttpMessage
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDefaultHttpObject
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classDefaultHttpObject
-
setProtocolVersion
public HttpMessage setProtocolVersion(HttpVersion version)
Description copied from interface:HttpMessage
Set the protocol version of thisHttpMessage
- Specified by:
setProtocolVersion
in interfaceHttpMessage
-
-