1 7 8 package org.jboss.media.entity; 9 10 import java.io.Serializable ; 11 import java.net.URL ; 12 13 19 public class MediaEntityDTO implements Serializable 20 { 21 private byte[] content; 22 private URL location; 23 private String description; 24 private String name; 25 private String mimeType; 26 27 30 public MediaEntityDTO() 31 { 32 } 33 34 43 public MediaEntityDTO( 44 byte[] content, 45 URL location, 46 String description, 47 String name, 48 String mimeType) 49 { 50 this.content = content; 51 this.location = location; 52 this.description = description; 53 this.name = name; 54 this.mimeType = mimeType; 55 } 56 57 60 public byte[] getContent() 61 { 62 return content; 63 } 64 65 68 public void setContent(byte[] content) 69 { 70 this.content = content; 71 } 72 73 76 public String getDescription() 77 { 78 return description; 79 } 80 81 84 public void setDescription(String description) 85 { 86 this.description = description; 87 } 88 89 92 public URL getLocation() 93 { 94 return location; 95 } 96 97 100 public void setLocation(URL location) 101 { 102 this.location = location; 103 } 104 105 108 public String getMimeType() 109 { 110 return mimeType; 111 } 112 113 116 public void setMimeType(String mimeType) 117 { 118 this.mimeType = mimeType; 119 } 120 121 124 public String getName() 125 { 126 return name; 127 } 128 129 132 public void setName(String name) 133 { 134 this.name = name; 135 } 136 137 } | Popular Tags |