aspose file tools*
The moose likes Servlets and the fly likes Streaming Servlet Response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Streaming Servlet Response" Watch "Streaming Servlet Response" New topic
Author

Streaming Servlet Response

Amit Biswas
Ranch Hand

Joined: Jun 01, 2006
Posts: 52
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

Joined: Jun 01, 2006
Posts: 52
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

Joined: Nov 29, 2005
Posts: 2308
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.


Rahul Bhattacharjee
LinkedIn - Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Streaming Servlet Response