T - The type@Internal public abstract class AbstractHttpContentProcessor<T> extends SingleSubscriberProcessor<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 HttpServerConfiguration | 
configuration  | 
protected NettyHttpRequest<?> | 
nettyHttpRequest  | 
protected AtomicLong | 
receivedLength  | 
protected long | 
requestMaxSize  | 
EMPTY_SUBSCRIPTION, parentSubscriptionsubscription| Constructor and Description | 
|---|
AbstractHttpContentProcessor(NettyHttpRequest<?> nettyHttpRequest,
                            HttpServerConfiguration configuration)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
doOnNext(io.netty.buffer.ByteBufHolder message)
Implement  
Subscriber.onNext(Object). | 
protected void | 
doSubscribe(Subscriber<? super T> subscriber)
Override to implement  
Publisher.subscribe(Subscriber). | 
protected void | 
fireExceedsLength(long receivedLength,
                 long expected,
                 io.netty.buffer.ByteBufHolder message)  | 
protected abstract void | 
onData(io.netty.buffer.ByteBufHolder message)
Called after verifying the data of the message. 
 | 
currentSubscriber, doAfterComplete, doAfterOnError, doAfterOnSubscribe, doOnComplete, doOnError, doOnSubscribe, doOnSubscribe, getSubscriber, subscribeisComplete, onComplete, onError, onNext, onSubscribeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonComplete, onError, onNext, onSubscribeisEnabledprotected final NettyHttpRequest<?> nettyHttpRequest
protected final long advertisedLength
protected final long requestMaxSize
protected final AtomicLong receivedLength
protected final HttpServerConfiguration configuration
public AbstractHttpContentProcessor(NettyHttpRequest<?> nettyHttpRequest, HttpServerConfiguration configuration)
nettyHttpRequest - The NettyHttpRequestconfiguration - The HttpServerConfigurationprotected abstract void onData(io.netty.buffer.ByteBufHolder message)
message - The messageprotected final void doSubscribe(Subscriber<? super T> subscriber)
SingleSubscriberProcessorPublisher.subscribe(Subscriber).doSubscribe in class SingleSubscriberProcessor<io.netty.buffer.ByteBufHolder,T>subscriber - The subscriberPublisher.subscribe(Subscriber)protected final void doOnNext(io.netty.buffer.ByteBufHolder message)
CompletionAwareSubscriberSubscriber.onNext(Object).doOnNext in class CompletionAwareSubscriber<io.netty.buffer.ByteBufHolder>message - The messageprotected void fireExceedsLength(long receivedLength,
                                 long expected,
                                 io.netty.buffer.ByteBufHolder message)
receivedLength - The length of the content receivedexpected - The expected length of the contentmessage - The message to release