alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Commons FileUpload example source code file (tasks.xml)

This example Commons FileUpload source code file (tasks.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Commons FileUpload tags/keywords

apache, beta, beta, changes, in, license, license, see, since, since, the, the, this, you

The Commons FileUpload tasks.xml source code

<?xml version="1.0"?>
<!--
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional information regarding copyright ownership.
 The ASF licenses this file to You under the Apache License, Version 2.0
 (the "License"); you may not use this file except in compliance with
 the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->

<document>
  <properties>
    <title>TODO
    <author email="rdonkin@apache.org">Robert Burrell Donkin
  </properties>

  <body>
    <section name="TODO list">
      <p>
        The following is a list of items that need to be completed in
        Fileupload.  Contributions are welcome! 
      </p>

      <subsection name="High priority"> 
      </subsection>

      <subsection name="Medium priority"> 
        <ul>
          <li>
            <strong>Additional unit tests to increase code coverage.
          </li>
          <li>
            <strong>Documentation for the customization capabilities.
          </li>
         </ul>
      </subsection>

      <subsection name="Low priority"> 
      </subsection>

    </section>

    <section name='Completed'>
      <subsection name="Since 1.0 Beta 1 Release">
        <ul>
          <li>
            Split the <code>FileUpload class into an abstract base class
            and two concrete classes, one of which is specific to a disk-based
            repository and the other a more generic implementation.
          </li>
          <li>
            Replaced the ad hoc <code>newInstance() means of creating
            <code>FileItem instances with a factory-based scheme for
            much greater flexibility and simpler customization. This change
            also eliminates a dependency on Commons BeanUtils.
          </li>
          <li>
            Change the semantics of the size threshold to apply to the size of
            individual items, instead of the size of the overall request. This
            is in line with the original documentation, and better meets user
            expectations.
          </li>
          <li>
            Added unit tests for exceptional conditions, and to test new
            functionality.
          </li>
        </ul>
      </subsection>
    </section>

    <section name="Deprecated">
      <subsection name="Since 1.0 Beta 1 Release">
        <ul>
          <li>
            In the <code>FileItem interface, the setIsFormField()
            method has been replaced by the <code>setFormField() method.
          </li>
          <li>
            In the <code>FileItem interface, the write(String)
            method has been replaced by the <code>write(File) method.
          </li>
          <li>
            The <code>sizeThreshold property of the FileUpload
            class has been moved to the <code>DiskFileUpload class.
          </li>
          <li>
            The <code>repositoryPath property of the FileUpload
            class has been moved to the <code>DiskFileUpload class.
          </li>
          <li>
            The disk-specific <code>parseRequest() method of the
            <code>FileUpload class has been moved to the
            <code>DiskFileUpload class.
          </li>
        </ul>
      </subsection>
    </section>

    <section name="Backwards Incompatible Changes">
      <subsection name="Since 1.0 Beta 1">
        <ul>
          <li>
            <code>FileItem.newInstance() has been replaced by the use of
            factories to create new <code>FileItem instances.
          </li>
          <li>
            The <code>storeLocation property of the FileItem
            interface has been removed, since it is (disk-based) implementation
            specific.
          </li>
        </ul>
      </subsection>
    </section>

    <section name="Semantic Changes">
      <subsection name="Since 1.0 Beta 1">
        <ul>
          <li>
            The <code>sizeThreshold property now applies to the size of
            each item, rather than the size of the request as a whole. This is
            more in keeping which user expectations, as well as matching the
            original documentation.
          </li>
        </ul>
      </subsection>
    </section>
  </body>
</document>

Other Commons FileUpload examples (source code examples)

Here is a short list of links related to this Commons FileUpload tasks.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.