2013/2/13  <[email protected]>:
> Author: markt
> Date: Wed Feb 13 09:52:12 2013
> New Revision: 1445522
>
> URL: http://svn.apache.org/r1445522
> Log:
> Complete Part javadoc.
> Content copied from Commons FileUpload with minor changes as necessary.
>
> Modified:
>     tomcat/tc7.0.x/trunk/   (props changed)
>     tomcat/tc7.0.x/trunk/java/javax/servlet/http/Part.java
>     tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
>
> Propchange: tomcat/tc7.0.x/trunk/
> ------------------------------------------------------------------------------
>   Merged /tomcat/trunk:r1445520
>

> --- tomcat/tc7.0.x/trunk/java/javax/servlet/http/Part.java (original)
> +++ tomcat/tc7.0.x/trunk/java/javax/servlet/http/Part.java Wed Feb 13 
> 09:52:12 2013
> @@ -21,24 +21,83 @@ import java.io.InputStream;
>  import java.util.Collection;
>

>  public interface Part {
(...)
> +
> +    /**
> +     * Deletes the underlying storage for a part, including deleting any
> +     * associated temporary disk file. Although this storage will be deleted
> +     * automatically when the Part instance is garbage collected, this
> +     * method can be used to ensure that this is done at an earlier time, 
> thus
> +     * preserving system resources.

Tomcat differs from Commons Fileupload here, that it deletes parts
when request processing completes (or more specifically: when request
is recycled):

http://svn.apache.org/viewvc?rev=1356509&view=rev

(It may be that some other containers behave differently).

> +     */
>      public void delete() throws IOException;

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to