@Internal public class JsonContentProcessor extends AbstractHttpContentProcessor<com.fasterxml.jackson.databind.JsonNode>
advertisedLength, configuration, nettyHttpRequest, receivedLength, requestMaxSizeEMPTY_SUBSCRIPTION, parentSubscriptionsubscription| Constructor and Description |
|---|
JsonContentProcessor(NettyHttpRequest<?> nettyHttpRequest,
HttpServerConfiguration configuration,
Optional<com.fasterxml.jackson.core.JsonFactory> jsonFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doAfterOnError(Throwable throwable)
Called after
SingleSubscriberProcessor.doOnError(Throwable) completes. |
protected void |
doOnComplete()
Implement
Subscriber.onComplete(). |
protected void |
doOnSubscribe(Subscription subscription,
Subscriber<? super com.fasterxml.jackson.databind.JsonNode> subscriber)
Perform the actual subscription to the subscriber.
|
protected void |
onData(io.netty.buffer.ByteBufHolder message)
Called after verifying the data of the message.
|
doOnNext, doSubscribe, fireExceedsLengthcurrentSubscriber, doAfterComplete, doAfterOnSubscribe, doOnError, doOnSubscribe, getSubscriber, subscribeisComplete, onComplete, onError, onNext, onSubscribeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonComplete, onError, onNext, onSubscribeisEnabledpublic JsonContentProcessor(NettyHttpRequest<?> nettyHttpRequest, HttpServerConfiguration configuration, Optional<com.fasterxml.jackson.core.JsonFactory> jsonFactory)
nettyHttpRequest - The Netty Http requestconfiguration - The Http server configurationjsonFactory - The json factoryprotected void doOnSubscribe(Subscription subscription, Subscriber<? super com.fasterxml.jackson.databind.JsonNode> subscriber)
SingleSubscriberProcessordoOnSubscribe in class SingleSubscriberProcessor<io.netty.buffer.ByteBufHolder,com.fasterxml.jackson.databind.JsonNode>subscription - The subscriptionsubscriber - The subscriber (never null)protected void onData(io.netty.buffer.ByteBufHolder message)
AbstractHttpContentProcessoronData in class AbstractHttpContentProcessor<com.fasterxml.jackson.databind.JsonNode>message - The messageprotected void doAfterOnError(Throwable throwable)
SingleSubscriberProcessorSingleSubscriberProcessor.doOnError(Throwable) completes.doAfterOnError in class SingleSubscriberProcessor<io.netty.buffer.ByteBufHolder,com.fasterxml.jackson.databind.JsonNode>throwable - The errorprotected void doOnComplete()
CompletionAwareSubscriberSubscriber.onComplete().doOnComplete in class SingleSubscriberProcessor<io.netty.buffer.ByteBufHolder,com.fasterxml.jackson.databind.JsonNode>