Packages » Package freeform » Class WWWFormRequestAdaptor

Class WWWFormRequestAdaptor

Declaration:
<? class WWWFormRequestAdaptor extends RequestAdaptor ?>

Description:
This RequestAdaptor handles normal HTML/WML forms of types application/x-www-form-urlencoded or multipart/form-data. It accepts file uploads and returns them with request variables in form of UploadedFileInfo objects.

Since 1.1.1.Stable moved from the html package to the freeform package. This adapter expects that all incoming data are UTF-8 encoded (as Freeform is purely UTF-8 based framework). All document implementations must instruct the clients to submit data in the UTF-8 encoding (as HTTP does not leave a way to detect it, browsers will send data back in the encoding that matches the page's encoding). If you design your own document implementation for non-HTML apps, you can also design your own RequestAdaptor that may change the encoding of submitted data to UTF-8. The framework stipulates that all data retrieved from the calls to the Request::getXXX() methods are UTF-8.


Parent Classes:
RequestAdaptor

Authors:
  • Dennis Popel

Methods: