Package io.netty.handler.codec.http
Class DefaultHttpMessage
- java.lang.Object
-
- io.netty.handler.codec.http.DefaultHttpObject
-
- io.netty.handler.codec.http.DefaultHttpMessage
-
- All Implemented Interfaces:
DecoderResultProvider,HttpMessage,HttpObject
- Direct Known Subclasses:
DefaultHttpRequest,DefaultHttpResponse
public abstract class DefaultHttpMessage extends DefaultHttpObject implements HttpMessage
The defaultHttpMessageimplementation.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultHttpMessage(HttpVersion version)Creates a new instance.protectedDefaultHttpMessage(HttpVersion version, boolean validateHeaders, boolean singleFieldHeaders)Deprecated.Use theDefaultHttpMessage(HttpVersion, HttpHeadersFactory)constructor instead, ideally using theDefaultHttpHeadersFactory.headersFactory(), or a factory that otherwise has validation enabled.protectedDefaultHttpMessage(HttpVersion version, HttpHeaders headers)Creates a new instance.protectedDefaultHttpMessage(HttpVersion version, HttpHeadersFactory headersFactory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object o)HttpVersiongetProtocolVersion()Deprecated.inthashCode()HttpHeadersheaders()Returns the headers of this message.HttpVersionprotocolVersion()Returns the protocol version of thisHttpMessageHttpMessagesetProtocolVersion(HttpVersion version)Set the protocol version of thisHttpMessage-
Methods inherited from class io.netty.handler.codec.http.DefaultHttpObject
decoderResult, getDecoderResult, setDecoderResult
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
-
Methods inherited from interface io.netty.handler.codec.http.HttpObject
getDecoderResult
-
-
-
-
Constructor Detail
-
DefaultHttpMessage
protected DefaultHttpMessage(HttpVersion version)
Creates a new instance.
-
DefaultHttpMessage
@Deprecated protected DefaultHttpMessage(HttpVersion version, boolean validateHeaders, boolean singleFieldHeaders)
Deprecated.Use theDefaultHttpMessage(HttpVersion, HttpHeadersFactory)constructor instead, ideally using theDefaultHttpHeadersFactory.headersFactory(), or a factory that otherwise has validation enabled.Creates a new instance.
-
DefaultHttpMessage
protected DefaultHttpMessage(HttpVersion version, HttpHeadersFactory headersFactory)
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:HttpMessageReturns the headers of this message.- Specified by:
headersin interfaceHttpMessage
-
getProtocolVersion
@Deprecated public HttpVersion getProtocolVersion()
Deprecated.- Specified by:
getProtocolVersionin interfaceHttpMessage
-
protocolVersion
public HttpVersion protocolVersion()
Description copied from interface:HttpMessageReturns the protocol version of thisHttpMessage- Specified by:
protocolVersionin interfaceHttpMessage
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDefaultHttpObject
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classDefaultHttpObject
-
setProtocolVersion
public HttpMessage setProtocolVersion(HttpVersion version)
Description copied from interface:HttpMessageSet the protocol version of thisHttpMessage- Specified by:
setProtocolVersionin interfaceHttpMessage
-
-