@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(JsonMapper jsonMapper,
HttpServerConfiguration httpServerConfiguration) |
Modifier and Type | Method and Description |
---|---|
HttpContentProcessor |
build(NettyHttpRequest request)
Build a
Subscriber for the given request. |
public JsonHttpContentSubscriberFactory(JsonMapper jsonMapper, HttpServerConfiguration httpServerConfiguration)
jsonMapper
- The object codec to use configuration fromhttpServerConfiguration
- The Http server configurationpublic HttpContentProcessor build(NettyHttpRequest request)
HttpContentSubscriberFactory
Subscriber
for the given request.build
in interface HttpContentSubscriberFactory
request
- The request