Package io.micronaut.http.netty.stream
Class EmptyHttpRequest
java.lang.Object
io.micronaut.http.netty.stream.EmptyHttpRequest
- All Implemented Interfaces:
io.netty.buffer.ByteBufHolder
,io.netty.handler.codec.DecoderResultProvider
,io.netty.handler.codec.http.FullHttpMessage
,io.netty.handler.codec.http.FullHttpRequest
,io.netty.handler.codec.http.HttpContent
,io.netty.handler.codec.http.HttpMessage
,io.netty.handler.codec.http.HttpObject
,io.netty.handler.codec.http.HttpRequest
,io.netty.handler.codec.http.LastHttpContent
,io.netty.util.ReferenceCounted
@Internal
public class EmptyHttpRequest
extends Object
implements io.netty.handler.codec.http.FullHttpRequest
Delegate for Empty HTTP Response.
- Since:
- 1.0
- Author:
- jroper, Graeme Rocher
-
Field Summary
Modifier and TypeFieldDescriptionprotected final io.netty.handler.codec.http.HttpMessage
protected final io.netty.handler.codec.http.HttpRequest
Fields inherited from interface io.netty.handler.codec.http.LastHttpContent
EMPTY_LAST_CONTENT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.netty.buffer.ByteBuf
content()
io.netty.handler.codec.http.FullHttpRequest
copy()
io.netty.handler.codec.DecoderResult
io.netty.handler.codec.http.FullHttpRequest
io.netty.handler.codec.DecoderResult
Deprecated.io.netty.handler.codec.http.HttpMethod
Deprecated.io.netty.handler.codec.http.HttpVersion
Deprecated.getUri()
Deprecated.io.netty.handler.codec.http.HttpHeaders
headers()
io.netty.handler.codec.http.HttpMethod
method()
io.netty.handler.codec.http.HttpVersion
int
refCnt()
boolean
release()
boolean
release
(int decrement) io.netty.handler.codec.http.FullHttpRequest
replace
(io.netty.buffer.ByteBuf byteBuf) io.netty.handler.codec.http.FullHttpRequest
retain()
io.netty.handler.codec.http.FullHttpRequest
retain
(int increment) io.netty.handler.codec.http.FullHttpRequest
void
setDecoderResult
(io.netty.handler.codec.DecoderResult result) io.netty.handler.codec.http.FullHttpRequest
setMethod
(io.netty.handler.codec.http.HttpMethod method) io.netty.handler.codec.http.FullHttpRequest
setProtocolVersion
(io.netty.handler.codec.http.HttpVersion version) io.netty.handler.codec.http.FullHttpRequest
toString()
io.netty.handler.codec.http.FullHttpRequest
touch()
io.netty.handler.codec.http.FullHttpRequest
io.netty.handler.codec.http.HttpHeaders
uri()
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.HttpRequest
getMethod, getUri, method, uri
-
Field Details
-
request
protected final io.netty.handler.codec.http.HttpRequest request -
message
protected final io.netty.handler.codec.http.HttpMessage message
-
-
Constructor Details
-
EmptyHttpRequest
public EmptyHttpRequest(io.netty.handler.codec.http.HttpRequest request) - Parameters:
request
- The Http request
-
-
Method Details
-
setUri
- Specified by:
setUri
in interfaceio.netty.handler.codec.http.FullHttpRequest
- Specified by:
setUri
in interfaceio.netty.handler.codec.http.HttpRequest
-
setMethod
public io.netty.handler.codec.http.FullHttpRequest setMethod(io.netty.handler.codec.http.HttpMethod method) - Specified by:
setMethod
in interfaceio.netty.handler.codec.http.FullHttpRequest
- Specified by:
setMethod
in interfaceio.netty.handler.codec.http.HttpRequest
-
setProtocolVersion
public io.netty.handler.codec.http.FullHttpRequest setProtocolVersion(io.netty.handler.codec.http.HttpVersion version) - Specified by:
setProtocolVersion
in interfaceio.netty.handler.codec.http.FullHttpRequest
- Specified by:
setProtocolVersion
in interfaceio.netty.handler.codec.http.HttpMessage
- Specified by:
setProtocolVersion
in interfaceio.netty.handler.codec.http.HttpRequest
-
copy
public io.netty.handler.codec.http.FullHttpRequest 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.FullHttpRequest
- 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.FullHttpRequest 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.FullHttpRequest
- 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.FullHttpRequest 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.FullHttpRequest
- 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.FullHttpRequest 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.FullHttpRequest
- 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.FullHttpRequest
- 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.FullHttpRequest 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.FullHttpRequest
- 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.FullHttpRequest 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.FullHttpRequest
- 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.FullHttpRequest 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.FullHttpRequest
- 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
-
getMethod
Deprecated.- Specified by:
getMethod
in interfaceio.netty.handler.codec.http.HttpRequest
-
method
public io.netty.handler.codec.http.HttpMethod method()- Specified by:
method
in interfaceio.netty.handler.codec.http.HttpRequest
-
getUri
Deprecated.- Specified by:
getUri
in interfaceio.netty.handler.codec.http.HttpRequest
-
uri
- Specified by:
uri
in interfaceio.netty.handler.codec.http.HttpRequest
-
getProtocolVersion
Deprecated.- Specified by:
getProtocolVersion
in interfaceio.netty.handler.codec.http.HttpMessage
-
protocolVersion
public io.netty.handler.codec.http.HttpVersion protocolVersion()- Specified by:
protocolVersion
in interfaceio.netty.handler.codec.http.HttpMessage
-
headers
public io.netty.handler.codec.http.HttpHeaders headers()- Specified by:
headers
in interfaceio.netty.handler.codec.http.HttpMessage
-
getDecoderResult
Deprecated.- Specified by:
getDecoderResult
in interfaceio.netty.handler.codec.http.HttpObject
-
decoderResult
public io.netty.handler.codec.DecoderResult decoderResult()- Specified by:
decoderResult
in interfaceio.netty.handler.codec.DecoderResultProvider
-
setDecoderResult
public void setDecoderResult(io.netty.handler.codec.DecoderResult result) - Specified by:
setDecoderResult
in interfaceio.netty.handler.codec.DecoderResultProvider
-
toString
-