All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.forms.PostFileResource

java.lang.Object
   |
   +----w3c.tools.store.AttributeHolder
           |
           +----w3c.tools.store.Resource
                   |
                   +----w3c.jigsaw.resources.HTTPResource
                           |
                           +----w3c.jigsaw.resources.FilteredResource
                                   |
                                   +----w3c.jigsaw.resources.FileResource
                                           |
                                           +----w3c.jigsaw.forms.PostFileResource

public class PostFileResource
extends FileResource
This resource demonstrates how Jigsaw can handle file upload through POST. It is based on this draft .

The whole work is in MIME input stream handling, rather than here, as you can see. This class just dumps its inputed entities.

This resource has been written as a demo to the multipart parsing engine, you should not use this way of uploading files since the latest HTTP/1.1 specification defines the PUT method.


Constructor Index

 o PostFileResource()

Method Index

 o post(Request)
Handle the post, wit its attached file.

Constructors

 o PostFileResource
 public PostFileResource()

Methods

 o post
 public Reply post(Request req) throws HTTPException
Handle the post, wit its attached file.

Parameters:
request - The request to handle.
Throws: HTTPException
If processing the request failed.
Overrides:
post in class HTTPResource

All Packages  Class Hierarchy  This Package  Previous  Next  Index