T - The type@Internal public abstract class AbstractBufferingHttpContentProcessor<T> extends io.micronaut.core.async.processor.SingleThreadedBufferingProcessor<io.netty.buffer.ByteBufHolder,T> implements HttpContentProcessor<T>
HttpContentProcessor interface that deals with limiting file upload sizes.| Modifier and Type | Field and Description |
|---|---|
protected long |
advertisedLength |
protected io.micronaut.http.server.HttpServerConfiguration |
configuration |
protected NettyHttpRequest |
nettyHttpRequest |
protected java.util.concurrent.atomic.AtomicLong |
receivedLength |
protected long |
requestMaxSize |
| Constructor and Description |
|---|
AbstractBufferingHttpContentProcessor(NettyHttpRequest<?> nettyHttpRequest,
io.micronaut.http.server.HttpServerConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doOnNext(io.netty.buffer.ByteBufHolder message) |
protected void |
fireExceedsLength(long receivedLength,
long expected) |
void |
subscribe(org.reactivestreams.Subscriber<? super T> downstreamSubscriber) |
protected boolean |
verifyPartDefinedSize(io.netty.buffer.ByteBufHolder message) |
currentDownstreamSubscriber, doOnComplete, doOnError, doOnSubscribe, getDownstreamSubscriber, onUpstreamMessage, subscribeDownstreamnewDownstreamSubscription, onComplete, onError, onNext, onSubscribe, provideDownstreamSubscriptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final NettyHttpRequest nettyHttpRequest
protected final long advertisedLength
protected final long requestMaxSize
protected final java.util.concurrent.atomic.AtomicLong receivedLength
protected final io.micronaut.http.server.HttpServerConfiguration configuration
public AbstractBufferingHttpContentProcessor(NettyHttpRequest<?> nettyHttpRequest, io.micronaut.http.server.HttpServerConfiguration configuration)
nettyHttpRequest - The NettyHttpRequestconfiguration - The HttpServerConfigurationpublic void subscribe(org.reactivestreams.Subscriber<? super T> downstreamSubscriber)
protected final void doOnNext(io.netty.buffer.ByteBufHolder message)
doOnNext in class io.micronaut.core.async.processor.SingleThreadedBufferingProcessor<io.netty.buffer.ByteBufHolder,T>protected boolean verifyPartDefinedSize(io.netty.buffer.ByteBufHolder message)
message - The messageprotected void fireExceedsLength(long receivedLength,
long expected)
receivedLength - The received lengthexpected - The expected length