Package io.micronaut.http.netty.stream
Class DelegateStreamedHttpRequest
java.lang.Object
io.micronaut.http.netty.stream.DelegateStreamedHttpRequest
- All Implemented Interfaces:
HotObservable<io.netty.handler.codec.http.HttpContent>
,StreamedHttpMessage
,StreamedHttpRequest
,io.netty.handler.codec.DecoderResultProvider
,io.netty.handler.codec.http.HttpMessage
,io.netty.handler.codec.http.HttpObject
,io.netty.handler.codec.http.HttpRequest
,Publisher<io.netty.handler.codec.http.HttpContent>
Delegate for Streamed HTTP Request.
- Since:
- 1.0
- Author:
- jroper, Graeme Rocher
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDelegateStreamedHttpRequest
(io.netty.handler.codec.http.HttpRequest request, Publisher<? extends io.netty.handler.codec.http.HttpContent> stream) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Releases the stream if there is no subscriber.io.netty.handler.codec.DecoderResult
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()
boolean
Has the stream been consumed.io.netty.handler.codec.http.HttpMethod
method()
io.netty.handler.codec.http.HttpVersion
void
setDecoderResult
(io.netty.handler.codec.DecoderResult result) io.netty.handler.codec.http.HttpRequest
setMethod
(io.netty.handler.codec.http.HttpMethod method) io.netty.handler.codec.http.HttpRequest
setProtocolVersion
(io.netty.handler.codec.http.HttpVersion version) io.netty.handler.codec.http.HttpRequest
void
subscribe
(Subscriber<? super io.netty.handler.codec.http.HttpContent> subscriber) toString()
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, setMethod, setProtocolVersion, setUri, 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
-
DelegateStreamedHttpRequest
public DelegateStreamedHttpRequest(io.netty.handler.codec.http.HttpRequest request, Publisher<? extends io.netty.handler.codec.http.HttpContent> stream) - Parameters:
request
- The Http requeststream
- The publisher
-
-
Method Details
-
isConsumed
public boolean isConsumed()Description copied from interface:StreamedHttpRequest
Has the stream been consumed.- Specified by:
isConsumed
in interfaceStreamedHttpRequest
- Returns:
- True if it has
-
subscribe
-
closeIfNoSubscriber
public void closeIfNoSubscriber()Description copied from interface:StreamedHttpRequest
Releases the stream if there is no subscriber.- Specified by:
closeIfNoSubscriber
in interfaceHotObservable<io.netty.handler.codec.http.HttpContent>
- Specified by:
closeIfNoSubscriber
in interfaceStreamedHttpRequest
-
setMethod
public io.netty.handler.codec.http.HttpRequest setMethod(io.netty.handler.codec.http.HttpMethod method) - Specified by:
setMethod
in interfaceio.netty.handler.codec.http.HttpRequest
-
setUri
- Specified by:
setUri
in interfaceio.netty.handler.codec.http.HttpRequest
-
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
-
setProtocolVersion
public io.netty.handler.codec.http.HttpRequest setProtocolVersion(io.netty.handler.codec.http.HttpVersion version) - Specified by:
setProtocolVersion
in interfaceio.netty.handler.codec.http.HttpMessage
- Specified by:
setProtocolVersion
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
-