Seeing is believing! First of all, please enjoy the example of Bento framework that is running on our web site. It is the simple photo Blog where you can upload the image files by your web browser (multipart/form-data), or e-mail with file attachment. After you grasp how it works, please explore its source code. The source code of the example is included in the FREE trial version of Bento framework.
| [ Try and download example ... ] |
In most cases, HTTP request parameters are encoded in:
The decoded String of those HTTP request parameters are available within Bentolet interface. So, your implementation of Bentolet interface can access HTTP request parameters.
Also, in most cases, the HTTP response is the sequence of characters. Because those characters represent the tags in the markup language (such as XHTML for PC or cHTML for i-mode mobile phone), ViewGenerator API can play a good role for generating the response. It reads the fragments of tags from the XML, and concatenates them with the arbitrary Strings between them.
If both of the input and output is the text data, Bentolet is enough. And, in most cases, Bentolet is enough.
But, there may be a case where Bentolet is not enough. For instance, if the HTTP request sends the binary contents of the uploaded file in:
the processor should parse the InputStream of HttpServletRequest. Or, to send the response of the PNG image with the random security String, the processor should write the binary contents of the BufferedImage into the OutputStream of HttpServletResponse.
This is where RequestProcessor, an alternative to Bentolet interface, takes place.
This interface can read the InputStream of the HttpServletRequest. For instance, it can parse the InputStream for the file upload request by multipart-form/data.
Or, this interface can send the binary contents into HttpServletResponse, such as image data.
You can read the Java doc for this API online. Or it is included in the trial version of this API and you can download it at FREE.
| Java doc | README |
| Trial License | Product License |
| Download | |
Copyright © 1997-2010 OOP-Research CorporationTM, All Rights Reserved.