Module io.inverno.mod.http.base
Class FlatFullHttpResponse
java.lang.Object
io.inverno.mod.http.base.internal.netty.FlatHttpResponse
io.inverno.mod.http.base.internal.netty.FlatFullHttpResponse
- 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.ReferenceCounted
public class FlatFullHttpResponse
extends FlatHttpResponse
implements io.netty.handler.codec.http.FullHttpResponse
Optimized FullHttpResponse implementation.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
-
Field Summary
Fields inherited from class io.inverno.mod.http.base.internal.netty.FlatHttpResponse
content, headers, result, status, versionFields inherited from interface io.netty.handler.codec.http.LastHttpContent
EMPTY_LAST_CONTENT -
Constructor Summary
ConstructorsConstructorDescriptionFlatFullHttpResponse(io.netty.handler.codec.http.HttpVersion version, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.handler.codec.http.HttpHeaders headers, io.netty.buffer.ByteBuf content, io.netty.handler.codec.http.HttpHeaders trailingHeaders) Creates a flat full HTTP response. -
Method Summary
Methods inherited from class io.inverno.mod.http.base.internal.netty.FlatHttpResponse
content, decoderResult, getDecoderResult, getProtocolVersion, getStatus, headers, isEmpty, protocolVersion, refCnt, release, release, setDecoderResult, statusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.buffer.ByteBufHolder
contentMethods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResultMethods inherited from interface io.netty.handler.codec.http.HttpMessage
getProtocolVersion, headers, protocolVersionMethods inherited from interface io.netty.handler.codec.http.HttpObject
getDecoderResultMethods inherited from interface io.netty.handler.codec.http.HttpResponse
getStatus, statusMethods inherited from interface io.netty.util.ReferenceCounted
refCnt, release, release
-
Constructor Details
-
FlatFullHttpResponse
public FlatFullHttpResponse(io.netty.handler.codec.http.HttpVersion version, io.netty.handler.codec.http.HttpResponseStatus status, io.netty.handler.codec.http.HttpHeaders headers, io.netty.buffer.ByteBuf content, io.netty.handler.codec.http.HttpHeaders trailingHeaders) Creates a flat full HTTP response.
- Parameters:
version- the HTTP versionstatus- the HTTP response statusheaders- the HTTP headerscontent- the response contenttrailingHeaders- the trailing HTTP headers
-
-
Method Details
-
trailingHeaders
public io.netty.handler.codec.http.HttpHeaders trailingHeaders()- Specified by:
trailingHeadersin interfaceio.netty.handler.codec.http.LastHttpContent
-
copy
- Specified by:
copyin interfaceio.netty.buffer.ByteBufHolder- Specified by:
copyin interfaceio.netty.handler.codec.http.FullHttpMessage- Specified by:
copyin interfaceio.netty.handler.codec.http.FullHttpResponse- Specified by:
copyin interfaceio.netty.handler.codec.http.HttpContent- Specified by:
copyin interfaceio.netty.handler.codec.http.LastHttpContent- Overrides:
copyin classFlatHttpResponse
-
duplicate
- Specified by:
duplicatein interfaceio.netty.buffer.ByteBufHolder- Specified by:
duplicatein interfaceio.netty.handler.codec.http.FullHttpMessage- Specified by:
duplicatein interfaceio.netty.handler.codec.http.FullHttpResponse- Specified by:
duplicatein interfaceio.netty.handler.codec.http.HttpContent- Specified by:
duplicatein interfaceio.netty.handler.codec.http.LastHttpContent- Overrides:
duplicatein classFlatHttpResponse
-
retainedDuplicate
- Specified by:
retainedDuplicatein interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainedDuplicatein interfaceio.netty.handler.codec.http.FullHttpMessage- Specified by:
retainedDuplicatein interfaceio.netty.handler.codec.http.FullHttpResponse- Specified by:
retainedDuplicatein interfaceio.netty.handler.codec.http.HttpContent- Specified by:
retainedDuplicatein interfaceio.netty.handler.codec.http.LastHttpContent- Overrides:
retainedDuplicatein classFlatHttpResponse
-
replace
- Specified by:
replacein interfaceio.netty.buffer.ByteBufHolder- Specified by:
replacein interfaceio.netty.handler.codec.http.FullHttpMessage- Specified by:
replacein interfaceio.netty.handler.codec.http.FullHttpResponse- Specified by:
replacein interfaceio.netty.handler.codec.http.HttpContent- Specified by:
replacein interfaceio.netty.handler.codec.http.LastHttpContent- Overrides:
replacein classFlatHttpResponse
-
retain
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceio.netty.handler.codec.http.FullHttpMessage- Specified by:
retainin interfaceio.netty.handler.codec.http.FullHttpResponse- Specified by:
retainin interfaceio.netty.handler.codec.http.HttpContent- Specified by:
retainin interfaceio.netty.handler.codec.http.LastHttpContent- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Overrides:
retainin classFlatHttpResponse
-
retain
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceio.netty.handler.codec.http.FullHttpMessage- Specified by:
retainin interfaceio.netty.handler.codec.http.FullHttpResponse- Specified by:
retainin interfaceio.netty.handler.codec.http.HttpContent- Specified by:
retainin interfaceio.netty.handler.codec.http.LastHttpContent- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Overrides:
retainin classFlatHttpResponse
-
touch
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceio.netty.handler.codec.http.FullHttpMessage- Specified by:
touchin interfaceio.netty.handler.codec.http.FullHttpResponse- Specified by:
touchin interfaceio.netty.handler.codec.http.HttpContent- Specified by:
touchin interfaceio.netty.handler.codec.http.LastHttpContent- Specified by:
touchin interfaceio.netty.util.ReferenceCounted- Overrides:
touchin classFlatHttpResponse
-
touch
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceio.netty.handler.codec.http.FullHttpMessage- Specified by:
touchin interfaceio.netty.handler.codec.http.FullHttpResponse- Specified by:
touchin interfaceio.netty.handler.codec.http.HttpContent- Specified by:
touchin interfaceio.netty.handler.codec.http.LastHttpContent- Specified by:
touchin interfaceio.netty.util.ReferenceCounted- Overrides:
touchin classFlatHttpResponse
-
setProtocolVersion
- Specified by:
setProtocolVersionin interfaceio.netty.handler.codec.http.FullHttpResponse- Specified by:
setProtocolVersionin interfaceio.netty.handler.codec.http.HttpMessage- Specified by:
setProtocolVersionin interfaceio.netty.handler.codec.http.HttpResponse- Overrides:
setProtocolVersionin classFlatHttpResponse
-
setStatus
- Specified by:
setStatusin interfaceio.netty.handler.codec.http.FullHttpResponse- Specified by:
setStatusin interfaceio.netty.handler.codec.http.HttpResponse- Overrides:
setStatusin classFlatHttpResponse
-