Package io.micronaut.http.server.netty
Class DefaultHttpContentProcessor
java.lang.Object
io.micronaut.http.server.netty.DefaultHttpContentProcessor
- All Implemented Interfaces:
Toggleable
,HttpContentProcessor
This class will handle subscribing to a stream of
HttpContent
.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Modifier and TypeFieldDescriptionprotected final long
protected final HttpServerConfiguration
protected final io.netty.channel.ChannelHandlerContext
protected final NettyHttpRequest<?>
protected final AtomicLong
protected final long
-
Constructor Summary
ConstructorDescriptionDefaultHttpContentProcessor
(NettyHttpRequest<?> nettyHttpRequest, HttpServerConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(io.netty.buffer.ByteBufHolder message, Collection<Object> out) Process more data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.server.netty.HttpContentProcessor
cancel, complete, processSingle, resultType
Methods inherited from interface io.micronaut.core.util.Toggleable
isEnabled
-
Field Details
-
nettyHttpRequest
-
ctx
protected final io.netty.channel.ChannelHandlerContext ctx -
configuration
-
advertisedLength
protected final long advertisedLength -
requestMaxSize
protected final long requestMaxSize -
receivedLength
-
-
Constructor Details
-
DefaultHttpContentProcessor
public DefaultHttpContentProcessor(NettyHttpRequest<?> nettyHttpRequest, HttpServerConfiguration configuration) - Parameters:
nettyHttpRequest
- TheNettyHttpRequest
configuration
- TheHttpServerConfiguration
-
-
Method Details
-
add
Description copied from interface:HttpContentProcessor
Process more data.- Specified by:
add
in interfaceHttpContentProcessor
- Parameters:
message
- The input dataout
- The collection to add output items to
-