first cut of merge of STABLE-pre1_0 into HEAD. I won't even guarantee that it
[mir.git] / source / mir / misc / MpRequest.java
1   /**
2    *  Datamodel of a MulitpartRequest
3    *  (inner class)
4    */
5
6 package mir.misc;
7
8
9 public class MpRequest{
10   byte[] uploadData=null;
11   String fileName=null;
12   String fileContentType=null;
13   
14   public MpRequest(byte[] i_uploadData, String i_fileName,
15                    String i_contentType){
16     setFilename(i_fileName);
17     setContentType(i_contentType);
18     setMedia(i_uploadData);
19   }
20
21   public byte[] getMedia() {
22     return uploadData;
23   }
24
25   public String getFilename() {
26     return fileName;
27   }
28   
29   public String getContentType() {
30     return fileContentType;
31   }
32   
33   public void setMedia(byte[] i_uploadData) {
34     uploadData=i_uploadData;
35   }
36
37   public void setFilename(String i_fileName) {
38     fileName=i_fileName;
39   }
40   
41   public void setContentType(String i_contentType) {
42     fileContentType=i_contentType;
43   }
44 }