Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Streaming Servlet Response

 
Amit Biswas
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a requirement where there is a Servlet service running that takes only request parameters i.e, every information is given as a query string. something like
http://abcd.cg.com/2.0/query?param1=val1¶m2=val2
It gives back streaming CSV response.
All I want to do is send out the request and asynchronously process the response as and when it comes.
Please advice me how to do this using java.net.

Thanks in advance !
 
Amit Biswas
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For more clarity, I have to code the client program for the Servlet whose behaviour I have described above. I have to use the Servlet and it has already been developed.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Amit Biswas:

All I want to do is send out the request and asynchronously process the response as and when it comes.


HTTP is a request response protocol.I do not think using this alone you can achieve this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic