public class DefaultFullHttpResponse extends DefaultHttpResponse implements FullHttpResponse
FullHttpResponse
.EMPTY_LAST_CONTENT
Constructor and Description |
---|
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status) |
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
boolean validateHeaders) |
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
boolean validateHeaders,
boolean singleFieldHeaders) |
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
io.netty.buffer.ByteBuf content) |
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
io.netty.buffer.ByteBuf content,
boolean validateHeaders) |
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
io.netty.buffer.ByteBuf content,
boolean validateHeaders,
boolean singleFieldHeaders) |
DefaultFullHttpResponse(HttpVersion version,
HttpResponseStatus status,
io.netty.buffer.ByteBuf content,
HttpHeaders headers,
HttpHeaders trailingHeaders) |
Modifier and Type | Method and Description |
---|---|
io.netty.buffer.ByteBuf |
content() |
FullHttpResponse |
copy() |
FullHttpResponse |
duplicate() |
boolean |
equals(Object o) |
int |
hashCode() |
int |
refCnt() |
boolean |
release() |
boolean |
release(int decrement) |
FullHttpResponse |
replace(io.netty.buffer.ByteBuf content) |
FullHttpResponse |
retain() |
FullHttpResponse |
retain(int increment) |
FullHttpResponse |
retainedDuplicate() |
FullHttpResponse |
setProtocolVersion(HttpVersion version)
Set the protocol version of this
HttpMessage |
FullHttpResponse |
setStatus(HttpResponseStatus status)
Set the status of this
HttpResponse . |
String |
toString() |
FullHttpResponse |
touch() |
FullHttpResponse |
touch(Object hint) |
HttpHeaders |
trailingHeaders() |
getStatus, status
getProtocolVersion, headers, protocolVersion
decoderResult, getDecoderResult, setDecoderResult
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getStatus, status
getProtocolVersion, headers, protocolVersion
getDecoderResult
public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status)
public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, io.netty.buffer.ByteBuf content)
public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, boolean validateHeaders)
public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, boolean validateHeaders, boolean singleFieldHeaders)
public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, io.netty.buffer.ByteBuf content, boolean validateHeaders)
public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, io.netty.buffer.ByteBuf content, boolean validateHeaders, boolean singleFieldHeaders)
public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, io.netty.buffer.ByteBuf content, HttpHeaders headers, HttpHeaders trailingHeaders)
public HttpHeaders trailingHeaders()
trailingHeaders
in interface LastHttpContent
public io.netty.buffer.ByteBuf content()
content
in interface io.netty.buffer.ByteBufHolder
public int refCnt()
refCnt
in interface io.netty.util.ReferenceCounted
public FullHttpResponse retain()
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface FullHttpMessage
retain
in interface FullHttpResponse
retain
in interface HttpContent
retain
in interface LastHttpContent
retain
in interface io.netty.util.ReferenceCounted
public FullHttpResponse retain(int increment)
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface FullHttpMessage
retain
in interface FullHttpResponse
retain
in interface HttpContent
retain
in interface LastHttpContent
retain
in interface io.netty.util.ReferenceCounted
public FullHttpResponse touch()
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface FullHttpMessage
touch
in interface FullHttpResponse
touch
in interface HttpContent
touch
in interface LastHttpContent
touch
in interface io.netty.util.ReferenceCounted
public FullHttpResponse touch(Object hint)
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface FullHttpMessage
touch
in interface FullHttpResponse
touch
in interface HttpContent
touch
in interface LastHttpContent
touch
in interface io.netty.util.ReferenceCounted
public boolean release()
release
in interface io.netty.util.ReferenceCounted
public boolean release(int decrement)
release
in interface io.netty.util.ReferenceCounted
public FullHttpResponse setProtocolVersion(HttpVersion version)
HttpMessage
HttpMessage
setProtocolVersion
in interface FullHttpResponse
setProtocolVersion
in interface HttpMessage
setProtocolVersion
in interface HttpResponse
setProtocolVersion
in class DefaultHttpResponse
public FullHttpResponse setStatus(HttpResponseStatus status)
HttpResponse
HttpResponse
.setStatus
in interface FullHttpResponse
setStatus
in interface HttpResponse
setStatus
in class DefaultHttpResponse
public FullHttpResponse copy()
copy
in interface io.netty.buffer.ByteBufHolder
copy
in interface FullHttpMessage
copy
in interface FullHttpResponse
copy
in interface HttpContent
copy
in interface LastHttpContent
public FullHttpResponse duplicate()
duplicate
in interface io.netty.buffer.ByteBufHolder
duplicate
in interface FullHttpMessage
duplicate
in interface FullHttpResponse
duplicate
in interface HttpContent
duplicate
in interface LastHttpContent
public FullHttpResponse retainedDuplicate()
retainedDuplicate
in interface io.netty.buffer.ByteBufHolder
retainedDuplicate
in interface FullHttpMessage
retainedDuplicate
in interface FullHttpResponse
retainedDuplicate
in interface HttpContent
retainedDuplicate
in interface LastHttpContent
public FullHttpResponse replace(io.netty.buffer.ByteBuf content)
replace
in interface io.netty.buffer.ByteBufHolder
replace
in interface FullHttpMessage
replace
in interface FullHttpResponse
replace
in interface HttpContent
replace
in interface LastHttpContent
public int hashCode()
hashCode
in class DefaultHttpMessage
public boolean equals(Object o)
equals
in class DefaultHttpMessage
public String toString()
toString
in class DefaultHttpResponse
Copyright © 2008–2017 The Netty Project. All rights reserved.