![]()
|
||||
OOP HttpGetter API : Java API for getting the response to HTTP GET requestJava API for getting the response to the HTTP GET request. Given the URL, this API sends the HTTP GET request and get the response to it. You can specify the acceptable mime-types and the maximum content length. Related Pages:
|
||||
What is it?Your Servlet/JSP may need to send the HTTP GET request to another URL and parse the response to the request. Or, your application receives the e-mail with the URL in it. The URL points the photo image on another web server, and your application needs to save the binary contents of the specified photo image. This Java API will be useful in these situations. By the help of this API, a single line of code will be enough for getting the response to the HTTP GET request. Set the limitationIn the real world, the URL is not always guaranteed to return the safe contents. For instance, your Servlet/JSP expects the binary contents of the photo image, but the specified URL may return the text contents. Or, even if the URL returns the binary contents of the photo image, your Servlet/JSP should accept only the images within the specific file size. This Java API is ready for these situation. As the parameters of the methods in this API, you can pass the acceptable mime-type and the maximum size of the response. Again, a single line of code will be enough to set the limitation on the response. DownloadThis API is now a part of Bento framework. There are the better documentations and source code examples on the web site for Bento framework. There, you will also find the link to download the entire framework or each API in it. |
|
|||
|
Java and all Java-based trademarks and logos are trademarks or registered of Sun Microsystems, Inc. in the United States and other countries. |
||||
|
ALL CONTENTS COPYRIGHT 1997-2007, OOP-Research Corporation. All rights reserved. |
||||