@Internal public class JsonContentProcessor extends AbstractHttpContentProcessor<JsonNode>
advertisedLength, configuration, nettyHttpRequest, receivedLength, requestMaxSizeEMPTY_SUBSCRIPTION, parentSubscriptionsubscription| Constructor and Description |
|---|
JsonContentProcessor(NettyHttpRequest<?> nettyHttpRequest,
HttpServerConfiguration configuration,
JsonMapper jsonMapper) |
| 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 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, JsonMapper jsonMapper)
nettyHttpRequest - The Netty Http requestconfiguration - The Http server configurationjsonMapper - The json codecprotected void doOnSubscribe(Subscription subscription, Subscriber<? super JsonNode> subscriber)
SingleSubscriberProcessordoOnSubscribe in class SingleSubscriberProcessor<io.netty.buffer.ByteBufHolder,JsonNode>subscription - The subscriptionsubscriber - The subscriber (never null)protected void onData(io.netty.buffer.ByteBufHolder message)
AbstractHttpContentProcessoronData in class AbstractHttpContentProcessor<JsonNode>message - The messageprotected void doAfterOnError(Throwable throwable)
SingleSubscriberProcessorSingleSubscriberProcessor.doOnError(Throwable) completes.doAfterOnError in class SingleSubscriberProcessor<io.netty.buffer.ByteBufHolder,JsonNode>throwable - The errorprotected void doOnComplete()
CompletionAwareSubscriberSubscriber.onComplete().doOnComplete in class SingleSubscriberProcessor<io.netty.buffer.ByteBufHolder,JsonNode>