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:
io.netty.handler.codec.DecoderResultProvider,HttpMessage,HttpObject
- Direct Known Subclasses:
DefaultHttpRequest,DefaultHttpResponse
The default
HttpMessage implementation.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultHttpMessage(HttpVersion version) Creates a new instance.protectedDefaultHttpMessage(HttpVersion version, boolean validateHeaders, boolean singleFieldHeaders) Deprecated.protectedDefaultHttpMessage(HttpVersion version, HttpHeaders headers) Creates a new instance.protectedDefaultHttpMessage(HttpVersion version, HttpHeadersFactory headersFactory) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.inthashCode()headers()Returns the headers of this message.Returns the protocol version of thisHttpMessagesetProtocolVersion(HttpVersion version) Set the protocol version of thisHttpMessageMethods inherited from class io.netty.handler.codec.http.DefaultHttpObject
decoderResult, getDecoderResult, setDecoderResultMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResultMethods inherited from interface io.netty.handler.codec.http.HttpObject
getDecoderResult
-
Constructor Details
-
DefaultHttpMessage
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
Creates a new instance. -
DefaultHttpMessage
Creates a new instance.
-
-
Method Details
-
headers
Description copied from interface:HttpMessageReturns the headers of this message.- Specified by:
headersin interfaceHttpMessage
-
getProtocolVersion
Deprecated.- Specified by:
getProtocolVersionin interfaceHttpMessage
-
protocolVersion
Description copied from interface:HttpMessageReturns the protocol version of thisHttpMessage- Specified by:
protocolVersionin interfaceHttpMessage
-
hashCode
public int hashCode()- Overrides:
hashCodein classDefaultHttpObject
-
equals
- Overrides:
equalsin classDefaultHttpObject
-
setProtocolVersion
Description copied from interface:HttpMessageSet the protocol version of thisHttpMessage- Specified by:
setProtocolVersionin interfaceHttpMessage
-
DefaultHttpMessage(HttpVersion, HttpHeadersFactory)constructor instead, ideally using theDefaultHttpHeadersFactory.headersFactory(), or a factory that otherwise has validation enabled.