ikrs.httpd
Class DefaultPostDataWrapper

java.lang.Object
  extended by ikrs.httpd.AbstractPostDataWrapper
      extended by ikrs.httpd.DefaultPostDataWrapper
All Implemented Interfaces:
PostDataWrapper

public class DefaultPostDataWrapper
extends AbstractPostDataWrapper


Constructor Summary
DefaultPostDataWrapper(CustomLogger logger, HTTPHeaders headers, java.io.InputStream in)
          Creates a new DefaultPostDataWrapper.
 
Method Summary
 ikrs.httpd.datatype.FormData readFormData()
          ??? Is it a good idea to place the form data parser here ??? !!! The POST form data is more part of MIME instead of HTTP ...
 
Methods inherited from class ikrs.httpd.AbstractPostDataWrapper
getBytePosition, getContentLength, getInputStream, getLogger, getRequestHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPostDataWrapper

public DefaultPostDataWrapper(CustomLogger logger,
                              HTTPHeaders headers,
                              java.io.InputStream in)
                       throws java.lang.NullPointerException
Creates a new DefaultPostDataWrapper.

Parameters:
headers - The HTTPHeaders (usually read from the input stream before; must not be null).
in - The input stream to read the post data from (must not be null).
Throws:
java.lang.NullPointerException - If headers or in is null.
Method Detail

readFormData

public ikrs.httpd.datatype.FormData readFormData()
                                          throws java.io.IOException,
                                                 HeaderFormatException,
                                                 DataFormatException,
                                                 UnsupportedFormatException
??? Is it a good idea to place the form data parser here ??? !!! The POST form data is more part of MIME instead of HTTP ...

Specified by:
readFormData in interface PostDataWrapper
Specified by:
readFormData in class AbstractPostDataWrapper
Throws:
java.io.IOException
HeaderFormatException
DataFormatException
UnsupportedFormatException