users@jersey.java.net

[Jersey] Re: Jackson + StreamingOutput

From: Eric Stein <steine_at_locustec.com>
Date: Wed, 23 Apr 2014 19:30:58 +0000

Sorry, I mean what is the correct way to get a JsonGenerator instance into my StreamingOutput. I have an InputStream of data, and I want to stream it out, so it is my understanding that JsonGenerator would be the way to go here?

Thanks,
Eric

-----Original Message-----
From: Eric Stein
Sent: Wednesday, April 23, 2014 3:14 PM
To: users_at_jersey.java.net
Subject: Jackson + StreamingOutput

I have Jackson configured to run in my Jersey 2.7 API using JacksonFeature and JacksonConfigurator. Now I have a very large text response that needs to be sent via StreamingOutput back to the client. What is the proper way to get an ObjectMapper reference into my StreamingOutput implementation?

Thanks,
Eric