org.apache.turbine.services.upload
Class OReillyUploadService
java.lang.Object
|
+--org.apache.turbine.services.BaseInitable
|
+--org.apache.turbine.services.BaseService
|
+--org.apache.turbine.services.TurbineBaseService
|
+--org.apache.turbine.services.upload.BaseUploadService
|
+--org.apache.turbine.services.upload.OReillyUploadService
- All Implemented Interfaces:
- Initable, Service, UploadService
Deprecated. use TurbineUploadService
- public class OReillyUploadService
- extends BaseUploadService
This is an implementation of the UploadService
using
the O'Reilly multipart request parser from the book Java Servlet
Programming by Jason Hunter.
This class is intended for compatibity with old code. Use
TurbineUploadService
in new applications.
- Version:
- $Id$
- Author:
- Rafal Krzewski
Field Summary |
private java.util.Vector |
filenames
Deprecated. Holds a vector of the filenames that were uploaded. |
Fields inherited from interface org.apache.turbine.services.upload.UploadService |
AUTOMATIC_DEFAULT, AUTOMATIC_KEY, CONTENT_DISPOSITION, CONTENT_TYPE, FORM_DATA, MIXED, MULTIPART, MULTIPART_FORM_DATA, MULTIPART_MIXED, REPOSITORY_DEFAULT, REPOSITORY_KEY, REPOSITORY_PARAMETER, SERVICE_NAME, SIZE_MAX_DEFAULT, SIZE_MAX_KEY, SIZE_THRESHOLD_DEFAULT, SIZE_THRESHOLD_KEY |
Method Summary |
java.util.Vector |
getFilenames()
Deprecated. Get a list of the files that were uploaded. |
void |
parseRequest(javax.servlet.http.HttpServletRequest req,
ParameterParser params,
java.lang.String path)
Deprecated. Initiate the multipartParse in the uploader. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
filenames
private java.util.Vector filenames
- Deprecated.
- Holds a vector of the filenames that were uploaded.
OReillyUploadService
public OReillyUploadService()
- Deprecated.
getFilenames
public java.util.Vector getFilenames()
- Deprecated.
- Get a list of the files that were uploaded.
- Returns:
- A Vector with the filename(s) that were uploaded.
parseRequest
public void parseRequest(javax.servlet.http.HttpServletRequest req,
ParameterParser params,
java.lang.String path)
throws TurbineException
- Deprecated.
- Initiate the multipartParse in the uploader. This will upload
the files to the path given.
- Overrides:
parseRequest
in class BaseUploadService
- Parameters:
req
- The servlet request to be parsed.params
- The ParameterParser instance to insert form
fields into.path
- The location where the files should be stored.- Throws:
IOException,
- if there are problems reading/parsing
the request or storing files.
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.