View Javadoc

1   package com.panogenesis.webapp.action;
2   
3   
4   /***
5    * Command class to handle uploading of a file.
6    *
7    * <p>
8    * <a href="FileUpload.java.html"><i>View Source</i></a>
9    * </p>
10   *
11   * @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
12   */
13  public class FileUpload {
14      private String name;
15      private byte[] file;
16  
17      /***
18       * @return Returns the name.
19       */
20      public String getName() {
21          return name;
22      }
23  
24      /***
25       * @param name The name to set.
26       */
27      public void setName(String name) {
28          this.name = name;
29      }
30  
31      public void setFile(byte[] file) {
32          this.file = file;
33      }
34  
35      public byte[] getFile() {
36          return file;
37      }
38  }