@Consumes(value={"application/x-json-stream","application/json"}) @Singleton @Internal public class JsonHttpContentSubscriberFactory extends Object implements HttpContentSubscriberFactory
Subscriber
for JSON requests.Constructor and Description |
---|
JsonHttpContentSubscriberFactory(HttpServerConfiguration httpServerConfiguration,
Optional<com.fasterxml.jackson.core.JsonFactory> jsonFactory) |
Modifier and Type | Method and Description |
---|---|
HttpContentProcessor |
build(NettyHttpRequest request)
Build a
Subscriber for the given request. |
public JsonHttpContentSubscriberFactory(HttpServerConfiguration httpServerConfiguration, Optional<com.fasterxml.jackson.core.JsonFactory> jsonFactory)
httpServerConfiguration
- The Http server configurationjsonFactory
- The json factorypublic HttpContentProcessor build(NettyHttpRequest request)
HttpContentSubscriberFactory
Subscriber
for the given request.build
in interface HttpContentSubscriberFactory
request
- The request