Package org.playframework.netty.http
Class EmptyHttpResponse
java.lang.Object
org.playframework.netty.http.DelegateHttpMessage
org.playframework.netty.http.DelegateHttpResponse
org.playframework.netty.http.EmptyHttpResponse
- 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
class EmptyHttpResponse
extends DelegateHttpResponse
implements io.netty.handler.codec.http.FullHttpResponse
-
Field Summary
Fields inherited from class org.playframework.netty.http.DelegateHttpResponse
response
Fields inherited from class org.playframework.netty.http.DelegateHttpMessage
message
Fields inherited from interface io.netty.handler.codec.http.LastHttpContent
EMPTY_LAST_CONTENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.netty.buffer.ByteBuf
content()
io.netty.handler.codec.http.FullHttpResponse
copy()
io.netty.handler.codec.http.FullHttpResponse
int
refCnt()
boolean
release()
boolean
release
(int decrement) io.netty.handler.codec.http.FullHttpResponse
replace
(io.netty.buffer.ByteBuf byteBuf) io.netty.handler.codec.http.FullHttpResponse
retain()
io.netty.handler.codec.http.FullHttpResponse
retain
(int increment) io.netty.handler.codec.http.FullHttpResponse
io.netty.handler.codec.http.FullHttpResponse
setProtocolVersion
(io.netty.handler.codec.http.HttpVersion version) io.netty.handler.codec.http.FullHttpResponse
setStatus
(io.netty.handler.codec.http.HttpResponseStatus status) io.netty.handler.codec.http.FullHttpResponse
touch()
io.netty.handler.codec.http.FullHttpResponse
io.netty.handler.codec.http.HttpHeaders
Methods inherited from class org.playframework.netty.http.DelegateHttpResponse
getStatus, status
Methods inherited from class org.playframework.netty.http.DelegateHttpMessage
decoderResult, getDecoderResult, getProtocolVersion, headers, protocolVersion, setDecoderResult, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
Methods inherited from interface io.netty.handler.codec.http.HttpMessage
getProtocolVersion, headers, protocolVersion
Methods inherited from interface io.netty.handler.codec.http.HttpObject
getDecoderResult
Methods inherited from interface io.netty.handler.codec.http.HttpResponse
getStatus, status
-
Constructor Details
-
EmptyHttpResponse
public EmptyHttpResponse(io.netty.handler.codec.http.HttpResponse response)
-
-
Method Details
-
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 classDelegateHttpResponse
-
setProtocolVersion
public io.netty.handler.codec.http.FullHttpResponse setProtocolVersion(io.netty.handler.codec.http.HttpVersion version) - Specified by:
setProtocolVersion
in interfaceio.netty.handler.codec.http.FullHttpResponse
- Specified by:
setProtocolVersion
in interfaceio.netty.handler.codec.http.HttpMessage
- Specified by:
setProtocolVersion
in interfaceio.netty.handler.codec.http.HttpResponse
- Overrides:
setProtocolVersion
in classDelegateHttpResponse
-
copy
public io.netty.handler.codec.http.FullHttpResponse copy()- Specified by:
copy
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
copy
in interfaceio.netty.handler.codec.http.FullHttpMessage
- Specified by:
copy
in interfaceio.netty.handler.codec.http.FullHttpResponse
- Specified by:
copy
in interfaceio.netty.handler.codec.http.HttpContent
- Specified by:
copy
in interfaceio.netty.handler.codec.http.LastHttpContent
-
retain
public io.netty.handler.codec.http.FullHttpResponse retain(int increment) - Specified by:
retain
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
retain
in interfaceio.netty.handler.codec.http.FullHttpMessage
- Specified by:
retain
in interfaceio.netty.handler.codec.http.FullHttpResponse
- Specified by:
retain
in interfaceio.netty.handler.codec.http.HttpContent
- Specified by:
retain
in interfaceio.netty.handler.codec.http.LastHttpContent
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
-
retain
public io.netty.handler.codec.http.FullHttpResponse retain()- Specified by:
retain
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
retain
in interfaceio.netty.handler.codec.http.FullHttpMessage
- Specified by:
retain
in interfaceio.netty.handler.codec.http.FullHttpResponse
- Specified by:
retain
in interfaceio.netty.handler.codec.http.HttpContent
- Specified by:
retain
in interfaceio.netty.handler.codec.http.LastHttpContent
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
-
touch
public io.netty.handler.codec.http.FullHttpResponse touch()- Specified by:
touch
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
touch
in interfaceio.netty.handler.codec.http.FullHttpMessage
- Specified by:
touch
in interfaceio.netty.handler.codec.http.FullHttpResponse
- Specified by:
touch
in interfaceio.netty.handler.codec.http.HttpContent
- Specified by:
touch
in interfaceio.netty.handler.codec.http.LastHttpContent
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
-
touch
- Specified by:
touch
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
touch
in interfaceio.netty.handler.codec.http.FullHttpMessage
- Specified by:
touch
in interfaceio.netty.handler.codec.http.FullHttpResponse
- Specified by:
touch
in interfaceio.netty.handler.codec.http.HttpContent
- Specified by:
touch
in interfaceio.netty.handler.codec.http.LastHttpContent
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
-
trailingHeaders
public io.netty.handler.codec.http.HttpHeaders trailingHeaders()- Specified by:
trailingHeaders
in interfaceio.netty.handler.codec.http.LastHttpContent
-
duplicate
public io.netty.handler.codec.http.FullHttpResponse duplicate()- Specified by:
duplicate
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
duplicate
in interfaceio.netty.handler.codec.http.FullHttpMessage
- Specified by:
duplicate
in interfaceio.netty.handler.codec.http.FullHttpResponse
- Specified by:
duplicate
in interfaceio.netty.handler.codec.http.HttpContent
- Specified by:
duplicate
in interfaceio.netty.handler.codec.http.LastHttpContent
-
retainedDuplicate
public io.netty.handler.codec.http.FullHttpResponse retainedDuplicate()- Specified by:
retainedDuplicate
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
retainedDuplicate
in interfaceio.netty.handler.codec.http.FullHttpMessage
- Specified by:
retainedDuplicate
in interfaceio.netty.handler.codec.http.FullHttpResponse
- Specified by:
retainedDuplicate
in interfaceio.netty.handler.codec.http.HttpContent
- Specified by:
retainedDuplicate
in interfaceio.netty.handler.codec.http.LastHttpContent
-
replace
public io.netty.handler.codec.http.FullHttpResponse replace(io.netty.buffer.ByteBuf byteBuf) - Specified by:
replace
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
replace
in interfaceio.netty.handler.codec.http.FullHttpMessage
- Specified by:
replace
in interfaceio.netty.handler.codec.http.FullHttpResponse
- Specified by:
replace
in interfaceio.netty.handler.codec.http.HttpContent
- Specified by:
replace
in interfaceio.netty.handler.codec.http.LastHttpContent
-
content
public io.netty.buffer.ByteBuf content()- Specified by:
content
in interfaceio.netty.buffer.ByteBufHolder
-
refCnt
public int refCnt()- Specified by:
refCnt
in interfaceio.netty.util.ReferenceCounted
-
release
public boolean release()- Specified by:
release
in interfaceio.netty.util.ReferenceCounted
-
release
public boolean release(int decrement) - Specified by:
release
in interfaceio.netty.util.ReferenceCounted
-