Subversion Repositories XServices

Rev

Rev 54 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 54 Rev 81
Line 18... Line 18...
18
 
18
 
19
import java.io.File;
19
import java.io.File;
Line 20... Line 20...
20
import java.io.IOException;
20
import java.io.IOException;
21
 
-
 
22
import javax.activation.DataHandler;
21
 
Line -... Line 22...
-
 
22
import javax.activation.DataHandler;
-
 
23
import javax.xml.bind.annotation.XmlMimeType;
-
 
24
 
-
 
25
import net.brutex.xservices.util.BrutexNamespaces;
-
 
26
 
-
 
27
import org.apache.cxf.aegis.type.java5.XmlElement;
-
 
28
import org.apache.cxf.aegis.type.java5.XmlType;
-
 
29
 
-
 
30
 
-
 
31
/**
-
 
32
 * Represents a single file based attachment type.
-
 
33
 * @author Brian Rosenberger, bru@brutex.de
23
import javax.xml.bind.annotation.XmlElement;
34
 * @since 0.4.0
24
import javax.xml.bind.annotation.XmlMimeType;
35
 */
-
 
36
@XmlType(name=AttachmentType.XML_NAME, namespace=BrutexNamespaces.WS_XSERVICES)
25
 
37
public class AttachmentType {
26
public class AttachmentType {
38
 
Line -... Line 39...
-
 
39
	public static final String XML_NAME="attachment";
-
 
40
	private DataHandler content;
27
	
41
	private String filename = null;
28
	private DataHandler content;
42
 
29
	private String filename = null;
43
	@XmlMimeType("application/octet-stream")
Line 30... Line -...
30
 
-
 
31
	public void setContent(DataHandler content) {
-
 
32
		this.content = content;
44
	@XmlElement(minOccurs="1")
33
	}
45
	public void setContent(DataHandler content) {
34
 
46
		this.content = content;
Line 35... Line 47...
35
	@XmlMimeType("application/octet-stream")
47
	}