Package com.linkedin.alpini.netty4.http2
Class Http1FullResponse
- java.lang.Object
-
- io.netty.handler.codec.http.DefaultHttpObject
-
- io.netty.handler.codec.http.DefaultHttpMessage
-
- io.netty.handler.codec.http.DefaultHttpResponse
-
- com.linkedin.alpini.netty4.misc.BasicHttpResponse
-
- com.linkedin.alpini.netty4.misc.BasicFullHttpResponse
-
- com.linkedin.alpini.netty4.http2.Http1FullResponse
-
- All Implemented Interfaces:
io.netty.buffer.ByteBufHolder
,io.netty.handler.codec.DecoderResultProvider
,io.netty.handler.codec.http.FullHttpMessage
,io.netty.handler.codec.http.FullHttpResponse
,io.netty.handler.codec.http.HttpContent
,io.netty.handler.codec.http.HttpMessage
,io.netty.handler.codec.http.HttpObject
,io.netty.handler.codec.http.HttpResponse
,io.netty.handler.codec.http.LastHttpContent
,io.netty.util.AttributeMap
,io.netty.util.ReferenceCounted
public class Http1FullResponse extends BasicFullHttpResponse
An implementation ofBasicFullHttpResponse
which always uses aHttp1Headers
for holding the headers. This is to aid encapsulating a Http2 request object as a Http1 object which may be efficiently unwrapped before being sent.
-
-
Field Summary
-
Fields inherited from class com.linkedin.alpini.netty4.misc.BasicFullHttpResponse
_trailingHeaders
-
-
Constructor Summary
Constructors Constructor Description Http1FullResponse(io.netty.handler.codec.http.FullHttpResponse httpResponse)
Http1FullResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.buffer.ByteBuf content, Http1Headers headers, Http1Headers trailingHeaders)
Http1FullResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status)
Http1FullResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, boolean validateHeaders)
Http1FullResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.buffer.ByteBuf content)
Http1FullResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.buffer.ByteBuf content, boolean validateHeaders)
Http1FullResponse(io.netty.handler.codec.http.HttpResponse httpResponse, Http1Headers headers, Http1Headers trailingHeaders, io.netty.buffer.ByteBuf content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.handler.codec.http.FullHttpResponse
setStatus(io.netty.handler.codec.http.HttpResponseStatus status)
-
Methods inherited from class com.linkedin.alpini.netty4.misc.BasicFullHttpResponse
content, copy, duplicate, refCnt, release, release, replace, retain, retain, retainedDuplicate, setProtocolVersion, toString, touch, touch, trailingHeaders
-
Methods inherited from class com.linkedin.alpini.netty4.misc.BasicHttpResponse
attr, hasAttr
-
Methods inherited from class io.netty.handler.codec.http.DefaultHttpResponse
equals, getStatus, hashCode, status
-
Methods inherited from class io.netty.handler.codec.http.DefaultHttpMessage
getProtocolVersion, headers, protocolVersion
-
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, wait, wait, wait
-
Methods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
-
-
-
-
Constructor Detail
-
Http1FullResponse
public Http1FullResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status)
-
Http1FullResponse
public Http1FullResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.buffer.ByteBuf content)
-
Http1FullResponse
public Http1FullResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, boolean validateHeaders)
-
Http1FullResponse
public Http1FullResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.buffer.ByteBuf content, boolean validateHeaders)
-
Http1FullResponse
public Http1FullResponse(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.buffer.ByteBuf content, Http1Headers headers, Http1Headers trailingHeaders)
-
Http1FullResponse
public Http1FullResponse(io.netty.handler.codec.http.FullHttpResponse httpResponse)
-
Http1FullResponse
public Http1FullResponse(io.netty.handler.codec.http.HttpResponse httpResponse, Http1Headers headers, Http1Headers trailingHeaders, io.netty.buffer.ByteBuf content)
-
-
Method Detail
-
setStatus
public io.netty.handler.codec.http.FullHttpResponse setStatus(io.netty.handler.codec.http.HttpResponseStatus status)
- Specified by:
setStatus
in interfaceio.netty.handler.codec.http.FullHttpResponse
- Specified by:
setStatus
in interfaceio.netty.handler.codec.http.HttpResponse
- Overrides:
setStatus
in classBasicFullHttpResponse
-
-