OOP-ResearchMake It Simpler by Object Oriented Programming

OOP HttpGetter API : Java API for getting the response to HTTP GET request

Java 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 limitation

In 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.

Download

This 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.

Caution!
All the APIs for Servlet/JSP introduced by this web site are now included in Bento framework:
  • Simpler than JSTL or Apache Struts
  • MVC framework by HTML
  • Input validation from CGI FORM
  • Easy user authentication
  • Easy localization (L10n)
To download the APIs and source code examples, please visit the web site of Bento framework.


JBuilder 2007


General Information

For Java Development

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.