Class OutboundStreamHttpResponse
java.lang.Object
io.netty.handler.codec.http.DefaultHttpObject
io.netty.handler.codec.http.DefaultHttpMessage
io.netty.handler.codec.http.DefaultHttpResponse
org.apache.camel.component.netty.http.OutboundStreamHttpResponse
- All Implemented Interfaces:
io.netty.handler.codec.DecoderResultProvider
,io.netty.handler.codec.http.HttpMessage
,io.netty.handler.codec.http.HttpObject
,io.netty.handler.codec.http.HttpResponse
,io.netty.handler.stream.ChunkedInput<io.netty.handler.codec.http.HttpContent>
public class OutboundStreamHttpResponse
extends io.netty.handler.codec.http.DefaultHttpResponse
implements io.netty.handler.stream.ChunkedInput<io.netty.handler.codec.http.HttpContent>
-
Constructor Summary
ConstructorDescriptionOutboundStreamHttpResponse
(InputStream in, io.netty.handler.codec.http.DefaultHttpResponse response) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
io.netty.handler.codec.http.DefaultHttpResponse
boolean
long
length()
long
progress()
io.netty.handler.codec.http.HttpContent
readChunk
(io.netty.buffer.ByteBufAllocator byteBufAllocator) io.netty.handler.codec.http.HttpContent
readChunk
(io.netty.channel.ChannelHandlerContext channelHandlerContext) Deprecated.Methods inherited from class io.netty.handler.codec.http.DefaultHttpResponse
equals, getStatus, hashCode, setProtocolVersion, setStatus, status, toString
Methods inherited from class io.netty.handler.codec.http.DefaultHttpMessage
getProtocolVersion, headers, protocolVersion
Methods inherited from class io.netty.handler.codec.http.DefaultHttpObject
decoderResult, getDecoderResult, setDecoderResult
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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
-
Constructor Details
-
OutboundStreamHttpResponse
public OutboundStreamHttpResponse(InputStream in, io.netty.handler.codec.http.DefaultHttpResponse response)
-
-
Method Details
-
getResponse
public io.netty.handler.codec.http.DefaultHttpResponse getResponse() -
isEndOfInput
- Specified by:
isEndOfInput
in interfaceio.netty.handler.stream.ChunkedInput<io.netty.handler.codec.http.HttpContent>
- Throws:
Exception
-
close
- Specified by:
close
in interfaceio.netty.handler.stream.ChunkedInput<io.netty.handler.codec.http.HttpContent>
- Throws:
Exception
-
readChunk
@Deprecated public io.netty.handler.codec.http.HttpContent readChunk(io.netty.channel.ChannelHandlerContext channelHandlerContext) throws Exception Deprecated.- Specified by:
readChunk
in interfaceio.netty.handler.stream.ChunkedInput<io.netty.handler.codec.http.HttpContent>
- Throws:
Exception
-
readChunk
public io.netty.handler.codec.http.HttpContent readChunk(io.netty.buffer.ByteBufAllocator byteBufAllocator) throws Exception - Specified by:
readChunk
in interfaceio.netty.handler.stream.ChunkedInput<io.netty.handler.codec.http.HttpContent>
- Throws:
Exception
-
length
public long length()- Specified by:
length
in interfaceio.netty.handler.stream.ChunkedInput<io.netty.handler.codec.http.HttpContent>
-
progress
public long progress()- Specified by:
progress
in interfaceio.netty.handler.stream.ChunkedInput<io.netty.handler.codec.http.HttpContent>
-