Network service developers implement the ServletRequest interface. Some of the data provided by the ServletRequest object includes parameter names and values, attributes, and an input stream. Subclasses of ServletRequest can provide additional protocol-specific data. For example, HTTP data is provided by the interface HttpServletRequest, which extends ServletRequest. This framework provides the servlet's only access to this data.
MIME bodies are either text or binary data.
Use getReader to handle text, including the character encodings. The getInputStream call should be used to handle binary data. Returns the character set encoding for the input of this request. Returns the size of the request entity data, or -1 if not known. Returns the parameter names for this request as an enumeration of strings, or an empty enumeration if there are no parameters or the input stream is empty.