001: /*
002: * Version: MPL 1.1/GPL 2.0/LGPL 2.1
003: *
004: * "The contents of this file are subject to the Mozilla Public License
005: * Version 1.1 (the "License"); you may not use this file except in
006: * compliance with the License. You may obtain a copy of the License at
007: * http://www.mozilla.org/MPL/
008: *
009: * Software distributed under the License is distributed on an "AS IS"
010: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
011: * License for the specific language governing rights and limitations under
012: * the License.
013: *
014: * The Original Code is ICEfaces 1.5 open source software code, released
015: * November 5, 2006. The Initial Developer of the Original Code is ICEsoft
016: * Technologies Canada, Corp. Portions created by ICEsoft are Copyright (C)
017: * 2004-2006 ICEsoft Technologies Canada, Corp. All Rights Reserved.
018: *
019: * Contributor(s): _____________________.
020: *
021: * Alternatively, the contents of this file may be used under the terms of
022: * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"
023: * License), in which case the provisions of the LGPL License are
024: * applicable instead of those above. If you wish to allow use of your
025: * version of this file only under the terms of the LGPL License and not to
026: * allow others to use your version of this file under the MPL, indicate
027: * your decision by deleting the provisions above and replace them with
028: * the notice and other provisions required by the LGPL License. If you do
029: * not delete the provisions above, a recipient may use your version of
030: * this file under either the MPL or the LGPL License."
031: *
032: */
033:
034: package com.icesoft.faces.component.inputfile;
035:
036: public class FileInfo {
037:
038: private long size = 0;
039: private String fileName = null;
040: private String contentType = null;
041: private String physicalPath = null;
042: private int percent = 0;
043: private Exception exception = null;
044:
045: public String getContentType() {
046: return contentType;
047: }
048:
049: public void setContentType(String contentType) {
050: this .contentType = contentType;
051: }
052:
053: public String getFileName() {
054: return fileName;
055: }
056:
057: public void setFileName(String fileName) {
058: this .fileName = fileName;
059: }
060:
061: public String getPhysicalPath() {
062: return physicalPath;
063: }
064:
065: public void setPhysicalPath(String path) {
066: this .physicalPath = path;
067: }
068:
069: public FileInfo() {
070: super ();
071: }
072:
073: public long getSize() {
074: return size;
075: }
076:
077: public void setSize(long size) {
078: this .size = size;
079: }
080:
081: public int getPercent() {
082: return percent;
083: }
084:
085: public void setPercent(int percent) {
086: this .percent = percent;
087: }
088:
089: public Exception getException() {
090: return exception;
091: }
092:
093: public void setException(Exception exception) {
094: this .exception = exception;
095: }
096:
097: void reset() {
098: size = 0;
099: fileName = null;
100: contentType = null;
101: physicalPath = null;
102: percent = 0;
103: exception = null;
104: }
105: }
|