|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
org.apache.turbine.services.TurbineBaseService
org.apache.turbine.services.upload.BaseUploadService
This class is a base implementation of
UploadService.
| Field Summary | |
static int |
MAX_HEADER_SIZE
A maximum lenght of a single header line that will be parsed. (1024 bytes). |
| Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, serviceBroker |
| Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
| 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 |
| Constructor Summary | |
BaseUploadService()
|
|
| Method Summary | |
boolean |
getAutomatic()
Retrieves the value of the 'automatic' property of UploadService. |
java.lang.String |
getRepository()
Retrieves the value of the repository property of
UploadService. |
long |
getSizeMax()
Retrieves the value of size.max property of the
UploadService. |
int |
getSizeThreshold()
Retrieves the value of size.threshold property of
UploadService. |
void |
init()
Initializes the service. |
abstract void |
parseRequest(javax.servlet.http.HttpServletRequest req,
ParameterParser params,
java.lang.String path)
Processes an RFC 1867 compliant multipart/form-data stream. |
| Methods inherited from class org.apache.turbine.services.TurbineBaseService |
init, init, init, shutdown |
| Methods inherited from class org.apache.turbine.services.BaseService |
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker |
| Methods inherited from class org.apache.turbine.services.BaseInitable |
getInit, getInitableBroker, setInit, setInitableBroker |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.turbine.services.Service |
getConfiguration, getName, getProperties, setName, setServiceBroker |
| Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, setInitableBroker, shutdown |
| Field Detail |
public static final int MAX_HEADER_SIZE
| Constructor Detail |
public BaseUploadService()
| Method Detail |
public void init()
init in interface Initableinit in class TurbineBaseService
public abstract void parseRequest(javax.servlet.http.HttpServletRequest req,
ParameterParser params,
java.lang.String path)
throws TurbineException
Processes an RFC
1867 compliant multipart/form-data stream.
parseRequest in interface UploadServicereq - The servlet request to be parsed.params - The ParameterParser instance to insert form
fields into.path - The location where the files should be stored.
TurbineException - If there are problems reading/parsing
the request or storing files.public long getSizeMax()
Retrieves the value of size.max property of the
UploadService.
getSizeMax in interface UploadServicepublic int getSizeThreshold()
Retrieves the value of size.threshold property of
UploadService.
getSizeThreshold in interface UploadServicepublic java.lang.String getRepository()
Retrieves the value of the repository property of
UploadService.
getRepository in interface UploadServicepublic boolean getAutomatic()
UploadService. This reports whether the Parameter parser
should allow "automatic" uploads if it is submitted to
Turbine.
getAutomatic in interface UploadServiceUploadService.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||