@Internal public class JsonContentProcessor extends AbstractHttpContentProcessor<com.fasterxml.jackson.databind.JsonNode>
advertisedLength, configuration, nettyHttpRequest, receivedLength, requestMaxSize
EMPTY_SUBSCRIPTION, parentSubscription
subscription
Constructor and Description |
---|
JsonContentProcessor(NettyHttpRequest<?> nettyHttpRequest,
HttpServerConfiguration configuration,
com.fasterxml.jackson.core.JsonFactory jsonFactory,
com.fasterxml.jackson.databind.DeserializationConfig deserializationConfig) |
Modifier and Type | Method and Description |
---|---|
protected void |
doAfterOnError(java.lang.Throwable throwable)
Called after
SingleSubscriberProcessor.doOnError(Throwable) completes. |
protected void |
doOnComplete()
Implement
Subscriber.onComplete() . |
protected void |
doOnSubscribe(org.reactivestreams.Subscription subscription,
org.reactivestreams.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, fireExceedsLength
currentSubscriber, doAfterComplete, doAfterOnSubscribe, doOnError, doOnSubscribe, getSubscriber, subscribe
isComplete, onComplete, onError, onNext, onSubscribe
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onComplete, onError, onNext, onSubscribe
isEnabled
public JsonContentProcessor(NettyHttpRequest<?> nettyHttpRequest, HttpServerConfiguration configuration, @Nullable com.fasterxml.jackson.core.JsonFactory jsonFactory, com.fasterxml.jackson.databind.DeserializationConfig deserializationConfig)
nettyHttpRequest
- The Netty Http requestconfiguration
- The Http server configurationjsonFactory
- The json factorydeserializationConfig
- The jackson deserialization configurationprotected void doOnSubscribe(org.reactivestreams.Subscription subscription, org.reactivestreams.Subscriber<? super com.fasterxml.jackson.databind.JsonNode> subscriber)
SingleSubscriberProcessor
doOnSubscribe
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)
AbstractHttpContentProcessor
onData
in class AbstractHttpContentProcessor<com.fasterxml.jackson.databind.JsonNode>
message
- The messageprotected void doAfterOnError(java.lang.Throwable throwable)
SingleSubscriberProcessor
SingleSubscriberProcessor.doOnError(Throwable)
completes.doAfterOnError
in class SingleSubscriberProcessor<io.netty.buffer.ByteBufHolder,com.fasterxml.jackson.databind.JsonNode>
throwable
- The errorprotected void doOnComplete()
CompletionAwareSubscriber
Subscriber.onComplete()
.doOnComplete
in class SingleSubscriberProcessor<io.netty.buffer.ByteBufHolder,com.fasterxml.jackson.databind.JsonNode>